@Hans
Trying to compile
new SDL (1.2.13-svnr5), and everythinkg compiles ok with the latest SDK (well, except one thing : SIG_BLOCK in pthreads is undeclared by some reasson, and i need define it in SDL source).
Quote:
./src/thread/pthread/SDL_systhread.c: In function 'SDL_SYS_SetupThread':
./src/thread/pthread/SDL_systhread.c:89: error: 'SIG_BLOCK' undeclared (first use in this function)
./src/thread/pthread/SDL_systhread.c:89: error: (Each undeclared identifier is reported only once
./src/thread/pthread/SDL_systhread.c:89: error: for each function it appears in.)
After i define that in the SDL itself, it's compiles ok.
But when i trying to compile with new libsdl.a any sdl programm, i have that weird output:
Quote:
/SDK/local/newlib/lib/libSDL.a(SDL_systhread.o): In function `SDL_SYS_KillThread':
/Work/--SDL_PORTS/SDL_ITSELF/src/./src/thread/pthread/SDL_systhread.c:113: undefined reference to `pthread_cancel'
/SDK/local/newlib/lib/libSDL.a(SDL_systhread.o): In function `SDL_SYS_WaitThread':
/Work/--SDL_PORTS/SDL_ITSELF/src/./src/thread/pthread/SDL_systhread.c:107: undefined reference to `pthread_join'
/SDK/local/newlib/lib/libSDL.a(SDL_systhread.o): In function `SDL_ThreadID':
/Work/--SDL_PORTS/SDL_ITSELF/src/./src/thread/pthread/SDL_systhread.c:102: undefined reference to `pthread_self'
and so on (all related to phtread).
But, if i compile source like: gcc test.c -lSDL -lphtread, then i have only these two:
Quote:
/Work/--SDL_PORTS/SDL_ITSELF/src/./src/thread/pthread/SDL_systhread.c:89: undefined reference to `pthread_sigmask'
/SDK/local/newlib/lib/libSDL.a(SDL_os4timer.o): In function `os4timer_WaitUntil':
/Work/--SDL_PORTS/SDL_ITSELF/src/./src/main/amigaos4/SDL_os4timer.c:225: undefined reference to `os4thread_GetTimer'
I compile all just by :
./configure
make
make install
Maybe i need change Makefile somehow (to add that unresolved stuff to builds and make all the sdl programms compiles ok just with -lSDL)
I also tryed the
last newlib (which compiled from new source i hope), and with that ready one it works fine (without links to phreads, etc). So, that make me think that maybe i need a bit update Makefile or maybe SDK with some new "pthread related includes/libs" ? (i have last one, 53.15).
And the same for SVN-r2. The same SIG_BLOCK undefine, and the same problems when try to compile any sdl app with -lSDL.
I also just do search on all the SDK directory on "pthread_sigmask", and found that only in new libsdl.a, but nothing like that in libpthread.a. That all looks i need some the libpthread + includes, but on os4depot i can found only pthread from the 2005, not sure that is correct ones, becouse (imho) last SDK have all the new ones inside ?
Edited by kas1e on 2009/12/23 12:34:23
Edited by kas1e on 2009/12/23 12:39:20
Edited by kas1e on 2009/12/23 12:45:40