Hello,
We just applied this fix to our Solaris 10 box and it still fails after replacing all /bin/sh with /bin/xpg4/bin/sh in the Makefile... here is the output:
5- Installing the system
- Running the Makefile
*** Making zlib (by Jean-loup Gailly and Mark Adler) ***
cd zlib-1.2.8/; ./configure; make libz.a;
Checking for gcc...
Checking for shared library support...
Building shared library libz.so.1.2.8 with gcc.
Checking for off64_t... Yes.
Checking for fseeko... Yes.
Checking for strerror... Yes.
Checking for unistd.h... Yes.
Checking for stdarg.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for attribute(visibility) support... No.
gcc -O3 -D_LARGEFILE64_SOURCE=1 -c adler32.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -c crc32.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -c deflate.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -c infback.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -c inffast.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -c inflate.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -c inftrees.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -c trees.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -c zutil.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -c compress.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -c uncompr.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -c gzclose.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -c gzlib.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -c gzread.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -c gzwrite.c
ar rc libz.a adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o
cp -pr zlib-1.2.8/libz.a .
cp -pr zlib-1.2.8/zlib.h zlib-1.2.8/zconf.h ../headers/
*** Making cJSON (by Dave Gamble) ***
cc -g -Wall -I../../ -I../../headers -DDEFAULTDIR=\"/var/ossec\" -DCLIENT -DSOLARIS -DHIGHFIRST -DARGV0=\"cJSON\" -DOSSECHIDS -c cJSON.c
/usr/ucb/cc: language optional software package not installed
*** Error code 1
make: Fatal error: Command failed for target `libcJSON.a'
Current working directory /tmp/ossec-hids-2.8/src/external/cJSON
Error Making cJSON
*** Error code 1
The following command caused the error:
/usr/xpg4/bin/sh ./Makeall all
make: Fatal error: Command failed for target `all'
Error 0x5.
Building error. Unable to finish the installation.
Thanks for any help or insight you can provide.