[MacPorts] #21444: boost with +python26 links against wrong python on Snow Leopard

MacPorts noreply at macports.org
Fri Jan 15 07:47:53 PST 2010


#21444: boost with +python26 links against wrong python on Snow Leopard
---------------------------------+------------------------------------------
  Reporter:  stromnov@…          |       Owner:  nox@…           
      Type:  defect              |      Status:  closed          
  Priority:  Normal              |   Milestone:                  
 Component:  ports               |     Version:  1.8.0           
Resolution:  worksforme          |    Keywords:                  
      Port:  boost               |  
---------------------------------+------------------------------------------

Comment(by dpolyg@…):

 Replying to [comment:31 nox@…]:

 > In fact, Boost.Build is not doing anything wrong:[[BR]]

 > it passes the following flags to GCC:
 -L/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config
 -lpython2.6
 >
 > And
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config/libpython2.6.a

 > inks to ../../Python, which is
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python.
 >

 I was succeed with building correct version of the /opt/local/lib
 /libboost_python-mt.dylib after doing this magic:[[BR]]

 $ cd
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config/[[BR]]

 $ sudo ln -s ../../../Python libpython2.6.dylib[[BR]]


 Examples from Boost.Python also work fine.

 I have Snow Leopard, python26 and python31 installed.

 python_select was used for selecting python26 before building boost.

 {{{
 $ ls -la
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config/

 total 216
 drwxr-xr-x   13 root  wheel    442 Jan 15 23:24 ./
 drwxr-xr-x  631 root  wheel  21454 Jan 13 19:39 ../
 -rw-r--r--    2 root  wheel  43519 Jan 13 19:38 Makefile
 -rw-r--r--    2 root  wheel  18265 Jan 13 19:38 Setup
 -rw-r--r--    2 root  wheel    368 Jan 13 19:38 Setup.config
 -rw-r--r--    2 root  wheel     41 Jan 13 19:38 Setup.local
 -rw-r--r--    2 root  wheel   2077 Jan 13 19:38 config.c
 -rw-r--r--    2 root  wheel   1457 Jan 13 19:38 config.c.in
 -rwxr-xr-x    2 root  wheel   7122 Jan 13 19:38 install-sh*
 lr-xr-xr-x    1 root  wheel     15 Jan 13 19:39 libpython2.6.a@ ->
 ../../../Python
 lrwxr-xr-x    1 root  wheel     15 Jan 15 23:24 libpython2.6.dylib@ ->
 ../../../Python
 -rwxr-xr-x    2 root  wheel   7431 Jan 13 19:38 makesetup*
 -rw-r--r--    2 root  wheel   3916 Jan 13 19:38 python.o

 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/21444#comment:39>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list