[MacPorts] #29097: boost @1.46.1 +python32 +universal -- two different errors while building
MacPorts
noreply at macports.org
Mon Apr 11 15:14:51 PDT 2011
#29097: boost @1.46.1 +python32 +universal -- two different errors while building
-------------------------------+--------------------------------------------
Reporter: t.vierjahn@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.2
Keywords: | Port: boost
-------------------------------+--------------------------------------------
== First ==
There is a problem with the include path for the python32 variant: [[BR]]
{{{/opt/local/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2}}}[[BR]]
is passed to the compiler, whereas [[BR]]
{{{/opt/local/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m}}}[[BR]]
or better[[BR]]
{{{/opt/local/Library/Frameworks/Python.framework/Versions/3.2/Headers}}}[[BR]]
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
[https://svn.boost.org/trac/boost/changeset/71050 boost changeset 71050]
that fixes [https://svn.boost.org/trac/boost/ticket/4994 boost ticket
#4995] to the following file:[[BR]]
./ports/devel/boost/work/boost_1_46_1/libs/python/src/converter/builtin_converters.cpp
----
I hope this will help.
Cheers,[[BR]]
Tom
--
Ticket URL: <https://trac.macports.org/ticket/29097>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list