[syslog-ng] syslog-ng3 with SQL on FreeBSD
Balazs Scheidler
bazsi at balabit.hu
Tue Nov 3 21:06:23 CET 2009
On Fri, 2009-10-30 at 12:02 -0400, Michael W. Lucas wrote:
> On Fri, Oct 30, 2009 at 11:29:52AM -0400, Michael W. Lucas wrote:
> > On Fri, Oct 30, 2009 at 10:24:56AM +0100, Pal Tamas wrote:
> > > On Thu, Oct 29, 2009 at 05:08:40PM -0400, Michael W. Lucas wrote:
> > > > On Thu, Oct 29, 2009 at 06:56:38PM +0100, Pal Tamas wrote:
> > > Could you please test the following patch?
> >
> > Anything to make this work seamlessly. :-)
> >
> > If I run "configure --enable-sql", it works!
>
> I spoke too soon.
>
> The configure script works, but when I try to build I get the error:
>
> ...
> usr/local/lib -lgthread-2.0 -lglib-2.0 -lintl -L/usr/local/lib -levtlog - lwrap -LNONE/lib -L/usr/local/lib
> libsyslog-ng.a(afsql.o)(.text+0xe68): In function `afsql_init_db_thread':
> /usr/home/mwlucas/syslog-ng-3.0.3/src/afsql.c:706: undefined reference to `dbi_i nitialize'
> libsyslog-ng.a(afsql.o)(.text+0xfb4): In function `afsql_dd_run_query':
> /usr/home/mwlucas/syslog-ng-3.0.3/src/afsql.c:258: undefined reference to `dbi_c onn_query'
> libsyslog-ng.a(afsql.o)(.text+0xff4):/usr/home/mwlucas/syslog-ng-3.0.3/src/afsql .c:265: undefined reference to `dbi_conn_error'
> libsyslog-ng.a(afsql.o)(.text+0x10ea):/usr/home/mwlucas/syslog-ng-3.0.3/src/afsq l.c:281: undefined reference to `dbi_result_free'
> libsyslog-ng.a(afsql.o)(.text+0x133f): In function `afsql_db_thread':
> /usr/home/mwlucas/syslog-ng-3.0.3/src/afsql.c:645: undefined reference to `dbi_c onn_close'
> ...
>
> So, which configure can find dbi.h, the build process cannot.
This is a linking error, the compilation went fine. For some reason it
didn't find the dbi library.
I can see now, the reason is that it tries to use -L${prefix}/lib, but
as there is no explict --prefix argument, it expands to -LNONE/lib,
which obviously doesn't exist.
--
Bazsi
More information about the syslog-ng
mailing list