Sdl, sdl-mixer not compiling with uclibc

Hi,
can anyone shed some light as to what is happening here? sdl-mixer (and
all the rest like sdl-image etc) is
failing at the configure stage.
As far as I can tell, libSDL isn’t managing to use libdl (not finding
dlvsym), but when I ldd libSDL.so, it shows up.
I’ve pasted the relevant part of config.log and the ldd of libSDL.

Andrew

configure:19636: checking for sdl-config
configure:19654: found /usr/bin/sdl-config
configure:19667: result: /usr/bin/sdl-config
configure:19675: checking for SDL - version >= 1.2.4
configure:19765: gcc -o conftest -Os -g -march=c3 -m3dnow -mmmx
-fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/SDL -D_REENTRANT conftest.c -lSDL -lpthread >&5
/usr/lib/gcc-lib/i586-gentoo-linux-uclibc/3.3.5-20050130/…/…/…/libSDL.so:
undefined reference to `dlvsym’
collect2: ld returned 1 exit status
configure:19768: $? = 1

#ldd /usr/lib/libSDL.so

    libc.so.0 => /lib/libc.so.0 (0xb7fa7000)
    ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb7ff8000)
    libc.so.0 => /lib/libc.so.0 (0xb7f4f000)
    ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb7fa0000)
    libc.so.0 => /lib/libc.so.0 (0xb7ec2000)
    ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb7f13000)
    ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb7fae000)
    libm.so.0 => /lib/libm.so.0 (0x00000000)
    libdl.so.0 => /lib/libdl.so.0 (0x00000000)
    libaudio.so.2 => /usr/lib/libaudio.so.2 (0x00000000)
    libXt.so.6 => /usr/lib/libXt.so.6 (0x00000000)
    libX11.so.6 => /usr/lib/libX11.so.6 (0x00000000)
    libXext.so.6 => /usr/lib/libXext.so.6 (0x00000000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x00000000)
    libc.so.0 => /lib/libc.so.0 (0x00000000)
    libXau.so.6 => /usr/lib/libXau.so.6 (0x00000000)
    libSM.so.6 => /usr/lib/libSM.so.6 (0x00000000)
    libICE.so.6 => /usr/lib/libICE.so.6 (0x00000000)
    not a dynamic executable

bug reports like this belong on the gentoo embedded list, not upstream lists

i doubt most people here care about uClibc
-mikeOn Wednesday 07 September 2005 06:51 am, mplayer at randeknight.com wrote:

can anyone shed some light as to what is happening here?

in this case actually, the error is in libsdl

the configure check for dlvsym presence is pretty pointless, it currently
always detects it

            AC_TRY_COMPILE([
              #include <stdio.h>
              #define __USE_GNU
              #include <dlfcn.h>
            ],[
              dlvsym(NULL,"","");
            ],[
            use_dlvsym=yes
            ])

since it’s merely compiling, the warning about dlvsym being implicitly
declared doesnt trigger a failure

find attached a patch to fix this
-mike
-------------- next part --------------
A non-text attachment was scrubbed…
Name: libsdl-1.2.9-dlvsym-check.patch
Type: text/x-diff
Size: 907 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20050907/1b4a6abb/attachment.patchOn Wednesday 07 September 2005 08:43 am, Mike Frysinger wrote:

On Wednesday 07 September 2005 06:51 am, mplayer at randeknight.com wrote:

can anyone shed some light as to what is happening here?

bug reports like this belong on the gentoo embedded list, not upstream
lists

bug reports like this belong on the gentoo embedded list, not upstream lists

i doubt most people here care about uClibc

We seem to care about a lot of obscure platforms around here. :slight_smile:

If a reasonable patch shows up, we’re happy to take it.

–ryan.

bug reports like this belong on the gentoo embedded list, not upstream
lists

i doubt most people here care about uClibc

We seem to care about a lot of obscure platforms around here. :slight_smile:

half the time the bug is something the user is doing or in uClibc or in Gentoo
Embedded … i like to filter issues on Gentoo lists before sending them
upstream since it’d just be a waste of time for upstream devs

If a reasonable patch shows up, we’re happy to take it.

i just posted a portable solution/explanation of the problem :wink:
-mikeOn Thursday 08 September 2005 01:40 am, Ryan C. Gordon wrote: