[syslog-ng] Problem with static linking glib on Solaris
kdajka
kdajka at agora.pl
Thu Jul 30 09:26:46 CEST 2009
On Thursday 30 of July 2009 09:08:17 Balazs Scheidler wrote:
> something pulls in the system installed glib before your custom glib
> version. probably some dependency found prior to glib.
>
> Hmm.. even the very first first configure test includes the system
> installed glib-2.0 include/library PATHs first:
>
> configure:3070: gcc -I/opt/local/include -I/usr/sfw/include
> -I/opt/sfw/include -I/usr/local/include/glib-2.0/ -I/opt/local/include
> -I/usr/sfw/include -I/opt/sfw/include -I/usr/local/include/glib-2.0/
> -L/usr/local/inp/glib/lib conftest.c >&5
>
> You need to find out why. Maybe the environment LDFLAGS/CFLAGS/CPPFLAGS
I managed to pass configure part a few moments ago I found this:
if test "x$enable_dynamic_linking" != "xyes" -a "x$blb_cv_static_glib" = "xno"; then
AC_MSG_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])
fi
in configure.in, so blb_cv_static_glib was what I needed. But it would be an overkill if I would need a couple of more
libraries
blb_cv_static_glib="/usr/local/inp/glib/lib/libglib-2.0.a" LD_LIBRARY_PATH=/usr/local/inp/glib/lib:$LD_LIBRARY_PATH
PKG_CONFIG_PATH=/usr/local/inp/glib/lib/pkgconfig/:/usr/local/lib/pkgconfig ./configure --enable-static-linking --
prefix=/usr/local/inp/syslog-ng-sparc-sun10
did the thing for me.
More information about the syslog-ng
mailing list