Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#14975 closed defect (fixed)

opendx build on leopard fails with unresolved symbols

Reported by: pel1@… Owned by: gwright@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: opendx libOPENGL.a Cc:
Port:

Description

I am trying to build opendx on an intel mac pro running leopard. All the dependencies build without problem, but opendx itself fails with a large number of unresolved symbols referenced in libOPENGL.a Logfile attached.

Attachments (1)

log.opendx-build (64.5 KB) - added by pel1@… 16 years ago.
output of port -v build opendx

Download all attachments as: .zip

Change History (6)

Changed 16 years ago by pel1@…

Attachment: log.opendx-build added

output of port -v build opendx

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Milestone: Port Bugs
Owner: changed from macports-tickets@… to gwright@…

Assigning to maintainer.

comment:2 Changed 16 years ago by kuroyagi@…

It is caused by the failure of configure to find libGL
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     \

comment:3 Changed 16 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Thanks, applied in r37655.

comment:4 Changed 16 years ago by spakinform@…

Thanks guys! Using your patch, I could finally build opendx on my leopard macbook pro! Everything seems to be working absolutely perfect. I've already tested it for some cases!

comment:5 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.