*** Making os_dbd ***Compiling DB support with:
gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" -DSOLARIS -DHIGHFIRST -DARGV0=\"ossec-dbd\" -DXML_VAR=\"var\" -DOSSECHIDS -lsocket -lnsl -lresolv -I/usr/sfw/include/mysql -xstrconst -mt -R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm -DDBD -DUMYSQL -I/usr/include/pgsql -I/usr/include/pgsql -L/usr/lib -L/usr/lib -lpq -DDBD -DUPOSTGRES *.c ../config/lib_config.a ../shared/lib_shared.a ../os_net/os_net.a ../os_regex/os_regex.a ../os_xml/os_xml.a -o ossec-dbd
gcc: language strconst not recognized
gcc: language strconst not recognized
gcc: language strconst not recognized
gcc: language strconst not recognized
gcc: language strconst not recognized
gcc: language strconst not recognized
gcc: language strconst not recognized
gcc: language strconst not recognized
gcc: language strconst not recognized
gcc: language strconst not recognized
gcc: language strconst not recognized
gcc: language strconst not recognized
ld: fatal: file alert.c: unknown file type
ld: fatal: file processing errors. No output written to ossec-dbd
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `default'
Current working directory ~/OSSEC/ossec-hids-2.7/src/os_dbdError Making os_dbd
*** Error code 1
The following command caused the error:
/bin/sh ./Makeall all
make: Fatal error: Command failed for target `all'Error 0x5.
Building error. Unable to finish the installation.
*** Making os_dbd ***Compiling DB support with:
gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" -DSOLARIS -DHIGHFIRST -DARGV0=\"ossec-dbd\" -DXML_VAR=\"var\" -DOSSECHIDS -lsocket -lnsl -lresolv *.c ../config/lib_config.a ../shared/lib_shared.a ../os_net/os_net.a ../os_regex/os_regex.a ../os_xml/os_xml.a -I/usr/sfw/include/mysql -xstrconst -mt -R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm -DDBD -DUMYSQL -I/usr/include/pgsql -I/usr/include/pgsql -L/usr/lib -L/usr/lib -lpq -DDBD -DUPOSTGRES -o ossec-dbd
cc1: error: invalid option `t'
cc1: error: invalid option `t'
cc1: error: invalid option `t'
cc1: error: invalid option `t'
cc1: error: invalid option `t'
cc1: error: invalid option `t'
cc1: error: invalid option `t'
*** Error code 1
make: Fatal error: Command failed for target `default'
Current working directory ~/OSSEC/ossec-hids-2.7/src/os_dbdError Making os_dbd
*** Error code 1
The following command caused the error:
/bin/sh ./Makeall all
make: Fatal error: Command failed for target `all'Error 0x5.
Building error. Unable to finish the installation.
CDB=-I/usr/sfw/include/mysql -xstrconst -mt -R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm -DDBD -DUMYSQL -I/usr/include/pgsql -I/usr/include/pgsql -L/usr/lib -L/usr/lib -lpq -DDBD -DUPOSTGRES
# mysql --versionmysql Ver 12.22 Distrib 4.0.31, for pc-solaris2.10 (i386)
# as SSH_integrity_check_linux
send "echo \"INFO: Starting.\"; for i in `find $args 2>/dev/null`;do tail \$i>/dev/null 2>&1 && md5=`digest -a md5 \$i` && sha1=`digest -a sha1 \$i` && fileInf=`ls -ldAn \$i | awk '{ printf \"%d:%s:%d:%d\", \$5, \$1, \$3,\$4 }'` && echo FWD: \$fileInf:\$md5:\$sha1 \$i ; done; exit\r"
# as SSH_integrity_check_linux
# calculate date as expect variable and pass to bash
set ymonth [clock format [clock scan "2 days ago"] -format "%b"]
set yday [clock format [clock scan "2 days ago"] -format "%e"]
set yesterday [format "%s %d" $ymonth $yday]
# altered this file to make it use LOG:
send "echo \"INFO: Starting.\"; for i in `find $args 2>/dev/null`;do tail \$i>/dev/null 2>&1 && while read line; do ValidLine=`echo \$line|grep \"$yesterday\"` && echo LOG: \$ValidLine; done <\$i;done; exit\r"send "exit\r"
OSSEC HIDS v2.7 - Trend Micro Inc.
Compiled with PostgreSQL support.
Amendment:
Agent, alert data and location don’t get data added to the database
Category, server, signature and signature_category_mapping all seem to get data when I do a ossec-control restart