[syslog-ng] Make throws link errors over glib2 when compiling syslog-ng 3.0.1 => Solved

Joost De Cock joost at decock.org
Wed Jan 14 13:57:06 CET 2009


Balazs Scheidler schreef:
> On Wed, 2009-01-14 at 08:51 +0100, Joost De Cock wrote:
>   
>> <snip>
>>     
> hmm.. syslog-ng decides to be threaded/non-threaded based on the
> --enable-sql setting (e.g. if SQL destinations are enabled, syslog-ng
> becomes threaded).
>
> As it seems your glib is missing threading related symbols:
> __imp__g_thread_use_default_impl, however syslog-ng should not be
> threaded at all.
>
> hmm...hmm.. the above variable is defined inside glib and not in gthread, 
> and still the linking phase does not find it.
>
> Maybe it is a consequence of this error message:
>
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcrypto.a(cryptlib.o):cryptlib.c:(.
> text+0x260): multiple definition of `_DllMain at 12'
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libglib-2.0.a(gutils.o):gutils.c:(.te
> xt+0x2c0): first defined here
>
> and this causes glib to be dropped from the link. can you attempt configure syslog-ng
> using --enable-dynamic-linking ? Checking out the glib source, glib does not seem
> to be prepared to be used in static linking, but I may be wrong here.
>
>   
*hmmpff*  => That was a hug!

Works perfectly. You are the best  : )


Joost

PS: Proof:
$ ./syslog-ng.exe -V
syslog-ng 3.0.1
Revision: 
ssh+git://bazsi@git.balabit//var/scm/git/syslog-ng/syslog-ng-ose--main
line--3.0#master#93a342dae3a2b0cb15811d0c34ea7f58b3fba14e
Compile-Date: Jan 14 2009 13:35:35
Enable-Threads: off
Enable-Debug: off
Enable-GProf: off
Enable-Memtrace: off
Enable-Sun-STREAMS: off
Enable-Sun-Door: off
Enable-IPv6: off
Enable-Spoof-Source: off
Enable-TCP-Wrapper: off
Enable-SSL: off
Enable-SQL: off
Enable-Linux-Caps: off
Enable-Pcre: off



More information about the syslog-ng mailing list