Hello, I was able to install ossec 2.0 successfully on Linux Fedora core 8. I then observed I am suppose to install mysql database. I uninstalled ossec and installed mysql as directed with all libraries before the installation of ossec. The challenge now is that ossec cannot compile mysql and the installation is incomplete. Kindly assist me in resolving the errors below: *** Making os_dbd ***
make[1]: Entering directory `/home/kelly/Desktop/ossec-hids-2.0/src/os_dbd' Compiling DB support with: gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" -DUSE_OPENSSL -DARGV0=\"ossec-dbd\" -DXML_VAR=\"var\" -DOSSECHIDS -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto -DDBD -DUMYSQL *.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 db_op.c:23:19: error: mysql.h: No such file or directory db_op.c: In function 'mysql_osdb_connect': db_op.c:159: error: 'MYSQL' undeclared (first use in this function) db_op.c:159: error: (Each undeclared identifier is reported only once db_op.c:159: error: for each function it appears in.) db_op.c:159: error: 'conn' undeclared (first use in this function) db_op.c:160: warning: implicit declaration of function 'mysql_init' db_op.c:174: warning: implicit declaration of function 'mysql_options' db_op.c:174: error: 'MYSQL_OPT_NAMED_PIPE' undeclared (first use in this function) db_op.c:178: error: 'MYSQL_PROTOCOL_TCP' undeclared (first use in this function) db_op.c:179: error: 'MYSQL_OPT_PROTOCOL' undeclared (first use in this function) db_op.c:182: warning: implicit declaration of function 'mysql_real_connect' db_op.c:183: warning: comparison between pointer and integer db_op.c:185: warning: implicit declaration of function 'mysql_error' db_op.c:185: warning: format '%s' expects type 'char *', but argument 5 has type 'int' db_op.c:186: warning: implicit declaration of function 'mysql_close' db_op.c:191: warning: control reaches end of non-void function db_op.c: In function 'mysql_osdb_query_insert': db_op.c:211: warning: implicit declaration of function 'mysql_query' db_op.c:214: warning: format '%s' expects type 'char *', but argument 4 has type 'int' db_op.c: In function 'mysql_osdb_query_select': db_op.c:231: error: 'MYSQL_RES' undeclared (first use in this function) db_op.c:231: error: 'result_data' undeclared (first use in this function) db_op.c:232: error: 'MYSQL_ROW' undeclared (first use in this function) db_op.c:232: error: expected ';' before 'result_row' db_op.c:239: warning: format '%s' expects type 'char *', but argument 4 has type 'int' db_op.c:246: warning: implicit declaration of function 'mysql_use_result' db_op.c:250: warning: format '%s' expects type 'char *', but argument 4 has type 'int' db_op.c:257: error: 'result_row' undeclared (first use in this function) db_op.c:257: warning: implicit declaration of function 'mysql_fetch_row' db_op.c:264: warning: implicit declaration of function 'mysql_free_result' make[1]: *** [default] Error 1 make[1]: Leaving directory `/home/kelly/Desktop/ossec-hids-2.0/src/os_dbd' Error Making os_dbd make: *** [all] Error 1 Error 0x5. Building error. Unable to finish the installation. Best regards, Kelly Egode Technology | Guaranty Trust Bank plc | Processing Centre | Plot 714 Adetokunbo Ademola Str., V.I | Lagos, Nigeria. Tel: +234-(0)1- 4484000 | Fax: +234-(0)1-4620483 | Mobile: +234-(0)-806-7376-867
