[tlbuild] build failure: libs/zziplib/zziplib-0.13.58/zzip/stat.c needs #include <strings.h> for strcasecmp

Vladimir Volovich vvv at vsu.ru
Thu May 27 16:03:34 CEST 2010


Hi!

i've got a build failure on AIX:

gmake[5]: Entering directory `/usr/local/vvv/src/source/Work/libs/zziplib'
[...]
source='zziplib-0.13.58/zzip/stat.c' object='stat.o' libtool=no \
        DEPDIR=.deps depmode=aix /bin/bash ../../../libs/zziplib/../../build-aux/depcomp \
        xlc -DHAVE_CONFIG_H -I. -I../../../libs/zziplib -Iinclude -I../../../libs/zziplib/zziplib-0.13.58 -I/usr/local/vvv/src/source/Work/libs/zlib/include -D_USE_MMAP -I/opt/freeware/include -DUSE_STDLIB_WORKAROUNDS  -O2 -qmaxmem=262144 -qarch=com -qlanglvl=extended -qcpluscmt -c -o stat.o `test -f 'zziplib-0.13.58/zzip/stat.c' || echo '../../../libs/zziplib/'`zziplib-0.13.58/zzip/stat.c
"../../../libs/zziplib/zziplib-0.13.58/zzip/stat.c", line 40.44: 1506-045 (S) Undeclared identifier strcasecmp.

and it could be fixed by the following patch:

--- libs/zziplib/zziplib-0.13.58/zzip/stat.c	(revision 18528)
+++ libs/zziplib/zziplib-0.13.58/zzip/stat.c	(working copy)
@@ -21,6 +21,7 @@
 #include <zzip/lib.h>           /* exported... */
 #include <zzip/file.h>
 #include <string.h>
+#include <strings.h>
 #include <sys/stat.h>
 
 #define ZZIP_USE_INTERNAL

Best,
v.


More information about the tlbuild mailing list