There seems to be a bug in Gnulib's setenv module on Mac OS X. At
configure time it says:
checking whether setenv validates arguments ... no
(The test program it is running is:
| int
| main ()
| {
|
| if (setenv ("", "", 0) != -1) return 1;
| if (errno != EINVAL) return 2;
| if (setenv ("a", "=", 1) != 0) return 3;
| if (strcmp (getenv ("a"), "=") != 0) return 4;
|
| ;
| return 0;
| }
and this returns status code 4)
As a result, in stdlib.h, this:
#if @GNULIB_SETENV@
# if @REPLACE_SETENV@
# undef setenv
# define setenv rpl_setenv
is replaced by:
#if 1
# if 1
# undef setenv
# define setenv rpl_setenv
However, no rpl_setenv function is getting generated in libgnu.a, so
of course the program fails to link.
Any ideas?
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw