try installing gcc and then point cc to gcc binary.

Eero

2016-09-06 22:28 GMT+03:00 Stephen LuShing <smlush...@gmail.com>:

> - I am running bash and fixed some places where the was a /bin/sh to
> ./bin/bash.
> - Since Solaris 10 has no cc - I install Sun Studio 12.2 and pointed the
> path of cc to ./opt/solstudio12.2/bin.
> Ran a sh -x install.sh to see wht is going on and here is the problem as
> it tried to compile but something is not right when it used -Wall option
>
> I am not much a programmer (some basic) as I was wondering if anyone has
> seem this or maybe it is a simple fix.
>
> Thanks in advance
>
> Steve lushing
>
> FOLLOWING IS PART OF THE COMPILE THAT FAILED
>
>
> + echo 5- Installing the system
> 5- Installing the system
> + echo DIR="/var/ossec"
> + [ X = Xdebug ]
> + echo CEXTRA= -DDEFAULTDIR=\"/var/ossec\" -DCLIENT
> + echo  - Running the Makefile
>  - Running the Makefile
> + cd ./src
> + [ X = X ]
> + make all
>
>  *** Making zlib (by Jean-loup Gailly and Mark Adler)  ***
> 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
> -DUSE_OPENSSL -DSOLARIS -DHIGHFIRST      -DARGV0=\"cJSON\" -DOSSECHIDS -c
> cJSON.c
> cc: -W option with unknown program all
> *** Error code 1
> make: Fatal error: Command failed for target `libcJSON.a'
> Current working directory /export/home/netsml/ossec-
> hids-2.8.3/src/external/cJSON
>
> Error Making cJSON
> *** Error code 1
> The following command caused the error:
> /bin/bash ./Makeall all
> make: Fatal error: Command failed for target `all'
> + [ 1 != 0 ]
> + cd ../
> + catError 0x5-build
> FILE=0x5-build
> FILE_PATH=./etc/templates/en/errors/0x5-build.txt
> + isFile ./etc/templates/en/errors/0x5-build.txt
> FILE=./etc/templates/en/errors/0x5-build.txt
> + ls ./etc/templates/en/errors/0x5-build.txt
> + [ 0 = 0 ]
> + echo true
> + return 0
> + [ true = false ]
> + cat ./etc/templates/en/errors/0x5-build.txt
>
>  Error 0x5.
>  Building error. Unable to finish the installation.
>
> + exit 1
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "ossec-list" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ossec-list+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"ossec-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ossec-list+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to