On Jul 20, 2015 3:27 PM, "James Edwards" <x86bsdu...@gmail.com> wrote: > > Hi All, > > I'm trying to compile OSSEC on Ubuntu 14.04 with libmagic support and I keep running into the following error when compiling syscheck (same error running Makeall as well): > > [root@hostname]/tmp/ossec-hids-2.8.2/src/syscheckd# make > cc -g -Wall -I../ -I../headers -DUSEINOTIFY -DUSE_MAGIC -DARGV0=\"ossec-syscheckd\" -DOSSECHIDS -lmagic syscheck.c config.c seechanges.c run_realtime.c create_db.c run_check.c ../config/lib_config.a ../rootcheck/rootcheck_lib.a ../shared/lib_shared.a ../os_xml/os_xml.a ../os_regex/os_regex.a ../os_net/os_net.a ../os_crypto/os_crypto.a -o ossec-syscheckd > /tmp/cc9nExX5.o: In function `init_magic': > /tmp/ossec-hids-2.8.2/src/syscheckd/syscheck.c:43: undefined reference to `magic_open'
Which file provides magic_open? > /tmp/ossec-hids-2.8.2/src/syscheckd/syscheck.c:47: undefined reference to `magic_error' > /tmp/ossec-hids-2.8.2/src/syscheckd/syscheck.c:50: undefined reference to `magic_load' > /tmp/ossec-hids-2.8.2/src/syscheckd/syscheck.c:52: undefined reference to `magic_error' > /tmp/ossec-hids-2.8.2/src/syscheckd/syscheck.c:54: undefined reference to `magic_close' > /tmp/ccLsn7RT.o: In function `is_text': > /tmp/ossec-hids-2.8.2/src/syscheckd/seechanges.c:24: undefined reference to `magic_buffer' > /tmp/ossec-hids-2.8.2/src/syscheckd/seechanges.c:28: undefined reference to `magic_error' > collect2: error: ld returned 1 exit status > make: *** [syscheck] Error 1 > > libmagic-dev 5.14-2ubuntu3.3 is installed and I see the following magic.h header files: > > /usr/include/linux/magic.h > /usr/include/magic.h > > Any advice on how to resolve this? > > Thanks, > James > > -- > > --- > 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.