[MacPorts] #14975: opendx build on leopard fails with unresolved symbols

MacPorts noreply at macports.org
Tue Jun 3 01:19:17 PDT 2008


#14975: opendx build on leopard fails with unresolved symbols
---------------------------+------------------------------------------------
  Reporter:  pel1 at psu.edu  |       Owner:  gwright at macports.org
      Type:  defect        |      Status:  new                 
  Priority:  Normal        |   Milestone:  Port Bugs           
 Component:  ports         |     Version:  1.6.0               
Resolution:                |    Keywords:  opendx libOPENGL.a  
---------------------------+------------------------------------------------
Comment (by kuroyagi at therandomwalker.net):

 It is caused by the failure of configure to find libGL[[BR]]
 It is clear from the following config.log


 {{{
 configure:25194: checking for glXGetConfig in -lGL
 configure:25224: /usr/bin/gcc-4.0 -o conftest -O2 -I/usr/X11R6/include
 -I/opt/local/include -I/usr/X11R6/include -L/opt/local/lib conftest.c -lGL
 -lm -lXmu -lXext -lXt -lX11 -lxm -lxt -lSM -lICE -L/usr/X11R6/lib
 -lpthread  >&5
 ld: cycle in dylib re-exports with /usr/X11R6/lib/libGL.dylib
 collect2: ld returned 1 exit status
 configure:25230: $? = 1
 }}}


 The reason configure fails to link to libGL is explained at
 [http://developer.apple.com/qa/qa2007/qa1567.html]


 following patch resolves this linking problem but #14085 still exists

 {{{
 ---
 /opt/local/var/macports/sources/rsync.macports.org/release/ports/science/opendx/Portfile.orig
 2007-10-10 17:15:05.000000000 +0900
 +++
 /opt/local/var/macports/sources/rsync.macports.org/release/ports/science/opendx/Portfile
 2008-06-02 18:12:16.000000000 +0900
 @@ -48,7 +48,10 @@
                 JAVA=/usr/bin/java              \
                 JAVAC=/usr/bin/javac            \
                 JAVAH=/usr/bin/javah            \
 -               JAVAP=/usr/bin/javap
 +               JAVAP=/usr/bin/javap            \
 +               LDFLAGS="-dylib_file \
 +/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:\
 +/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
  configure.args --x-includes=/usr/X11R6/include \
                 --x-libraries=/usr/X11R6/lib    \
                 --with-jni-
 path=/System/Library/Frameworks/JavaVM.framework/Headers     \
 }}}

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


More information about the macports-tickets mailing list