Opened 13 years ago

Last modified 9 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@… 10 years ago.
Patch to make building against UCS4 python on OSX work

Download all attachments as: .zip

Change History (6)

comment:1 by René Rivera, 13 years ago

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.

in reply to:  1 comment:3 by anonymous, 13 years ago

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.

by boost.calin79@…, 10 years ago

Attachment: boost_python_jam.patch added

Patch to make building against UCS4 python on OSX work

comment:5 by boost.calin79@…, 10 years ago

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 by anonymous, 9 years ago

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

Note: See TracTickets for help on using tickets.