Re: Ossec compile error on FreeBSD 6.x
"Sebastien Tricaud" <[email protected]>
| Newsgroups | gmane.comp.security.ids.prelude.devel |
|---|---|
| Message-ID | <[email protected]> |
Robin, actually I didn't even ask if you did the following: cd src/ make setprelude cd .. ./install.sh ? Please revert your changes and try that. Thanks, Sebastien. On 10/10/07, Robin Gruyters <[email protected]> wrote: > Nope, doesn't work. I see th following warning messages passing by: > > [..] > gcc: -lprelude: linker input file unused because linking not done > gcc: -lgnutls: linker input file unused because linking not done > gcc: -lgcrypt: linker input file unused because linking not done > gcc: -lgpg-error: linker input file unused because linking not done > gcc: -lgcrypt: linker input file unused because linking not done > gcc: -lgpg-error: linker input file unused because linking not done > [..] > > And error when trying to compile os_maild: > > [..] > *** Making os_maild *** > > gcc -g -Wall -I../ -I../headers -DUSE_OPENSSL -DARGV0=\"ossec-maild\" -DXML_VAR=\"var\" -DOSSECHIDS -DPRELUDE -I/usr/local/include -L/usr/local/lib -lprelude -L/usr/local/lib -lgnutls -L/usr/local/lib -lgcrypt -L/usr/local/lib -lgpg-error -L/usr/local/lib -lgcrypt -L/usr/local/lib -lgpg-error maild.c config.c os_maild_client.c sendmail.c mail_list.c ../config/*.c ../shared/lib_shared.a ../os_net/os_net.a ../os_regex/os_regex.a ../os_xml/os_xml.a -o ossec-maild > /usr/local/lib/libprelude.so: undefined reference to `pthread_create' > /usr/local/lib/libprelude.so: undefined reference to `pthread_exit' > /usr/local/lib/libprelude.so: undefined reference to `pthread_condattr_init' > /usr/local/lib/libprelude.so: undefined reference to `pthread_atfork' > /usr/local/lib/libprelude.so: undefined reference to `pthread_join' > /usr/local/lib/libprelude.so: undefined reference to `pthread_cond_timedwait' > *** Error code 1 > > Stop in /tmp/ossec-hids-071006/src/os_maild. > > Error Making os_maild > *** Error code 1 > [..] > > Kind regards, > -- > Robin Gruyters > Network and Security Engineer > YIRDIS - Betronic Services > I: http://yirdis.com > I: http://betronic.nl > P: +31 (0)20 5659191 > F: +31 (0)20 5659190 > > On Wed, Oct 10, 2007 at 12:29:39PM +0200, Sebastien Tricaud wrote: > > On 10/9/07, Robin Gruyters <[email protected]> wrote: > > > Sebastien, > > > > > > Nope, still problems. > > > > > > > > > -CFLAGS = -g -Wall -I${PT} -I${PT}headers ${CPATH} ${CEXTRA} ${DEXTRA} ${EEXTRA} ${FEXTRA} ${GEXTRA} -DARGV0=\"${NAME}\" -DXML_VAR=\"var\" -DOSSECHIDS > > > +CFLAGS = -g -Wall -I${PT} -I${PT}headers ${CPATH} ${CEXTRA} ${DEXTRA} ${EEXTRA} ${FEXTRA} ${GEXTRA} -DARGV0=\"${NAME}\" -DXML_VAR=\"var\" -DOSSECHIDS -DPRELUDE -I/usr/local/include > > > +LDFLAGS = -L/usr/local/lib -lprelude -L/usr/local/lib -lgnutls -L/usr/local/lib -lgcrypt -L/usr/local/lib -lgpg-error -L/usr/local/lib -lgcrypt -L/usr/local/lib -lgpg-error > > > > > > > Can you avoid adding LDFLAGS and add the content of libprelude-config > > --libs into CFLAGS ? > > > > I know this is hackish, this is not the final solution, just to see > > wether it works or not. > > _______________________________________________ Prelude-devel site list [email protected] http://www.prelude-ids.org/mailman/listinfo/prelude-devel