[syslog-ng] error while loading shared libraries

Mr. Jan Walter hopping_hol at yahoo.com
Mon Dec 12 15:55:53 CET 2011


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
>>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/1abc5d1c/attachment.htm 


More information about the syslog-ng mailing list