[Snort-users] problem logging to a mysql database under OpenBSD 2.7 - sort of

Roman Danyliw roman at ...438...
Wed Nov 1 09:29:29 EST 2000


I think this problem may still be related to MySQL not PHP.  In order to
build MySQL support into PHP (a prerequisite for ACID), the mysqlclient
library must be linked into the libphp4.so.  This is the same library that
is used by Snort to provide MySQL functionlity.  Therefore, I reason that
if there were linking dependencies in Snort, it follows that they may
also arise in PHP. Check the Makefile used to build PHP and confirm
whether the math library was linked (-lm).  If it was not, try manually
insert it and rebuilding PHP.


On Tue, 31 Oct 2000, andy lowton wrote:
> >>>>> On Mon, 30 Oct 2000, "George" == George Colt wrote
>   George> floor is called by the mysql client. quick and easy "fix" is
> add -lm 
>   George> to either LIBS or LDFLAGS in the Makefile. e.g.
>   George> LIBS = -lm -lmysqlclient -lpcap -lsocket -lnsl
> Ok, I've got a good one for you. I use OpenBSD 2.7 and the latest source
> of
> snort from cvs. Snort logs to mysql fine, but when I try and run acid
> (the
> latest beta), I get:
> /usr/libexec/ld.so: Undefined symbol "_floor" called from
> httpd:/usr/lib/apache/
> modules/libphp4.so at 0x40321514
> Looks familiar does it not? 8-) From a browser point of view I get a
> 'Document
> contains no
>  data'
> As far as I can work out -lm is part of the make for php, so how do I
> make this
> thing work?
> My monitor thanks anyone who can answer this, as it is about to get
> punched 8-)
> l8z
> andy
> ---------------------------------------
> E-Mail: andy at ...586...
> PGP/GnuPG Key available on request
> Cultivating a healthy uptime addiction
> ---------------------------------------
> _______________________________________________
> Snort-users mailing list
> Snort-users at lists.sourceforge.net
> http://lists.sourceforge.net/mailman/listinfo/snort-users

More information about the Snort-users mailing list