It looks like the nas-support code depends on X. Compiling libsdl with '-X nas' in USE flags fails: gcc -DPACKAGE=\"SDL\" -DVERSION=\"1.2.6\" -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I. -I. -march=pentium4 -O3 -pipe -fomit-frame-pointer -funroll-all-loops -fprefetch-loop-arrays -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -DUSE_DLOPEN -DUSE_ASMBLIT -I./hermes -I../../../src/hermes -DOSS_SUPPORT -DALSA_SUPPORT -DARTSC_SUPPORT -DARTSC_DYNAMIC=libartsc.so.0 -I/usr/kde/3.1/include/artsc -DESD_SUPPORT -DESD_DYNAMIC=libesd.so.0 -DNAS_SUPPORT -DENABLE_FBCON -DENABLE_SVGALIB -DHAVE_OPENGL -DUSE_INPUT_EVENTS -D_REENTRANT -DSDL_USE_PTHREADS -DPTHREAD_NO_RECURSIVE_MUTEX -I../../../include -I../../../include/SDL -I../../../src -I../../../src/linux -I../../../src/main -I../../../src/audio -I../../../src/video -I../../../src/video/XFree86/extensions -I../../../src/events -I../../../src/joystick -I../../../src/cdrom -I../../../src/thread -I../../../src/timer -I../../../src/endian -I../../../src/file -c SDL_nasaudio.c -fPIC -DPIC -o .libs/SDL_nasaudio.lo In file included from SDL_nasaudio.c:47: SDL_nasaudio.h:38:28: audio/audiolib.h: No such file or directory In file included from SDL_nasaudio.c:47: SDL_nasaudio.h:47: error: syntax error before "AuServer" SDL_nasaudio.h:47: warning: no semicolon at end of struct or union ..... SDL_nasaudio.c:301: error: dereferencing pointer to incomplete type SDL_nasaudio.c:301: error: dereferencing pointer to incomplete type SDL_nasaudio.c:304: error: dereferencing pointer to incomplete type make[3]: *** [SDL_nasaudio.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/libsdl-1.2.6-r1/work/SDL-1.2.6/src/audio/nas' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/libsdl-1.2.6-r1/work/SDL-1.2.6/src/audio' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libsdl-1.2.6-r1/work/SDL-1.2.6/src' make: *** [all-recursive] Error 1 !!! ERROR: media-libs/libsdl-1.2.6-r1 failed. !!! Function src_compile, Line 67, Exitcode 2 !!! (no error message) The nas header files are installed in /usr/X11R6/include/audio which is not in the include path.
updated DEPEND to be: nas? ( media-libs/nas virtual/x11 )
hrm still not fixed ... it's not a matter of having the X11 libs, it's a matter of configure options ...
*** Bug 36427 has been marked as a duplicate of this bug. ***
Still having this bug with libsdl-1.2.6-r3
fixed in cvs
*** Bug 38378 has been marked as a duplicate of this bug. ***