[prev in list] [next in list] [prev in thread] [next in thread] 

List:       syslog-ng
Subject:    Re: [syslog-ng] Problem with static linking glib on Solaris
From:       kdajka <kdajka () agora ! pl>
Date:       2009-07-30 7:26:46
Message-ID: 200907300926.46398.kdajka () agora ! pl
[Download RAW message or body]

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. 
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.campin.net/syslog-ng/faq.html


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic