Modify

Opened 8 years ago

Last modified 4 years ago

#3930 new Patches

More flexible dynamic linking for python module on OS X

Reported by: Cyrus Omar Owned by: Dave Abrahams
Milestone: To Be Determined Component: python USE GITHUB
Version: Boost 1.42.0 Severity: Problem
Keywords: Cc:

Description

See http://trac.mapnik.org/ticket/453/.

Without these patches to python.jam and darwin.jam, boost.python refused to build with the following error for me on OS X 10.6 (Snow Leopard), even when I set my path to use a version of Python (from Sage) which was compiled with UCS4. With these changes, you can build against both system Python (UCS2) and Sage Python (UCS4). This should probably be incorporated directly into boost, it took me several hours of headaches to figure this out.

Undefined symbols:
  "_PyUnicodeUCS4_FromEncodedObject", referenced from:
      _encode_string_unaryfunc in builtin_converters.o
  "_PyUnicodeUCS4_AsWideChar", referenced from:
      boost::python::converter::(anonymous namespace)::slot_rvalue_from_python<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, boost::python::converter::(anonymous namespace)::wstring_rvalue_from_python>::construct(_object*, boost::python::converter::rvalue_from_python_stage1_data*)in builtin_converters.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Attachments (1)

boost_python_jam.patch (1.2 KB) - added by boost.calin79@… 4 years ago.
Patch to make building against UCS4 python on OSX work

Download all attachments as: .zip

Change History (6)

comment:1 Changed 8 years ago by René Rivera

Milestone: Boost 1.43.0To Be Determined

I don't see any patches attached to this ticket. And following that link gives an error. Please provide the patches here, as otherwise it makes it way harder to fix your problem.

comment:3 in reply to:  1 Changed 7 years ago by anonymous

Replying to grafik:

I don't see any patches attached to this ticket. And following that link gives an error. Please provide the patches here, as otherwise it makes it way harder to fix your problem.

Is anyone going to reply? I do not see any patch either, and this comment is 8 weeks old.

Changed 4 years ago by boost.calin79@…

Attachment: boost_python_jam.patch added

Patch to make building against UCS4 python on OSX work

comment:5 Changed 4 years ago by boost.calin79@…

I added the patch the previous user was referencing, as this is still an issue, if you are trying to build against a UCS4 build of python on OSX...

comment:6 Changed 4 years ago by anonymous

Big +1 to this patch. I've been using it for years now without any issues.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Dave Abrahams.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.