Originally Posted by SciYro
Seems like it probably is your libc version, glibc 2.6.1 here and your program compiles and runs fine. Looking at the binary, it seems to only have a significant link with libc, so if you get that linker error, i do believe it means your libc doesn't have the function contained.
As I suspected, your right. My example now compiles perfectly.
$ dpkg -l libc6
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
ii libc6 2.7-4 GNU C Library: Shared libraries
deb http://ftp.debian.org/debian/ etch main non-free contrib
deb-src http://ftp.debian.org/debian/ etch main non-free contrib
deb http://ftp.debian.org/debian/ lenny main non-free contrib
deb-src http://ftp.debian.org/debian/ lenny main non-free contrib
deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib
Pin: release a=stable
Pin: release a=lenny
# apt-get install -t testing libc6