Linux link error

Hi,

whenever I try to compile any SDL-application with gcc, ld fails with the
following message:

/usr/X11R6/lib/libX11.so.6: undefined reference to getpwnam_r@@GLIBC_2.0
/usr/X11R6/lib/libX11.so.6: undefined reference to getpwuid_r@@GLIBC_2.0

I know that this is rather a problem with my xlib instead of SDL, but it’s
the first time this error occured (other X apps compile and link correctly),
so I thought there might be someone on this list who also experienced this.

Btw, I’m using xlib6g 3.3.6, libc6 2.1.95, libc5 5.4.46, ldso 1.9.11 and gcc
2.95.2.

I’d really appreciate any hints…

Thanks in advance,
Jan–
Jan Morgenstern
Music Production+Audio Design
http://www.jm-music.de

Hi,

whenever I try to compile any SDL-application with gcc, ld fails with the
following message:

/usr/X11R6/lib/libX11.so.6: undefined reference to getpwnam_r@@GLIBC_2.0
/usr/X11R6/lib/libX11.so.6: undefined reference to getpwuid_r@@GLIBC_2.0

That’s really wierd. Do you have the correct versions of the X libraries
for your system? I notice that you have both libc5 and glibc on the same
system… ?

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software