Hi,
First: the ezmlm thing apparently won’t let me grab the entire list
archive at once, and the idea of requesting all messages one by one
brings tears to my eyes… So I haven’t read anything posted here. If
this annoys you (as it annoys me), please let me know how to grab the
archive.
That said - SDL looks like a gift from heaven! Really nice, I plan to
have a fast voxel engine running on it soon.
Alpha-----
SDL(-0.6j) runs like a charm on Alpha, even though this isn’t
supported. I tested it on a Digital XL-300 (XLT) 21164 system with RH5
and Linux kernel 2.1.86. The only problems I encountered were:
-
glibc autodetection failure: Configure.sh checks if GLIBC is
defined, which it apparently isn’t, while glibc is there. Maybe this
is because Alpha Linux always uses glibc. Note that this is with
gcc2.7.2.3 (didn’t try it with egcs). (And note that failing the glibc
check it tries to compile some x86 assembly on the Alpha. -
warnings: there are a few warnings, most likely related to 64-bit
pointer/long problems. Included below (it all works so far, so I
didn’t look at the details).
The tests and the warp example run fine. (I couldn’t run the audio
tests, having no sound card/driver installed on the Alpha). I couldn’t
compile the draw example (it couldn’t find things in includes).
Intel
SDL won’t run on my Intel box! This is a Pentium which runs RH4.0 (!)
with a 2.0.18 kernel. Maybe the problem is related to the old kernel or
old libs (it has libc 5.3.12).
When I try to run a SDL app, it produces something like:
… …
./graywin: can’t resolve symbol ‘memset’
./graywin: can’t resolve symbol ‘memset’
./graywin: can’t resolve symbol ‘__errno_location’
./graywin: can’t resolve symbol ‘_exit’
./graywin: can’t resolve symbol ‘___brk_addr’
./graywin: can’t resolve symbol ‘__environ’
Couldn’t initialize SDL: Failed loading libSDLx11.so: Unable to resolve symbol
So it seems unable to load the lib… It’s there allright. Maybe
this points to the problem:
ldd graywin
libdl.so.1 => /lib/libdl.so.1.7.14
On the Alpha ldd lists more useful stuff:
ldd graywin
libdl.so.2.1 => /lib/libdl.so.2.1 (0x0000020000002000)
libpthread.so.0 => /lib/libpthread.so.0 (0x0000020000106000)
libc.so.6.1 => /lib/libc.so.6.1 (0x000002000021a000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0000020001000000)
Anybody knows what went wrong here?
Later,
- Reinoud
Alpha make warnings
make
cd obj && make
make[1]: Entering directory/home/reinoud/down/SDL-0.6j/obj' cc -I../include -I../directx/include -I/usr/openwin/include -c load.c -o load.o load.c: In function
SetError’:
load.c:81: warning: type mismatch in implicit declaration for built-in functionstrlen' for dir in x11; do \ (cd $dir && make); \ done make[2]: Entering directory
/home/reinoud/down/SDL-0.6j/obj/x11’
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL.c -o SDL.o
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_RLEaccel.c -o SDL_RLEaccel.o
SDL_RLEaccel.c: In functionSDL_RLEClip': SDL_RLEaccel.c:122: warning: type mismatch in implicit declaration for built-in function
memcpy’
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_active.c -o SDL_active.o
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_audio.c -o SDL_audio.o
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_audiomem.c -o SDL_audiomem.o
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_bmp.c -o SDL_bmp.o
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_cursor.c -o SDL_cursor.o
SDL_cursor.c: In functionSDL_DrawCursor': SDL_cursor.c:511: warning: type mismatch in implicit declaration for built-in function
memcpy’
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_endian.c -o SDL_endian.o
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_error.c -o SDL_error.o
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_events.c -o SDL_events.o
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_keyboard.c -o SDL_keyboard.o
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_mixer.c -o SDL_mixer.o
SDL_mixer.c: In functionSDL_QueueAudio': SDL_mixer.c:107: warning: type mismatch in implicit declaration for built-in function
memcpy’
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_mouse.c -o SDL_mouse.o
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_pixels.c -o SDL_pixels.o
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_quit.c -o SDL_quit.o
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_surface.c -o SDL_surface.o
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_video.c -o SDL_video.o
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_wave.c -o SDL_wave.o
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_mutex.c -o SDL_mutex.o
SDL_mutex.c: In functionSDL_CreateMutex': SDL_mutex.c:43: warning: cast to pointer from integer of different size cc -O2 -fomit-frame-pointer -I../../include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_sysaudio.c -o SDL_sysaudio.o cc -O2 -fomit-frame-pointer -I../../include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_thread.c -o SDL_thread.o SDL_thread.c: In function
SDL_CreateThread’:
SDL_thread.c:88: warning: cast to pointer from integer of different size
SDL_thread.c:94: warning: cast to pointer from integer of different size
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_timer.c -o SDL_timer.o
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_eventloop.c -o SDL_eventloop.o
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_sysmouse.c -o SDL_sysmouse.o
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_sysvideo.c -o SDL_sysvideo.o
cc -O2 -fomit-frame-pointer -I…/…/include -DSDL_FUNCTION_DEFS -DXMT_UNSAFE -DSDL_USE_PTHREADS -D_REENTRANT -c SDL_syswm.c -o SDL_syswm.o
SDL_syswm.c: In functionSDL_SYS_SetWMIcon': SDL_syswm.c:72: warning: type mismatch in implicit declaration for built-in function
memcpy’
cc -shared -o libSDLx11.so.0.6 SDL.o SDL_RLEaccel.o SDL_active.o SDL_audio.o SDL_audiomem.o SDL_bmp.o SDL_cursor.o SDL_endian.o SDL_error.o SDL_events.o
SDL_keyboard.o SDL_mixer.o SDL_mouse.o SDL_pixels.o SDL_quit.o SDL_surface.o SDL_video.o SDL_wave.o SDL_mutex.o SDL_sysaudio.o SDL_thread.o SDL_timer.o
SDL_eventloop.o SDL_sysmouse.o SDL_sysvideo.o SDL_syswm.o -L/usr/X11R6/lib -lX11 -lXext
make[2]: Leaving directory/home/reinoud/down/SDL-0.6j/obj/x11' ar crv libSDL.a load.o a - load.o /usr/bin/ranlib libSDL.a make[1]: Leaving directory
/home/reinoud/down/SDL-0.6j/obj’
obj/x11/libSDLx11.so.0.6 → lib/libSDLx11.so.0.6
lib/libSDLx11.so.0.6 ← lib/libSDLx11.so
obj/libSDL.a → lib/libSDL.a