Hello, I was trying to reinstall OSSEC with database support (for postgreSQL) on Solaris 10. After making ./src/setdb I ran the install script and got the following error: > *** 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_dbd > Error 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. > I then tried the fix for ubuntu (https://groups.google.com/forum/?fromgroups#!searchin/ossec-list/db$20support/ossec-list/qqWzQTEP7kc/w3GZjy5u2AIJ) and got the following > *** 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_dbd > Error 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. >
Has anyone had this before? -- --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
