[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:
> 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:
> text+0x260): multiple definition of `_DllMain at 12'
> 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 : )
$ ./syslog-ng.exe -V
Compile-Date: Jan 14 2009 13:35:35
More information about the syslog-ng