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? 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.
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? -- Kind Regards from Switzerland, Stevan Bajić ------------------------------------------------------------------------------ Download Intel® 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