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

MacPorts noreply at macports.org
Sun Oct 4 09:45:19 PDT 2009


#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 stromnov@…):

 Replying to [comment:20 nox@…]:
 > It seems like a -L flag is missing.

 {{{
 stromnov at stromnov:~$ python2.6-config --cflags
 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall
 -Wstrict-prototypes
 stromnov at stromnov:~$ python2.6-config --ldflags
 -L/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config
 -ldl -lpython2.6
 stromnov at stromnov:~$ gcc `python2.6-config --cflags` `python2.6-config
 --ldflags` test.c
 stromnov at stromnov:~$ otool -L a.out
 a.out:
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 124.1.1)
         /System/Library/Frameworks/Python.framework/Versions/2.6/Python
 (compatibility version 2.6.0, current version 2.6.1)
 }}}

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


More information about the macports-tickets mailing list