Modify

Ticket #3930 (new Patches)

Opened 4 years ago

Last modified 9 months ago

More flexible dynamic linking for python module on OS X

Reported by: Cyrus Omar Owned by: dave
Milestone: To Be Determined Component: Python
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

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

Change History

comment:1 follow-up: ↓ 3 Changed 4 years ago by grafik

  • Milestone changed from Boost 1.43.0 to To 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 4 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 13 months ago by boost.calin79@…

Patch to make building against UCS4 python on OSX work

comment:5 Changed 13 months 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 9 months ago by anonymous

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

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
Author


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

 
Note: See TracTickets for help on using tickets.