[syslog-ng] error while loading shared libraries
Johnson, Chris (HP TippingPoint Roseville)
chris.johnson3 at hp.com
Mon Dec 12 17:56:19 CET 2011
In my case, the default value for prefix (/usr/local) works just fine. I use ‘DESTDIR’ to point to my staging directory root during ‘make install’, and the target box can find the bin an libs fine. It’s that the shared library seems to be out of sync with the bin.
I’m experimenting with the ‘--host’ and ‘--build’ parameters to see if that will clear up the issue, and now I’m getting:
./configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu PKG_CONFIG_PATH="/home/user/wip/lib/libevtlog/:/home/wip/lib/" EVTLOG_CFLAGS="-I/home/user/wip/lib/libevtlog/include"
[…]
checking for GLIB... yes
checking sanity checking Glib headers... no
configure: error: Glib headers inconsistent with current compiler setting. You might be using 32 bit Glib with a 64 bit compiler, check PKG_CONFIG_PATH
make: *** [config] Error 1
so, now I need to find where ‘./configure’ is looking for glib to make sure it’s pointed to the ‘build’ environment correctly.
Chris
From: syslog-ng-bounces at lists.balabit.hu [mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of Mr. Jan Walter
Sent: Monday, December 12, 2011 6:56 AM
To: Syslog-ng users' and developers' mailing list
Subject: Re: [syslog-ng] error while loading shared libraries
Just in general, I also use the --prefix argument to drop the code being built into a directory tree. Does it work if you run ./configure like this:
./configure PKG_CONFIG_PATH=/home/user/wip/lib/libevtlog EVTLOG_CFLAGS=-I/home/user/wip/lib/libevtlog/include --enable-static --prefix=/home/user/wip/syslog-ng
Then run make and make install. Run the code from the prefix directory. You may need to also drop the .so files from libevtlog/lib into the same lib dir.
Cheers,
Jan
________________________________
From: "Johnson, Chris (HP TippingPoint Roseville)" <chris.johnson3 at hp.com>
To: Syslog-ng users' and developers' mailing list <syslog-ng at lists.balabit.hu>
Sent: Wednesday, December 7, 2011 4:49 PM
Subject: Re: [syslog-ng] error while loading shared libraries
I’m using ./configure, make, make install
Configure line:
$ ./configure PKG_CONFIG_PATH=/home/user/wip/lib/libevtlog EVTLOG_CFLAGS=-I/home/user/wip/lib/libevtlog/include --enable-static
Since I’m ‘staging’ my build for another box, I needed to set PKG_CONFIG_PATH and EVTLOG_CFLAGS to have my ‘staged’ eventlog library to be found. The ‘--enable-static’ was added to try and fix the error, but the it happens with or without it.
Chris
From: syslog-ng-bounces at lists.balabit.hu [mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of Mr. Jan Walter
Sent: Wednesday, December 07, 2011 1:31 PM
To: Syslog-ng users' and developers' mailing list
Subject: Re: [syslog-ng] error while loading shared libraries
Are you building an rpm from spec file? Or are you using ./configure, make, make install?
Either way, seeing the arguments to ./configure that you used, or the one in the spec file you used, would be ideal.
Jan
________________________________
From: "Johnson, Chris (HP TippingPoint Roseville)" <chris.johnson3 at hp.com>
To: "syslog-ng at lists.balabit.hu" <syslog-ng at lists.balabit.hu>
Sent: Wednesday, December 7, 2011 3:44 PM
Subject: [syslog-ng] error while loading shared libraries
I'm getting the following error:
/usr/local/sbin/syslog-ng: error while loading shared libraries: /usr/local/lib/libsyslog-ng-3.3.3.so: ELF file OS ABI invalid
When I try to run syslog-ng (also occurs when I run pbdtool)
pdbtool: error while loading shared libraries: /usr/local/lib/libsyslog-ng-3.3.3.so: ELF file OS ABI invalid
I'm building on one box (RedHat), and running on another (not sure what flavor of Linux, might be CentOS).
Any pointers to what I can set during the build phase that will allow it to run?
Thanks,
Chris
----------------------------------------
Christopher Johnson
chris.johnson3 at hp.com<mailto:chris.johnson3 at hp.com>
HP Software - Security Product Group
----------------------------------------
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20111212/949dbfd8/attachment-0001.htm
More information about the syslog-ng
mailing list