Subject: SDL or smpeg changed? /usr/pkg/lib/libsmpeg-0.4.so.1: undefined
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 11/13/2002 17:23:53
I packaged a game for my son, called defendguin. It is a "Defender"
clone. Mu pkgsrc is available at:
http://www.reedmedia.net/misc/netbsd/packages/pkgsrc-games-defendguin.tar.gz

This works great with the old
.include "../../audio/SDL-mixer/buildlink.mk"

With SDL, it can do full-screen and the audio works great.

But that buildlink.mk has now been replaced with buildlink2.mk and SDL and
related has been updated.

So it builds (and runs) fine with the September official, stable pkgsrc;
but it doesn't work with newer pkgsrc.

For example:

===> Building for defendguin-0.0.10
cc -Wall -I/usr/pkg/include/SDL -D_REENTRANT
-DDATA_PREFIX=\"/usr/pkg/share/defendguin/\" -D__SOUND -DJOY_YES
-I/usr/pkg/include -I/usr/X11R6/include  -c -o defendguin.o defendguin.c
cc -Wall -I/usr/pkg/include/SDL -D_REENTRANT
-DDATA_PREFIX=\"/usr/pkg/share/defendguin/\" -D__SOUND -DJOY_YES
defendguin.o -o defendguin -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -lSDL
-lpthread -L/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib
-L/usr/X11R6/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lm -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -lesd -laudiofile -lm -lossaudio -L/usr/X11R6/lib -lX11
-lXext -L/usr/pkg/lib -laa -lm -L/usr/X11R6/lib -lX11 -lcurses -lusbhid
-L/usr/X11R6/lib -lSDL_mixer -lm
/usr/pkg/lib/libsmpeg-0.4.so.1: undefined reference to `__pure_virtual'
/usr/lib/libstdc++.so.4: undefined reference to `exception type_info
function'
/usr/lib/libstdc++.so.4: undefined reference to `__cp_push_exception'
/usr/lib/libstdc++.so.4: undefined reference to `__rtti_user'
/usr/lib/libstdc++.so.4: undefined reference to `__rtti_si'
/usr/lib/libstdc++.so.4: undefined reference to `__throw'
/usr/lib/libstdc++.so.4: undefined reference to `terminate(void)'
/usr/lib/libstdc++.so.4: undefined reference to `exception type_info node'
/usr/lib/libstdc++.so.4: undefined reference to `__builtin_vec_new'
/usr/lib/libstdc++.so.4: undefined reference to `__builtin_vec_delete'
/usr/lib/libstdc++.so.4: undefined reference to `exception virtual table'
/usr/lib/libstdc++.so.4: undefined reference to `__rtti_class'
/usr/lib/libstdc++.so.4: undefined reference to `__builtin_delete'
/usr/lib/libstdc++.so.4: undefined reference to `__builtin_new'
/usr/lib/libstdc++.so.4: undefined reference to `__eh_alloc'
collect2: ld returned 1 exit status


Any ideas?

Thanks,

   Jeremy C. Reed
   http://bsd.reedmedia.net/