Sdl and symbian

Hi!

I tried to compile 1.2.7 for symbian. Not using the .mpp files, 'cause I have
and use linux,but using the crosscompiler and some special makefiles.
I got the following errors at the end, when I tried to compile and link
testalpha:

--------8<--------
arm-epoc-pe-ld -s -e _E32Startup -u _E32Startup testalpha.exp -o
testalpha.ex2 /opt/space/s60/Release/armi/urel/eexe.lib …/test/testalpha.o
sdlmain.a
sdl.a /opt/space/s60/Release/armi/urel/euser.lib /opt/space/s60/Release/armi/urel/fbscli.lib /opt/space/s60/Release/armi/urel/estlib.lib /opt/space/s60/Release/armi/urel/ws32.lib /opt/space/s60/Release/armi/urel/hal.lib /opt/space/s60/Release/armi/urel/gdi.lib /opt/space/s60/Release/armi/urel/apgrfx.lib
sdlmain.a(SDL_main.o)(.text+0x54):SDL_main.cpp: undefined reference to
RThread::Rename(TDesC8 const &) const' sdl.a(SDL_epocvideo.o)(.text+0x28):SDL_epocvideo.: undefined reference toTBuf<128>::TBuf(void)'
sdl.a(SDL_epocvideo.o)(.text+0x48):SDL_epocvideo.: undefined reference to
RDebug::Print(TRefByValue<TDesC8 const>,...)' sdl.a(SDL_epocvideo.o)(.text+0x54):SDL_epocvideo.: undefined reference toRDebug::Print(TRefByValue,…)'
sdl.a(SDL_epocvideo.o)(.text+0x338):SDL_epocvideo.: undefined reference to
TBuf<32>::TBuf(void)' sdl.a(SDL_epocvideo.o)(.text+0x3ac):SDL_epocvideo.: undefined reference toRWindowGroup::SetName(TDesC8 const &)'
sdl.a(SDL_sysmutex.o)(.text+0x10):SDL_sysmutex.c: undefined reference to
RMutex::CreateGlobal(TDesC8 const &, TOwnerType)' sdl.a(SDL_systhread.o)(.text+0x3c):SDL_systhread.: undefined reference toRThread::Create(TDesC8 const &, int (*)(void *), int, RHeap *, void *,
TOwnerType)'
sdl.a(SDL_systhread.o)(.text+0x6c):SDL_systhread.: undefined reference to
TBuf<16>::TBuf(void)' sdl.a(SDL_blit_N.o)(.text+0x5604):SDL_blit_N.c: undefined reference toSDL_HasMMX’
sdl.a(SDL_syssem.o)(.text+0x14):SDL_syssem.cpp: undefined reference to
`RSemaphore::CreateGlobal(TDesC8 const &, int, TOwnerType)'
make: *** [testalpha.ex2] Error 1
--------8<--------

What can be the cause of the problem?
a) SDL is ported only to crystal symbian (ie nokia communicator) and the above
functions are deprecated and removed from symbian 6.1 (I have a nokia 3650,
using symbian 6.1)
b) my makefiles are wrong
c) something else

thanks in advance,
Szasz Pal