Opened 13 years ago

Closed 13 years ago

#29097 closed defect (fixed)

boost @1.46.1 +python32 +universal -- two different errors while building

Reported by: t.vierjahn@… Owned by: adfernandes (Andrew Fernandes)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: boost

Description

First

There is a problem with the include path for the python32 variant:
/opt/local/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2
is passed to the compiler, whereas
/opt/local/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m
or better
/opt/local/Library/Frameworks/Python.framework/Versions/3.2/Headers
had to be used for my python installation from macports. I think, using Headers instead of include/pythonVERSION should work for all versions of python.

I was able to fix it in ./ports/devel/boost/work/boost_1_46_1/tools/build/v2/tools/python.jam:

+++ python.jam	2011-04-11 23:11:09.000000000 +0200
@@ -546,6 +546,13 @@
         libraries ?= $(default-library-path) ;
         includes ?= $(default-include-path) ;
     }
+    else if $(target-os) = darwin
+    {
+        includes ?= $(prefix)/Headers ;
+
+        local lib = $(exec-prefix)/lib ;
+        libraries ?= $(lib)/python$(version)/config $(lib) ;
+    }
     else
     {
         includes ?= $(prefix)/include/python$(version) ;

This is just the quick and dirty way it worked for me. Maybe there is a better way. Maybe you could also report it to the boost issue tracker, if this bug is not macports specific only.


Second

I had to apply the patch from boost changeset 71050 that fixes boost ticket #4995 to the following file:
./ports/devel/boost/work/boost_1_46_1/libs/python/src/converter/builtin_converters.cpp


I hope this will help.

Cheers,
Tom

Change History (3)

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Cc: adfernandes@… removed
Owner: changed from macports-tickets@… to adfernandes@…

comment:2 Changed 13 years ago by adfernandes (Andrew Fernandes)

Hi, Tom - thanks for tracking this down and submitting the patch! I haven't had time to apply, compile and test just yet, but it's been a couple of weeks and I wanted you to know that your work was appreciated!

comment:3 Changed 13 years ago by adfernandes (Andrew Fernandes)

Resolution: fixed
Status: newclosed

Patched in r78181 and tested - once again, thanks, Tom!

Note: See TracTickets for help on using tickets.