Re: Ossec compile error on FreeBSD 6.x

Robin Gruyters <[email protected]>
Newsgroups gmane.comp.security.ids.prelude.devel
Message-ID <[email protected]>
;)

That is already what I have said in the prelude-devel ;)

So, it's no point for me to do last action. It won't work ;)

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 11:08:46AM -0400, Sebastien Tricaud wrote:
> OK,
> 
> I got news from Daniel: there is something to fix because the prelude
> flags are overwritten during compile time.
> 
> As soon as I have the correct archive, I'll tell you here.
> 
> 
> Thanks,
> Sebastien.
> 
> 
> 
> On 10/10/07, Sebastien Tricaud <[email protected]> wrote:
> > 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
signature.asc (application/pgp-signature, 187 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.3 (FreeBSD)

iD8DBQFHDSnoLh3hlgHmc7MRAmVVAJsEjVMeDrUI6X4E1SOvnoWRTdgjawCgkVT/
TvNxOk5aWGV8CFyYA6pg7Hk=
=eJOZ
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.