[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problems with libsdl1.2debian



Michael Moerz <aon.912411198@aon.at> writes:

> /bin/sh ../../../libtool --mode=link c++  -O2 -Wno-sign-compare -funsigned-char -D_UNIX_ -D_SDL_ -D_string_compare_broken_ -D_UNICODE_BROKEN_ -I/usr/include/SDL -D_REENTRANT -I/usr/include/SDLmm -Dkarteneditor -DFREEMAPZOOM -DNEWKEYB  -o asc_mapedit  edevents.o edgen.o edglobal.o edmain.o edselfnt.o edmisc.o weather.o typen.o strtmesg.o stack.o spfst.o sgstream.o pd.o palette.o newfont.o misc.o loadpcxc.o loaders.o loadbi3.o dlg_box.o dialog.o basestrm.o basegfx.o attack.o CLoadable.o Property.o PropertyGroup.o gameoptions.o Named.o buildingtype.o vehicletype.o containerbase.o mapalgorithms.o viewcalculation.o gamemap.o password.o password_dialog.o research.o mapdisplay.o ascstring.o graphicset.o vehicle.o buildings.o networkdata.o resourcenet.o textfileparser.o terraintype.o objecttype.o textfiletags.o itemrepository.o stringtokenizer.o ../../../source/sdl/libsdl.la ../../../source/libs/triangul/libtriangul.la -L/usr/lib -lSDLmm -lbz2 -lbz2 
> mkdir .libs
> c++ -O2 -Wno-sign-compare -funsigned-char -D_UNIX_ -D_SDL_ -D_string_compare_broken_ -D_UNICODE_BROKEN_ -I/usr/include/SDL -D_REENTRANT -I/usr/include/SDLmm -Dkarteneditor -DFREEMAPZOOM -DNEWKEYB -o asc_mapedit edevents.o edgen.o edglobal.o edmain.o edselfnt.o edmisc.o weather.o typen.o strtmesg.o stack.o spfst.o sgstream.o pd.o palette.o newfont.o misc.o loadpcxc.o loaders.o loadbi3.o dlg_box.o dialog.o basestrm.o basegfx.o attack.o CLoadable.o Property.o PropertyGroup.o gameoptions.o Named.o buildingtype.o vehicletype.o containerbase.o mapalgorithms.o viewcalculation.o gamemap.o password.o password_dialog.o research.o mapdisplay.o ascstring.o graphicset.o vehicle.o buildings.o networkdata.o resourcenet.o textfileparser.o terraintype.o objecttype.o textfiletags.o itemrepository.o stringtokenizer.o  ../../../source/sdl/.libs/libsdl.al -L/usr/lib -L/usr/X11R6/lib /usr/lib/libSDL_image.so -lXxf86dga -lXxf86vm -lXv -lpng -lz /usr/lib/libSDL_mixer.so -L/lib /usr/lib/libvorbisfile.so /usr/lib/libvorbis.so /usr/lib/libogg.so /usr/lib/libjpeg.so ../../../source/libs/triangul/.libs/libtriangul.al /usr/lib/libSDLmm.so /usr/lib/libSDL.so -lm -lX11 -lXext -ldl -lpthread -lbz2
> (multiple input files, cache bypass)
> /usr/lib/libSDL.so: undefined reference to `XF86VidModeQueryVersion'
[...]
> The funny thing is that those 'missing' symbols are found in
> libXxf86vm.a and gcc is handed over -lXxf86vm.

I think the problem is that -lXxf86vm occurs on the commandline
*before* libSDL is linked in. c++ does not yet know that these symbols
are needed later, and therefore they are not included.

If this hypothesis is correct, reordering the -l switches (or
duplicating some of them) should work.

> So who is to blame for that - me? libsdl1.2? libXxf86vm.a?
> gcc?

Either libtool or asc, I'd say. You should find out where exactly the
wrong lib order hails from. Seems source/sdl/libsdl.la and friends
have something wrong.

-- 
Robbe

Attachment: signature.ng
Description: PGP signature


Reply to: