[syslog-ng] mongodb problem

Balazs Scheidler bazsi at balabit.hu
Sun Aug 14 16:46:30 CEST 2011


On Tue, 2011-08-09 at 12:52 +0200, Peter Czanik wrote:
> Hello,
> 
> My 'make dist' problem is fixed (
> http://git.balabit.hu/?p=bazsi/syslog-ng-3.3.git;a=commit;h=d01c8bdd1957d4d737d47e8f14a90d5a63107681
> ). Running 'make' works, but once I run 'make inst' I run into the
> following problem:
> 
> gmake[4]: Entering directory
> `/usr/ports/sysutils/syslog-ng3-devel/work/syslog-ng-3.3.0beta1/modules/afmongodb'
> Makefile:798: warning: overriding recipe for target `check'
> Makefile:648: warning: ignoring old recipe for target `check'
> gmake[4]: Nothing to be done for `install-exec-am'.
> test -z "/usr/local/lib/syslog-ng" || ../.././install-sh -c -d
> "/usr/local/lib/syslog-ng"
>  /bin/sh ../../libtool   --mode=install /usr/bin/install -c -o root -g
> wheel   libafmongodb.la '/usr/local/lib/syslog-ng'
> libtool: install: warning: relinking `libafmongodb.la'
> libtool: install: (cd
> /usr/ports/sysutils/syslog-ng3-devel/work/syslog-ng-3.3.0beta1/modules/afmongodb;
> /bin/sh
> /usr/ports/sysutils/syslog-ng3-devel/work/syslog-ng-3.3.0beta1/libtool 
> --tag CC --mode=relink cc -std=gnu99 -I./libmongo-client/src
> -I/usr/local/include/libnet115 -I/usr/local/include -O2 -pipe
> -fno-strict-aliasing -Wall -pthread -avoid-version -module -no-undefined
> -rpath=/usr/local/lib -o libafmongodb.la -rpath /usr/local/lib/syslog-ng
> libafmongodb_la-afmongodb-grammar.lo libafmongodb_la-afmongodb.lo
> libafmongodb_la-afmongodb-parser.lo ../../lib/libsyslog-ng.la
> -L./libmongo-client/src -lmongo-client )
> libtool: relink: cc -std=gnu99 -shared  -fPIC -DPIC 
> .libs/libafmongodb_la-afmongodb-grammar.o
> .libs/libafmongodb_la-afmongodb.o
> .libs/libafmongodb_la-afmongodb-parser.o   -Wl,-rpath -Wl,/usr/local/lib
> -L/usr/ports/sysutils/syslog-ng3-devel/work/syslog-ng-3.3.0beta1/lib/ivykis/lib/.libs
> -L/usr/local/lib -lsyslog-ng -L../lib/ivykis/lib -L../lib/ivykis/modules
> -lrt -lgmodule-2.0 -lgthread-2.0 -levtlog
> /usr/ports/sysutils/syslog-ng3-devel/work/syslog-ng-3.3.0beta1/lib/ivykis/lib/.libs/libivykis.a
> -lpthread -L./libmongo-client/src -lmongo-client -lglib-2.0 -lintl
> -liconv -lpcre -lcrypto -lssl  -O2 -pthread   -pthread -Wl,-soname
> -Wl,libafmongodb.so -o .libs/libafmongodb.so
> /usr/bin/ld: cannot find -lmongo-client
> libtool: install: error: relink `libafmongodb.la' with the above command
> before installing it
> gmake[4]: *** [install-moduleLTLIBRARIES] Error 1
> gmake[4]: Leaving directory
> `/usr/ports/sysutils/syslog-ng3-devel/work/syslog-ng-3.3.0beta1/modules/afmongodb'
> gmake[3]: *** [install-am] Error 2
> gmake[3]: Leaving directory
> `/usr/ports/sysutils/syslog-ng3-devel/work/syslog-ng-3.3.0beta1/modules/afmongodb'
> gmake[2]: *** [install] Error 2
> gmake[2]: Leaving directory
> `/usr/ports/sysutils/syslog-ng3-devel/work/syslog-ng-3.3.0beta1/modules/afmongodb'
> gmake[1]: *** [install-recursive] Error 1
> gmake[1]: Leaving directory
> `/usr/ports/sysutils/syslog-ng3-devel/work/syslog-ng-3.3.0beta1/modules'
> gmake: *** [install-recursive] Error 1

This typically happens when you have a shared version of libmongo-client
in an uninstalled location.

I think I've found the problem, libmongo-client/configure.gnu  is not
included in the dist, which disables shared libraries. I'm now redoing
the syslog-ng 3.3.0beta2 tarball for this exact reason.

-- 
Bazsi




More information about the syslog-ng mailing list