Subject: Unwind
To: None <tech-pkg@NetBSD.org>
From: Thomas Klausner <wiz@NetBSD.org>
List: tech-pkg
Date: 01/22/2004 00:07:46
Hi!

When compiling SDL_mixer on a -current from December,
I get:
checking for SMPEG - version >= 0.4.3... no
*** Could not run SMPEG test program, checking why...
*** The test program failed to compile or link. See the 
file config.log for the
*** exact error that occured. This usually means SMPEG was 
incorrectly installed
*** or that you have moved SMPEG since it was installed. In 
the latter case, you
*** may want to edit the smpeg-config script: 
/usr/pkg/bin/smpeg-config

config.log says:
configure:2479: cc -o conftest -DPREFIX="\"/usr/pkg\"" -I/usr/pkg/include -I/usr/include -I/usr/X11R6/include -I/usr/pkg/include/SDL -D_REENTRANT
 -DUSE_RWOPS -DCMD_MUSIC -DWAV_MUSIC -DMOD_MUSIC -I$(top_srcdir)/mikmod -DMID_MUSIC -DUSE_TIMIDITY_MIDI -I$(top_srcdir)/timidity -I/usr/pkg/inclu
de -I/usr/pkg/include/smpeg -I/usr/pkg/include/SDL -D_REENTRANT -I/usr/pkg/include/SDL -D_REENTRANT -Dunix=1  -I/usr/pkg/include -I/usr/include -
I/usr/X11R6/include  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib conftest.c -lintl -L/usr/p
kg/lib -lsmpeg -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -lSDL -lpthread -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -lm
 -L/usr/X11R6/lib -lX11 -lXext -L/usr/pkg/lib -laa-x11 -lm -L/usr/X11R6/lib -lX11 -lcurses -lusbhid -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -lSDL 
-lpthread -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -lm -L/usr/X11R6/lib -lX11 -lXext -L/usr/pkg/lib -laa-x11 -lm -
L/usr/X11R6/lib -lX11 -lcurses -lusbhid 1>&5
top_srcdir: not found
top_srcdir: not found
/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_GetIP'
/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_Resume_or_Rethrow'
/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_GetRegionStart'
/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_Resume'
/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_DeleteException'
/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_RaiseException'
/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_SetIP'
/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_GetTextRelBase'
/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_GetLanguageSpecificData'
/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_SetGR'
/usr/lib/libstdc++.so.5: undefined reference to `_Unwind_GetDataRelBase'

From previous mails I get the impression that this is a toolchain
problem on current with libgcc, however the workaround of using g++
for linking doesn't really seem to apply here -- or should g++ have
been used when creating libsmpeg?

Cheers,
 Thomas