On Tue, 09 Mar 2010 19:49:18 +0100
Stevan Bajić <ste...@bajic.ch> wrote:

> On Tue, 9 Mar 2010 20:03:30 +0200, Ion-Mihai Tetcu
> <ite...@freebsd.org> wrote:
> > On Tue, 09 Mar 2010 17:13:25 +0000
> > Paul Cockings <ds...@cytringan.co.uk> wrote:
> > 
> >> trying to build freebsd port with
> >> 
> >> MYSQL50 on
> >> MYSQL_LOCAL on
> >> 
> >> 
> >> /usrlocal/etc/rc.d/dspam start
> >> 
> >> dspam[43705]: dlopen() failed: /usr/local/lib/libmysql_drv.so:
> >> Cannot open "/usr/local/lib/libmysql_drv.so"
> >> dspam[43705]: Unable to initialize storage driver
> >> 
> >> There is no libmysql_drv.so in /usr/local/lib
> >> 
> >> 
> >> Can someone else confirm this behaviour?
> > 
> > This is bad. Do you turn off all other DB drivers when you get this?
> >
> Can it be that you just selected the MySQL driver and only the MySQL
> driver? 

That's what I was asking.

> If so then the driver is statically linked into libdspam. If you want
> a dynamic driver then you need to add
> '--with-storage-driver=mysql_drv,mysql_drv'. This will then produce a
> dynamic storage driver.

And this is why :)

> Or if you want to go with the static driver then comment out the line
> "StorageDriver" in dspam.conf. So DSPAM will not try to dlopen() the
> storage driver (since it's not needed for a statically linked driver).
> 
> I don't want to brag but in Gentoo all that kind of configuration
> options are handled inside the Ebuild. Maybe you could borrow some
> ideas/concept stuff from reading the Ebuild?

Yes, I can make the port comment the StorageDriver line in the .conf.
I'm not sure this is something that we should do in each port/package
as apposed to the ./configure


-- 
IOnut - Un^d^dregistered ;) FreeBSD "user"
  "Intellectual Property" is   nowhere near as valuable   as "Intellect"
FreeBSD committer -> ite...@freebsd.org, PGP Key ID 057E9F8B493A297B

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Dspam-devel mailing list
Dspam-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to