OSSEC 2,4 fails to compile on Solaris 8, gcc 2.95.3: gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/opt/ossec\" -DSOLARIS -DHIGHFIRST -DARGV0=\"ossec-monitord\" -DXML_VAR=\"var\" -DOSSECHIDS -lsocket -lnsl -lresolv -UARGV0 -DARGV0=\"ossec-reportd\" report.c ../config/lib_config.a ../shared/lib_shared.a ../os_net/os_net.a ../os_regex/os_regex.a ../os_xml/os_xml.a ../os_crypto/os_crypto.a ../os_zlib/os_zlib.c ../external/libz.a -o ossec-reportd *Initialization*:1: warning: `ARGV0' redefined *Initialization*:1: warning: this is the location of the previous definition report.c: In function `report_help': report.c:20: `ARGV0' undeclared (first use in this function) report.c:20: (Each undeclared identifier is reported only once report.c:20: for each function it appears in.) report.c: In function `main': report.c:53: `ARGV0' undeclared (first use in this function) *Initialization*:1: warning: `ARGV0' redefined *Initialization*:1: warning: this is the location of the previous definition
Adding: #include "monitord.h" into report.c fixes the problem with some warnings: gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/opt/ossec\" -DSOLARIS -DHIGHFIRST -DARGV0=\"ossec-monitord\" -DXML_VAR=\"var\" -DOSSECHIDS -lsocket -lnsl -lresolv -UARGV0 -DARGV0=\"ossec-reportd\" report.c ../config/lib_config.a ../shared/lib_shared.a ../os_net/os_net.a ../os_regex/os_regex.a ../os_xml/os_xml.a ../os_crypto/os_crypto.a ../os_zlib/os_zlib.c ../external/libz.a -o ossec-reportd *Initialization*:1: warning: `ARGV0' redefined *Initialization*:1: warning: this is the location of the previous definition *Initialization*:1: warning: `ARGV0' redefined *Initialization*:1: warning: this is the location of the previous definition -- Serge Dubrouski. -- To unsubscribe, reply using "remove me" as the subject.
