I'm trying to compile syslog-ng 2.1.2 but getting the following error from configure: ./configure --disable-static-linking --enable-dynamic-linking [...] checking for GLIB - version >= 2.4.0... yes (version 2.16.6) checking for static GLib libraries... no checking sanity checking Glib headers... yes configure: error: static GLib libraries not found (a file named libglib-2.0.a), either link GLib dynamically using the --enable-dynamic-linking or install a static GLib Ideas? -Doug
Getting ready to compile a new syslog-ng version, I double checked the latest version of eventlog, only to find that the "latest version" is 0.2.5 which is smaller than the version I was previously using which is 0.2.7. So, which version should I be using? Why isn't 0.2.7 listed at https://www.balabit.com/downloads/files/eventlog/0.2/ -- Evan Rempel
On Mon, 2008-11-17 at 14:01 -0800, Evan Rempel wrote:
Getting ready to compile a new syslog-ng version, I double checked the latest version of eventlog, only to find that the "latest version" is 0.2.5 which is smaller than the version I was previously using which is 0.2.7.
So, which version should I be using? Why isn't 0.2.7 listed at https://www.balabit.com/downloads/files/eventlog/0.2/
Because as it seems I forgot to copy the release tarball there, I only released it into our internal build system. I'm in the process of restructuring the release system that is used to export release tarballs to the website, the current one requires too many manual steps, making errors like this possible. I've now manually copied the internal releases to the website, it should be visible there any moment. PS: eventlog is also available as nightly snapshots, and there's a git tree at git.balabit.hu, but well releases should be put in the release directory, no questions here. -- Bazsi
On 17 Nov 2008, Douglas E. Warner told this:
configure: error: static GLib libraries not found (a file named libglib-2.0.a), either link GLib dynamically using the --enable-dynamic-linking or install a static GLib
I see it. AC_ARG_ENABLE is being used incorrectly, such that enable_mixed_linking is always turned on, so everything fails unless you have a static glib (and who has one of those? Not me!) Balasz, AC_ARG_ENABLE is unusual: the third argument is *always* run, whether you say --enable-foo or --disable-foo or --enable-foo=bar: you have to do a bit of conditionalization inside that argument, like so (with a bit of simplification as well): commit c4ebe5c665622273c25ee6ecd8a507b92320a384 Author: Nix <nix@esperi.org.uk> Date: Mon Nov 17 22:24:26 2008 +0000 Fix linking arguments. diff --git a/configure.in b/configure.in index 4b791b7..18a588a 100644 --- a/configure.in +++ b/configure.in @@ -58,15 +58,32 @@ AC_ARG_ENABLE(debug, AC_ARG_ENABLE(memtrace, [ --enable-memtrace Enable alternative leak debugging code.]) +enable_dynamic_linking=yes +enable_static_linking=no +enable_mixed_linking=no + AC_ARG_ENABLE(dynamic-linking, - [ --enable-dynamic-linking Link glib and eventlog dynamically instead of statically.],[enable_dynamic_linking="yes"; enable_static_linking="no"; enable_mixed_linking="no"],enable_dynamic_linking="yes") + [ --enable-dynamic-linking Link glib and eventlog dynamically instead of statically.], + [if test "x$enable_dynamic_linking" != "xno"; then + enable_dynamic_linking="yes"; + fi]) AC_ARG_ENABLE(static-linking, - [ --enable-static-linking Link everything statically.],[enable_dynamic_linking="no"; enable_static_linking="yes"; enable_mixed_linking="no"],enable_static_linking="no") + [ --enable-static-linking Link everything statically.], + [if test "x$enable_static_linking" != "xno"; then + enable_static_linking="yes"; enable_dynamic_linking="no"; + fi]) AC_ARG_ENABLE(mixed-linking, - [ --enable-mixed-linking Link 3rd party libraries statically, system libraries dynamically],[enable_dynamic_linking="no"; enable_static_linking="no"; enable_mixed_linking="yes"],enable_mixed_linking="no") + [ --enable-mixed-linking Link 3rd party libraries statically, system libraries dynamically], + [if test "x$enable_mixed_linking" != "xno"; then + enable_mixed_linking="yes" + fi]) + +echo dynamic: $enable_dynamic_linking +echo static: $enable_static_linking +echo mixed: $enable_mixed_linking AC_ARG_ENABLE(ipv6, [ --enable-ipv6 Enable support for IPv6.],,enable_ipv6="auto")
On 17 Nov 2008, nix@esperi.org.uk uttered the following:
(with a bit of simplification as well):
Let's try that again without the stupid debugging stuff. Whoops. commit c4ebe5c665622273c25ee6ecd8a507b92320a384 Author: Nix <nix@esperi.org.uk> Date: Mon Nov 17 22:24:26 2008 +0000 Fix linking arguments. diff --git a/configure.in b/configure.in index 4b791b7..18a588a 100644 --- a/configure.in +++ b/configure.in @@ -58,15 +58,29 @@ AC_ARG_ENABLE(debug, AC_ARG_ENABLE(memtrace, [ --enable-memtrace Enable alternative leak debugging code.]) +enable_dynamic_linking=yes +enable_static_linking=no +enable_mixed_linking=no + AC_ARG_ENABLE(dynamic-linking, - [ --enable-dynamic-linking Link glib and eventlog dynamically instead of statically.],[enable_dynamic_linking="yes"; enable_static_linking="no"; enable_mixed_linking="no"],enable_dynamic_linking="yes") + [ --enable-dynamic-linking Link glib and eventlog dynamically instead of statically.], + [if test "x$enable_dynamic_linking" != "xno"; then + enable_dynamic_linking="yes"; + fi]) AC_ARG_ENABLE(static-linking, - [ --enable-static-linking Link everything statically.],[enable_dynamic_linking="no"; enable_static_linking="yes"; enable_mixed_linking="no"],enable_static_linking="no") + [ --enable-static-linking Link everything statically.], + [if test "x$enable_static_linking" != "xno"; then + enable_static_linking="yes"; enable_dynamic_linking="no"; + fi]) AC_ARG_ENABLE(mixed-linking, - [ --enable-mixed-linking Link 3rd party libraries statically, system libraries dynamically],[enable_dynamic_linking="no"; enable_static_linking="no"; enable_mixed_linking="yes"],enable_mixed_linking="no") + [ --enable-mixed-linking Link 3rd party libraries statically, system libraries dynamically], + [if test "x$enable_mixed_linking" != "xno"; then + enable_mixed_linking="yes" + fi]) + AC_ARG_ENABLE(ipv6, [ --enable-ipv6 Enable support for IPv6.],,enable_ipv6="auto") -- `Not even vi uses vi key bindings for its command line.' --- PdS
On Mon, 2008-11-17 at 15:07 -0500, Douglas E. Warner wrote:
I'm trying to compile syslog-ng 2.1.2 but getting the following error from configure:
./configure --disable-static-linking --enable-dynamic-linking [...]
as a workaround, specify only one of the linking options: use only --enable-dynamic-linking. meanwhile I've also fixed this problem with this patch commit 3210545f108643988177340b4707319f904c24a0 Author: Balazs Scheidler <bazsi@balabit.hu> Date: Tue Nov 18 13:22:18 2008 +0100 configure.in: only require static glib if --enable-static-linking is explicitly set -- Bazsi
Balazs Scheidler wrote:
On Mon, 2008-11-17 at 15:07 -0500, Douglas E. Warner wrote:
I'm trying to compile syslog-ng 2.1.2 but getting the following error from configure:
./configure --disable-static-linking --enable-dynamic-linking [...]
as a workaround, specify only one of the linking options: use only --enable-dynamic-linking.
meanwhile I've also fixed this problem with this patch
I had previously tried compiling with only that option and it also tried to pull in the static glib. Thanks for pushing the patch. -Doug
participants (4)
-
Balazs Scheidler
-
Douglas E. Warner
-
Evan Rempel
-
Nix