[syslog-ng] mongodb problem

Gergely Nagy algernon at balabit.hu
Tue Aug 9 13:59:27 CEST 2011


Peter Czanik <czanik at balabit.hu> writes:

>> This looks interesting. I checked on both Linux and FreeBSD 8.1, and
>> both worked for me. Though, my git is of a more recent checkout, but
>> that shouldn't affect MongoDB.
> More recent? This checkout is from today, last update was yesterday :) I
> ran a fresh:

commit bec45acb4335067b9966236cc6ad724cbbcafe97
Author: Balazs Scheidler <bazsi at balabit.hu>
Date:   Mon Aug 8 06:20:28 2011 +0200

This is the one I tried with (your original post reported
d01c8bdd1957d4d737d47e8f14a90d5a63107681, if I remember correctly). But,
it's irrelevant anyway.

>> Can you tell me final summary of ./configure?
> syslog-ng Open Source Edition 3.3.0beta1 configured
>  Compiler options:
>   compiler                    : cc -std=gnu99
>   compiler options            : -I/usr/local/include/libnet115
> -I/usr/local/include -O2 -pipe -fno-strict-aliasing -Wall -pthread 
> -D_REENTRANT -I/usr/local/include/glib-2.0
> -I/usr/local/lib/glib-2.0/include   -I/usr/local/include/eventlog  
> -I/usr/local/include   -I/usr/local/include   -DLIBNET_BSDISH_OS
> -DLIBNET_BSD_BYTE_SWAP -DHAVE_SOCKADDR_SA_LEN 
> -I$(top_srcdir)/lib/ivykis/lib/include
> -I$(top_builddir)/lib/ivykis/lib/include
> -I$(top_srcdir)/lib/ivykis/modules/include -D_GNU_SOURCE
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
>   linker flags                :  -rpath=/usr/local/lib
>   prefix                      : /usr/local
>   linking mode                : dynamic
>   __thread keyword            : yes
>  Submodules:
>   ivykis                      : internal
>   libmongo-client             : internal

This looks ok.

>>  And do a find
>> /usr/ports/sysutils/syslog-ng3-devel/work/syslog-ng-3.3.0beta1/modules/afmongodb/libmongo-client/
>> ?
>>
> fb81# find
[...]
> /usr/ports/sysutils/syslog-ng3-devel/work/syslog-ng-3.3.0beta1/modules/afmongodb/libmongo-client/src/.libs/libmongo-client.so.3
> /usr/ports/sysutils/syslog-ng3-devel/work/syslog-ng-3.3.0beta1/modules/afmongodb/libmongo-client/src/.libs/libmongo-client.so
> /usr/ports/sysutils/syslog-ng3-devel/work/syslog-ng-3.3.0beta1/modules/afmongodb/libmongo-client/src/.libs/libmongo-client.a
> /usr/ports/sysutils/syslog-ng3-devel/work/syslog-ng-3.3.0beta1/modules/afmongodb/libmongo-client/src/.libs/libmongo-client.lai
> /usr/ports/sysutils/syslog-ng3-devel/work/syslog-ng-3.3.0beta1/modules/afmongodb/libmongo-client/src/.libs/libmongo-client.la

This looks ok aswell.

[...]
> /usr/ports/sysutils/syslog-ng3-devel/work/syslog-ng-3.3.0beta1/modules/afmongodb/libmongo-client/src/libmongo-client.la

This too.

By the looks of it, the mongo-client library gets compiled, and judging
by the LDFLAGS in the original post, it should be found aswell.. it IS
found during make, but fails only at relinking, which sounds very
strange to me.

I'm not really sure what goes wrong - though, I haven't tried making a
make dist & copying over to ports, but a simple ./configure && gmake &&
gmake install, and that worked.

I'll check the tarball copying stuff too when I get around to it.

-- 
|8]



More information about the syslog-ng mailing list