On mingw (at least, when cross-compiling with Fedora 18's
mingw32-headers-2.0.999-0.15.trunk.20121110.fc18.noarch build),
compilation of test-regex fails:
test-regex.c: In function 'main':
test-regex.c:42:11: error: 'SIGALRM' undeclared (first use in this function)
test-regex.c:42:11: note: each u
While auditing alarm usage, I noticed that test-regex had a nice
idiom that made it easier to disable an alarm under glibc. Use
it elsewhere, so future copy-and-paste will preserve the idiom.
* tests/test-file-has-acl.c (main): Allow gdb to override alarm.
* tests/test-memmem.c (main): Likewise.
test-regex currently fails to compile on mingw, when using the mingw64
32-bit cross-compiler shipped in cygwin:
test-regex.c: In function 'main':
test-regex.c:42:11: error: 'SIGALRM' undeclared (first use in this function)
test-regex.c:42:11: note: each undeclared identifier is reported only
once
On 03/11/2013 12:35 AM, Gary V. Vaughan wrote:
> Anything I can do to help debug this failure?
That looks like an AIX bug, no? Perhaps file a bug with IBM?
I'm not sure it's gnulib's job to work around that bug
On mingw, I got:
../../tests/putenv.c: In function '_unsetenv':
../../tests/putenv.c:65:10: warning: unused variable 'ep'
* lib/putenv.c (_unsetenv): Protect variable declaration.
(putenv): Fix indentation.
Signed-off-by: Eric Blake
---
ChangeLog| 6 +
lib/putenv.c | 76 ++
On all the AIX machines I have access to, with all compiler optimisations
turned off, I get this:
aix7% make check
...
xlc -qlanglvl=extc99 -g -o test-fclose test-fclose.o libtests.a ../lib/libm4.a
libtests.a
...
PASS: test-errno