On Sun, Dec 18, 2016 at 9:36 PM, Mohd Zainal Abidin Mamat <zainal....@gmail.com> wrote: > I'm getting same error using ver 2.8.3 on centos 7. Still seeking solution. >
Verify that you have the devel packages installed. I just setup a Centos 7 VM, added the mysql community packages, and installed OSSEC without any errors. [root@localhost ossec-hids-2.8.3]# rpm -qa | grep -i mysql mysql-community-devel-5.7.17-1.el7.x86_64 mysql-community-libs-5.7.17-1.el7.x86_64 mysql57-community-release-el7-9.noarch mysql-community-libs-compat-5.7.17-1.el7.x86_64 mysql-community-client-5.7.17-1.el7.x86_64 mysql-community-common-5.7.17-1.el7.x86_64 > On Saturday, July 10, 2010 at 5:11:07 AM UTC+8, Jason 'XenoPhage' Frisvold > wrote: >> >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Hi all, >> >> I'm having a problem compiling ossec on a local server I have. >> The >> server is an CentOS 5.5 machine using the official MySQL RPMs rather >> than the CentOS version. Specifically, I have the following installed : >> >> MySQL-devel-community-5.0.67-0.rhel5 >> MySQL-shared-compat-5.0.67-0.rhel5 >> MySQL-server-community-5.0.67-0.rhel5 >> MySQL-client-community-5.0.67-0.rhel5 >> >> The error I'm receiving is as follows : >> >> *** Making os_dbd *** >> >> make[1]: Entering directory >> `/usr/src/redhat/BUILD/ossec-hids-2.4.1/src/os_dbd' >> Compiling DB support with: >> gcc -g -Wall -I../ -I../headers -DUSE_OPENSSL -DUSEINOTIFY >> - -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 >> - -fasynchronous-unwind-tables -rdynamic -L/usr/lib/mysql -lmysqlclient >> - -lz -lcrypt -lnsl -lm -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 >> /tmp/ccKCtW2N.o: In function `mysql_osdb_connect': >> /usr/src/redhat/BUILD/ossec-hids-2.4.1/src/os_dbd/db_op.c:164: undefined >> reference to `mysql_init' >> /usr/src/redhat/BUILD/ossec-hids-2.4.1/src/os_dbd/db_op.c:178: undefined >> reference to `mysql_options' >> /usr/src/redhat/BUILD/ossec-hids-2.4.1/src/os_dbd/db_op.c:183: undefined >> reference to `mysql_options' >> /usr/src/redhat/BUILD/ossec-hids-2.4.1/src/os_dbd/db_op.c:186: undefined >> reference to `mysql_real_connect' >> /usr/src/redhat/BUILD/ossec-hids-2.4.1/src/os_dbd/db_op.c:189: undefined >> reference to `mysql_error' >> /usr/src/redhat/BUILD/ossec-hids-2.4.1/src/os_dbd/db_op.c:190: undefined >> reference to `mysql_close' >> /tmp/ccKCtW2N.o: In function `mysql_osdb_close': >> /usr/src/redhat/BUILD/ossec-hids-2.4.1/src/os_dbd/db_op.c:204: undefined >> reference to `mysql_close' >> /tmp/ccKCtW2N.o: In function `mysql_osdb_query_insert': >> /usr/src/redhat/BUILD/ossec-hids-2.4.1/src/os_dbd/db_op.c:215: undefined >> reference to `mysql_query' >> /usr/src/redhat/BUILD/ossec-hids-2.4.1/src/os_dbd/db_op.c:218: undefined >> reference to `mysql_error' >> /tmp/ccKCtW2N.o: In function `mysql_osdb_query_select': >> /usr/src/redhat/BUILD/ossec-hids-2.4.1/src/os_dbd/db_op.c:240: undefined >> reference to `mysql_query' >> /usr/src/redhat/BUILD/ossec-hids-2.4.1/src/os_dbd/db_op.c:243: undefined >> reference to `mysql_error' >> /usr/src/redhat/BUILD/ossec-hids-2.4.1/src/os_dbd/db_op.c:250: undefined >> reference to `mysql_use_result' >> /usr/src/redhat/BUILD/ossec-hids-2.4.1/src/os_dbd/db_op.c:254: undefined >> reference to `mysql_error' >> /usr/src/redhat/BUILD/ossec-hids-2.4.1/src/os_dbd/db_op.c:261: undefined >> reference to `mysql_fetch_row' >> /usr/src/redhat/BUILD/ossec-hids-2.4.1/src/os_dbd/db_op.c:268: undefined >> reference to `mysql_free_result' >> collect2: ld returned 1 exit status >> make[1]: *** [default] Error 1 >> make[1]: Leaving directory >> `/usr/src/redhat/BUILD/ossec-hids-2.4.1/src/os_dbd' >> >> Error Making os_dbd >> make: *** [all] Error 1 >> >> >> Yes, I'm compiling this as an RPM. I get the same error compiling by >> hand. >> >> I have run ldconfig with a -v and verified that the libmysqlclient >> libraries are in there, I have verified the location of both the include >> files and libraries for mysql. >> >> At this point, I'm not sure where to head. Does anyone have any >> thoughts on what's happening here? >> >> Thanks, >> >> - -- >> - --------------------------- >> Jason 'XenoPhage' Frisvold >> xeno...@godshell.com >> - --------------------------- >> "Any sufficiently advanced magic is indistinguishable from technology." >> - - Niven's Inverse of Clarke's Third Law >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v2.0.14 (GNU/Linux) >> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ >> >> iEYEARECAAYFAkw3kGsACgkQ8CjzPZyTUTT5bgCghfUpNy7QkLr2DRagsf9fQxsT >> dQgAnRW899SmJ2t1Izdp5dbYBZgK3+zv >> =+876 >> -----END PGP SIGNATURE----- > > -- > > --- > 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.