While doing make vssetup on my OS X 10.5.1 system with all fink packages and XCode 3.0, I keep getting this error:
ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
collect2: ld returned 1 exit status
make: *** [vssetup] Error 1
Doing a search on google I find on the fink development website the same error and it seems to be related to a Leopard specific bug. I tried to do the export on my machine but it didn't solve my problem. There appears to be a solution in the thread at the following link:
http://www.mail-archive.com/fink-devel@lists.sourceforge.net/msg16103.html
Anonymous
Logged In: YES
user_id=284053
Originator: NO
Hmm... I have gotten this error quite often, but never with Vega Strike.
The solution involves setting LDFLAGS (googling can give you the right line).
Can you attach your config.log so I know what the compile command line is?
config.log
Logged In: YES
user_id=1905587
Originator: YES
Here's the config.log attached. I am still getting this error with GTK enabled. The more I Google it the more info comes up and it seems to be definitely a Leopard-related bug that needs to be fixed package by package. If you want to check it out google:
ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
I have tried setting LDFLAGS via Terminal and even the X11 terminal but nothing works for me. :-(
File Added: config.log
Logged In: YES
user_id=1905587
Originator: YES
I found a workaround to this. Setting LDFLAGS from the terminal or x11 wouldn't work for me. So I searched the "Makefile" file that intel-mac-conf.sh creates for me and inserted -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
directly into the LDFLAGS = variable (which was empty to begin with).
Line 665: LDFLAGS = -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
just above LIBOBJS. When I do this, make vssetup works for me beautifully. So for some reason the makefile.am is not picking up the LDFLAGS that I am setting via command line.
Submit comment if this still affects you.