Hello, attached is a patch which links the dspam modules against libdspam, else they would not find several symbols while linking if you compile with shared storage drivers.
Cheers, -- andreas -- http://www.cynapses.org/ - cybernetic synapses
Index: src/Makefile.am =================================================================== --- src/Makefile.am.orig +++ src/Makefile.am @@ -129,7 +129,7 @@ if DYNAMIC_DRIVER libmysql_drv_la_SOURCES = \ mysql_drv.c mysql_drv.h -libmysql_drv_la_LIBADD = $(libmysql_drv_libs) +libmysql_drv_la_LIBADD = $(libmysql_drv_libs) $(srcdir)/libdspam.la libmysql_drv_la_CPPFLAGS = $(libmysql_drv_cppflags) libmysql_drv_la_LDFLAGS = $(libmysql_drv_ldflags) libmysql_drv_la_LDFLAGS += -rpath '$(libdir)' -version-info $(libversion) @@ -137,7 +137,7 @@ libmysql_drv_la_DEPENDENCIES = libpgsql_drv_la_SOURCES = \ pgsql_drv.c pgsql_drv.h -libpgsql_drv_la_LIBADD = $(libpgsql_drv_libs) +libpgsql_drv_la_LIBADD = $(libpgsql_drv_libs) $(srcdir)/libdspam.la libpgsql_drv_la_CPPFLAGS = $(libpgsql_drv_cppflags) libpgsql_drv_la_LDFLAGS = $(libpgsql_drv_ldflags) libpgsql_drv_la_LDFLAGS += -rpath '$(libdir)' -version-info $(libversion) @@ -145,7 +145,7 @@ libpgsql_drv_la_DEPENDENCIES = libsqlite_drv_la_SOURCES = \ sqlite_drv.c sqlite_drv.h -libsqlite_drv_la_LIBADD = $(libsqlite_drv_libs) +libsqlite_drv_la_LIBADD = $(libsqlite_drv_libs) $(srcdir)/libdspam.la libsqlite_drv_la_CPPFLAGS = $(libsqlite_drv_cppflags) libsqlite_drv_la_LDFLAGS = $(libsqlite_drv_ldflags) libsqlite_drv_la_LDFLAGS += -rpath '$(libdir)' -version-info $(libversion) @@ -153,7 +153,7 @@ libsqlite_drv_la_DEPENDENCIES = libsqlite3_drv_la_SOURCES = \ sqlite3_drv.c sqlite3_drv.h -libsqlite3_drv_la_LIBADD = $(libsqlite3_drv_libs) +libsqlite3_drv_la_LIBADD = $(libsqlite3_drv_libs) $(srcdir)/libdspam.la libsqlite3_drv_la_CPPFLAGS = $(libsqlite3_drv_cppflags) libsqlite3_drv_la_LDFLAGS = $(libsqlite3_drv_ldflags) libsqlite3_drv_la_LDFLAGS += -rpath '$(libdir)' -version-info $(libversion) @@ -161,7 +161,8 @@ libsqlite3_drv_la_DEPENDENCIES = libhash_drv_la_SOURCES = \ hash_drv.c hash_drv.h -libhash_drv_la_LDFLAGS = -rpath '$(libdir)' +libhash_drv_la_LIBADD = $(srcdir)/libdspam.la +libhash_drv_la_LDFLAGS = -rpath '$(libdir)' libhash_drv_la_LDFLAGS += -version-info $(libversion) endif
signature.asc
Description: OpenPGP digital signature