Discussion:
[Fink-beginners] Installing SDL
Thomas Lauf
2006-02-02 17:25:13 UTC
Permalink
I'm trying to install SDL but fink ended the process with the following
message:

ld: warning -dylib_install_name /sw/lib/libSDL-1.2.0.dylib not found in
segment address table LD_SEG_ADDR_TABLE
/sw/var/lib/fink/prebound/seg_addr_table
ld: /usr/lib/gcc/darwin/3.3/libstdc++.a(functexcept.o) illegal
reference to symbol:
std::logic_error::logic_error[in-charge](std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&) defined in
indirectly referenced dynamic library /usr/lib/libstdc++.6.dylib
/usr/bin/libtool: internal link edit command failed
make[2]: *** [libSDL.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
### execution of make failed, exit code 2
Removing build lock...
/sw/bin/dpkg-lockwait -r fink-buildlock-sdl-1.2.8-1
(Reading database ... 41415 files and directories currently installed.)
Removing fink-buildlock-sdl-1.2.8-1 ...
Failed: phase compiling: sdl-1.2.8-1 failed

What to do? Seems as if the linker doesn't find a file/funktion he
expects to be there, but what?
Running MacOS 10.3.9 on a G5.

Thomas
Alexander K. Hansen
2006-02-02 17:28:16 UTC
Permalink
Post by Thomas Lauf
I'm trying to install SDL but fink ended the process with the following
ld: warning -dylib_install_name /sw/lib/libSDL-1.2.0.dylib not found in
segment address table LD_SEG_ADDR_TABLE
/sw/var/lib/fink/prebound/seg_addr_table
ld: /usr/lib/gcc/darwin/3.3/libstdc++.a(functexcept.o) illegal
std::logic_error::logic_error[in-charge](std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&) defined in
indirectly referenced dynamic library /usr/lib/libstdc++.6.dylib
/usr/bin/libtool: internal link edit command failed
make[2]: *** [libSDL.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
### execution of make failed, exit code 2
Removing build lock...
/sw/bin/dpkg-lockwait -r fink-buildlock-sdl-1.2.8-1
(Reading database ... 41415 files and directories currently installed.)
Removing fink-buildlock-sdl-1.2.8-1 ...
Failed: phase compiling: sdl-1.2.8-1 failed
What to do? Seems as if the linker doesn't find a file/funktion he
expects to be there, but what?
Running MacOS 10.3.9 on a G5.
Thomas
What XCode version do you have?

--
Alexander K. Hansen
Fink Documenter
[Day Job] Levitated Dipole Experiment
http://psfcwww2.psfc.mit.edu/ldx/
Thomas Lauf
2006-02-03 16:07:02 UTC
Permalink
Post by Alexander K. Hansen
Post by Thomas Lauf
What to do? Seems as if the linker doesn't find a file/funktion he
expects to be there, but what?
Running MacOS 10.3.9 on a G5.
Thomas
What XCode version do you have?
XCode 1.1 -
How does that matter?
I haven't used the program in this case
Alexander K. Hansen
2006-02-03 16:21:19 UTC
Permalink
Post by Thomas Lauf
Post by Alexander K. Hansen
Post by Thomas Lauf
What to do? Seems as if the linker doesn't find a file/funktion he
expects to be there, but what?
Running MacOS 10.3.9 on a G5.
Thomas
What XCode version do you have?
XCode 1.1 -
How does that matter?
I haven't used the program in this case
I should have said "XCode Tools". There are different compiler
versions that come with
different versions of these.

The package may want a more recent tool set. XCode 1.5 plus the
November 2004 gcc updater is what you want.
--
Alexander K. Hansen
Fink Documenter
[Day Job] Levitated Dipole Experiment
http://psfcwww2.psfc.mit.edu/ldx/
Thomas Lauf
2006-02-05 12:17:24 UTC
Permalink
Post by Alexander K. Hansen
The package may want a more recent tool set. XCode 1.5 plus the
November 2004 gcc updater is what you want.
Downloaded and installed XCode 1.5 as well as the November 2004 gcc
updater,
reran the fink procedure. Result:

/usr/bin/libtool: internal link edit command failed
ld: warning -dylib_install_name /sw/lib/libSDL-1.2.0.dylib not found in
segment address table LD_SEG_ADDR_TABLE
/sw/var/lib/fink/prebound/seg_addr_table
ld: /usr/lib/gcc/darwin/3.3/libstdc++.a(functexcept.o) illegal
reference to symbol:
std::logic_error::logic_error(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&) defined in
indirectly referenced dynamic library /usr/lib/libstdc++.6.dylib
make[2]: *** [libSDL.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
### execution of make failed, exit code 2
Removing build lock...
/sw/bin/dpkg-lockwait -r fink-buildlock-sdl-1.2.8-1
(Reading database ... 41415 files and directories currently installed.)
Removing fink-buildlock-sdl-1.2.8-1 ...
Failed: phase compiling: sdl-1.2.8-1 failed

Looks like the Error messages I got before... what did I miss?
Martin Costabel
2006-02-05 12:33:07 UTC
Permalink
Post by Thomas Lauf
Post by Alexander K. Hansen
The package may want a more recent tool set. XCode 1.5 plus the
November 2004 gcc updater is what you want.
Downloaded and installed XCode 1.5 as well as the November 2004 gcc
updater,
/usr/bin/libtool: internal link edit command failed
Could you please show the output starting from the last compiler command
line that led to the error? It is difficult to guess the cause of the
problem if one doesn't see the command that gives the error.
--
Martin
Thomas Lauf
2006-02-05 13:19:02 UTC
Permalink
Post by Martin Costabel
Could you please show the output starting from the last compiler
command line that led to the error? It is difficult to guess the cause
of the problem if one doesn't see the command that gives the error.
Here you are:

gcc-3.3 -dynamiclib -o .libs/libSDL-1.2.0.7.1.dylib .libs/SDL.o
.libs/SDL_error.o .libs/SDL_fatal.o .libs/SDL_getenv.o
.libs/SDL_loadso.o .libs/libSDL.lax/libarch.a/arch.o
.libs/libSDL.lax/libaudio.a/SDL_audio.o
.libs/libSDL.lax/libaudio.a/SDL_audiocvt.o
.libs/libSDL.lax/libaudio.a/SDL_audiodev.o
.libs/libSDL.lax/libaudio.a/SDL_audiomem.o
.libs/libSDL.lax/libaudio.a/SDL_coreaudio.o
.libs/libSDL.lax/libaudio.a/SDL_diskaudio.o
.libs/libSDL.lax/libaudio.a/SDL_mixer.o
.libs/libSDL.lax/libaudio.a/SDL_mixer_m68k.o
.libs/libSDL.lax/libaudio.a/SDL_mixer_MMX.o
.libs/libSDL.lax/libaudio.a/SDL_mixer_MMX_VC.o
.libs/libSDL.lax/libaudio.a/SDL_romaudio.o
.libs/libSDL.lax/libaudio.a/SDL_wave.o
.libs/libSDL.lax/libvideo.a/SDL_blit.o
.libs/libSDL.lax/libvideo.a/SDL_blit_0.o
.libs/libSDL.lax/libvideo.a/SDL_blit_1.o
.libs/libSDL.lax/libvideo.a/SDL_blit_A.o
.libs/libSDL.lax/libvideo.a/SDL_blit_N.o
.libs/libSDL.lax/libvideo.a/SDL_bmp.o
.libs/libSDL.lax/libvideo.a/SDL_cursor.o
.libs/libSDL.lax/libvideo.a/SDL_gamma.o
.libs/libSDL.lax/libvideo.a/SDL_nullevents.o
.libs/libSDL.lax/libvideo.a/SDL_nullmouse.o
.libs/libSDL.lax/libvideo.a/SDL_nullvideo.o
.libs/libSDL.lax/libvideo.a/SDL_pixels.o
.libs/libSDL.lax/libvideo.a/SDL_QuartzEvents.o
.libs/libSDL.lax/libvideo.a/SDL_QuartzGL.o
.libs/libSDL.lax/libvideo.a/SDL_QuartzVideo.o
.libs/libSDL.lax/libvideo.a/SDL_QuartzWindow.o
.libs/libSDL.lax/libvideo.a/SDL_QuartzWM.o
.libs/libSDL.lax/libvideo.a/SDL_QuartzYUV.o
.libs/libSDL.lax/libvideo.a/SDL_RLEaccel.o
.libs/libSDL.lax/libvideo.a/SDL_stretch.o
.libs/libSDL.lax/libvideo.a/SDL_surface.o
.libs/libSDL.lax/libvideo.a/SDL_video.o
.libs/libSDL.lax/libvideo.a/SDL_yuv.o
.libs/libSDL.lax/libvideo.a/SDL_yuv_mmx.o
.libs/libSDL.lax/libvideo.a/SDL_yuv_sw.o
.libs/libSDL.lax/libevents.a/SDL_active.o
.libs/libSDL.lax/libevents.a/SDL_events.o
.libs/libSDL.lax/libevents.a/SDL_expose.o
.libs/libSDL.lax/libevents.a/SDL_keyboard.o
.libs/libSDL.lax/libevents.a/SDL_mouse.o
.libs/libSDL.lax/libevents.a/SDL_quit.o
.libs/libSDL.lax/libevents.a/SDL_resize.o
.libs/libSDL.lax/libjoystick.a/SDL_joystick.o
.libs/libSDL.lax/libjoystick.a/SDL_sysjoystick.o
.libs/libSDL.lax/libcdrom.a/AudioFilePlayer.o
.libs/libSDL.lax/libcdrom.a/AudioFileReaderThread.o
.libs/libSDL.lax/libcdrom.a/CAGuard.o
.libs/libSDL.lax/libcdrom.a/CDPlayer.o
.libs/libSDL.lax/libcdrom.a/SDL_cdrom.o
.libs/libSDL.lax/libcdrom.a/SDL_syscdrom.o
.libs/libSDL.lax/libthread.a/SDL_syscond.o
.libs/libSDL.lax/libthread.a/SDL_sysmutex.o
.libs/libSDL.lax/libthread.a/SDL_syssem.o
.libs/libSDL.lax/libthread.a/SDL_systhread.o
.libs/libSDL.lax/libthread.a/SDL_thread.o
.libs/libSDL.lax/libtimer.a/SDL_systimer.o
.libs/libSDL.lax/libtimer.a/SDL_timer.o
.libs/libSDL.lax/libendian.a/SDL_endian.o
.libs/libSDL.lax/libfile.a/SDL_rwops.o
.libs/libSDL.lax/libcpuinfo.a/SDL_cpuinfo.o -L/sw/lib -framework
OpenGL -framework AGL -framework AudioToolbox -framework AudioUnit
-framework IOKit -lstdc++ -framework Cocoa -framework Carbon -framework
QuickTime -install_name /sw/lib/libSDL-1.2.0.dylib
-Wl,-compatibility_version -Wl,8 -Wl,-current_version -Wl,8.1
/usr/bin/libtool: internal link edit command failed
ld: warning -dylib_install_name /sw/lib/libSDL-1.2.0.dylib not found in
segment address table LD_SEG_ADDR_TABLE
/sw/var/lib/fink/prebound/seg_addr_tab
...
Martin Costabel
2006-02-16 20:54:04 UTC
Permalink
Post by Thomas Lauf
Post by Alexander K. Hansen
The package may want a more recent tool set. XCode 1.5 plus the
November 2004 gcc updater is what you want.
Downloaded and installed XCode 1.5 as well as the November 2004 gcc
updater,
/usr/bin/libtool: internal link edit command failed
ld: warning -dylib_install_name /sw/lib/libSDL-1.2.0.dylib not found in
segment address table LD_SEG_ADDR_TABLE
/sw/var/lib/fink/prebound/seg_addr_table
ld: /usr/lib/gcc/darwin/3.3/libstdc++.a(functexcept.o) illegal reference
to symbol: std::logic_error::logic_error(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&) defined in
indirectly referenced dynamic library /usr/lib/libstdc++.6.dylib
make[2]: *** [libSDL.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
### execution of make failed, exit code 2
Removing build lock...
/sw/bin/dpkg-lockwait -r fink-buildlock-sdl-1.2.8-1
(Reading database ... 41415 files and directories currently installed.)
Removing fink-buildlock-sdl-1.2.8-1 ...
Failed: phase compiling: sdl-1.2.8-1 failed
Looks like the Error messages I got before... what did I miss?
Sorry this took so long, but I didn't boot into 10.3.9 for a long time.
This same error came now up in a similar context, and I found the
reason. It is one of the usual suspects when suddenly system headers or
libraries start to act up: A QuickTime update. You have probably updated
QuickTime to version 7.0.4 via softwareupdate. There is a downgrader to
7.0.1 on Apple's site:
http://www.apple.com/support/downloads/quicktime701reinstallerforquicktime704.html
Afterwards you can install 7.0.3 from
http://www.apple.com/support/downloads/quicktime703.html

If you confirm that this works for you, then we will have to say
something about this on the Fink web page and/or in the FAQ, plus
Apple's bugreporter.
--
Martin
Thomas Lauf
2006-02-18 06:48:02 UTC
Permalink
Post by Martin Costabel
Sorry this took so long, but I didn't boot into 10.3.9 for a long
time. This same error came now up in a similar context, and I found
the reason. It is one of the usual suspects when suddenly system
headers or libraries start to act up: A QuickTime update. You have
probably updated QuickTime to version 7.0.4 via softwareupdate. There
http://www.apple.com/support/downloads/
quicktime701reinstallerforquicktime704.html
Afterwards you can install 7.0.3 from
http://www.apple.com/support/downloads/quicktime703.html
Ok, downgraded to QuickTime 7.0.3 as you said, then started the fink
installation process again - and voilá: the SDL package installs
without any problems!

Well, does that mean I am stuck on QT 7.0.3 now? Or can I upgrade -
maybe later to 7.0.5?

Anyway, thanks for the great help! :)

Thomas
Martin Costabel
2006-02-18 12:43:03 UTC
Permalink
[]
Post by Thomas Lauf
Well, does that mean I am stuck on QT 7.0.3 now? Or can I upgrade -
maybe later to 7.0.5?
I have no idea. You have to hope that Apple hasn't yet started to
neglect OSX 10.3
[]
We should probably file bug reports with Apple about these problems, but
since I rarely use 10.3 any more, I won't lose much time over it. If I
find a small test case, I'll file a bug about the QuickTime problem, but
it would be helpful if others did the same.
I have now found a small example and filed a bug on Apple's bugreporter
(CCing devel for the record).

Anyone who is on Mac OSX 10.3.9 with QuickTime 7.0.4 installed and wants
to see the bug for themselves can try to compile the following little
program:

/* file QTbug.cc */
#include <QuickTime/QuickTime.h>
#include <iostream>

int main()
{
if ( EnterMovies() == noErr )
std::cout << "QuickTime init successful" << std::endl;
return 0;
}
/* end QTbug.cc */

The simplest compilation (which succeeds with QuickTime 7.0.3 installed,
or on Tiger even with QuickTime 7.0.4) would use the command line

g++ -o QTbug QTbug.cc -framework QuickTime

Apple simply compiled this version of the QuickTime framework on Tiger
and hoped that it would work on Panther too, apparently without checking.
--
Martin
Thomas Champagne
2006-02-07 14:15:04 UTC
Permalink
Post by Alexander K. Hansen
I should have said "XCode Tools". There are different compiler
versions that come with
different versions of these.
The package may want a more recent tool set. XCode 1.5 plus the
November 2004 gcc updater is what you want.
--
Alexander K. Hansen
Fink Documenter
[Day Job] Levitated Dipole Experiment
http://psfcwww2.psfc.mit.edu/ldx/
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
Hi Alexander

I've just installed SDL with XCode 1.5 plus November 2004 gcc updater
but I have exactelly the same problem :
ld: warning -dylib_install_name /sw/lib/libSDL-1.2.0.dylib not found in
segment address table
/sw/var/lib/fink/prebound/seg_addr_table
ld: /usr/lib/gcc/darwin/3.3/libstdc++.a(functexcept.o) illegal reference to
symbol: std::logic_error::logic_error(std::basic_string<char, std::char_traits<char>, std::
allocator<char> > const&) defined in indirectly referenced dynamic library
/usr/lib/libstdc++.6.dylib
/usr/bin/libtool: internal link edit command failed
make[2]: *** [libSDL.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
### execution of make failed, exit code 2
Removing build lock...
/sw/bin/dpkg-lockwait -r fink-buildlock-sdl-1.2.8-1
(Reading database ... 21889 files and directories currently installed.)
Removing fink-buildlock-sdl-1.2.8-1 ...
Failed: phase compiling: sdl-1.2.8-1 failed

Thomas
Loading...