I was not sure if I should post this to the ggi list, but
here goes.

I downloaded the ggg-SDL port posted to the list a couple of days ago
and compiled it on a RedHat 5.2 (Intel) system. I then tried to compile
smpeg, which is a mpeg player for SDL. When compiled with a stock SDL
install it works fine, but it pukes on the link to the ggg-SDL lib.

Here is the output.

% make plaympeg
g++  -I../ggi/include/SDL  -I. -Iaudio -Ivideo -O2
-funroll-loops -fomit-frame-pointer -ffast-math -DNOCONTROLS -DNDEBUG
-D_REENTRANT  -c plaympeg.c -o plaympeg.og++ -o plaympeg plaympeg.o -L.
-lsmpeg -lpthread -L../ggi/lib -Wl,-rpath,/home/mo/project/ggi/lib -lSDL
-ldl -lm
../ggi/lib/libSDL.so: undefined reference to `SDL_SYS_ListModes'
../ggi/lib/libSDL.so: undefined reference to`SDL_SYS_SetColors'
../ggi/lib/libSDL.so: undefined reference to `SDL_SYS_SetVideoMode'
../ggi/lib/libSDL.so: undefined reference to `SDL_SYS_VideoInit'
../ggi/lib/libSDL.so: undefined reference to `SDL_FreeWMCursor'
../ggi/lib/libSDL.so: undefined reference to `SDL_SYS_VideoQuit'
../ggi/lib/libSDL.so: undefined reference to `SDL_CreateWMCursor'
../ggi/lib/libSDL.so: undefined reference to `SDL_SYS_PumpEvents'
../ggi/lib/libSDL.so: undefined reference to `SDL_SYS_FinalQuit'
../ggi/lib/libSDL.so: undefined reference to `SDL_WarpWMCursor'
../ggi/lib/libSDL.so: undefined reference to `SDL_ShowWMCursor'
../ggi/lib/libSDL.so: undefined reference to `SDL_InitOSKeymap'

It links correctly with the 0.11.2 version of SDL.

% make plaympeg
g++  -I../install_SDL_beta/include/SDL  -I. -Iaudio -Ivideo -O2
-funroll-loops -fomit-frame-pointer -ffast-math -DNOCONTROLS -DNDEBUG
-D_REENTRANT  -c plaympeg.c -o plaympeg.og++ -o plaympeg plaympeg.o -L.
-lsmpeg -lpthread -L../install_SDL_beta/lib
-Wl,-rpath,/home/mo/project/install_SDL_beta/lib -lSDL -ldl -lm


The symbols are in the regular SDL lib.
% nm libSDL.so | grep SDL_InitOSKeymap
00013ac4 T SDL_InitOSKeymap

But there are no defined symbols in the ggi version of the SDL lib.
% nm libSDL.so | grep SDL_InitOSKeymap
U SDL_InitOSKeymap



I hope that helps
Mo DeJong

Reply via email to