Joshua Hoblitt wrote:
Bazzar - I wonder if your glibc is so old that it doesn't support
unix98. That would have to be a version of glibc 2.0.x where X is a
pretty low number...
$ /lib/libc.so.6
GNU C Library stable release version 2.1.3, [...]
... Does switching '_XOPEN_SOURCE=600' to
'_XOPEN_SOURCE=500' make any difference?
Much better then 600. Gives just 2 new warnings: implicit declaration of
setenv, unsetenv
... You could also try
'-D_GNU_SOURCE' which should enable a superset of _XOPEN_SOURCE.
Still better, above 2 warnings are gone again.
Now testing on another box:
$ ls -al /lib/libc.so.6
lrwxrwxrwx 1 root root 13 2005-05-18 17:59
/lib/libc.so.6 -> libc-2.3.2.so
Ah, this one has _GNU_SOURCE already defined.
I've changed the config hint to _GNU_SOURCE now (r9405).
Thanks for the hints,
leo