[syslog-ng] [Bug 214] Build / Install Issues on AIX

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Sat Jan 12 16:18:19 CET 2013


https://bugzilla.balabit.com/show_bug.cgi?id=214


Gergely Nagy <algernon at balabit.hu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |ASSIGNED




--- Comment #12 from Gergely Nagy <algernon at balabit.hu>  2013-01-12 16:18:18 ---
(In reply to comment #11)
> After I've done that, I still get:
> 
> $ sudo /opt/local/syslog-ng/sbin/syslog-ng -F
> Error opening plugin module; module='afsocket', error='\x090509-022 Cannot load module /opt/local/syslog-ng/lib/syslog-ng/libafsocket.so.\x0a\x090509-150  
> Dependent module libsyslog-ng-crypto.a(libsyslog-ng-crypto.so) could not be loaded.\x0a\x090509-022 Cannot load module
> libsyslog-ng-crypto.a(libsyslog-ng-crypto.so).\x0a\x090509-026 System error: A file or directory in the path name does not exist.\x0a\x090509-022 Cannot load
> module /opt/local/syslog-ng/lib/syslog-ng/libafsocket.so.\x0a\x090509-150   Dependent module /opt/local/syslog-ng/lib/syslog-ng/libafsocket.so could not be
> loaded.'
[...]
> I guess I'm confused... shouldn't using --with-embedded-crypto prevent the dependency on this missing library?

Both of these should have been fixed in git, and in the snapshot tarball I linked earlier :|

I don't have access to an AIX system, so testing these changes is a tiny bit cumbersome, but I'll try my best.

> I can do this, but it's not really correct to have to hard-code LIBPATH (AIX's version of LD_LIBRARY_PATH) so that this thing can be found.
>
> $ LIBPATH=/opt/local/syslog-ng/lib/syslog-ng ldd /opt/local/syslog-ng/lib/syslog-ng/libafsocket.so

A possible workaround might be to configure with --with-module-dir=/opt/local/syslog-ng/lib (that is, the value should be the same as $libdir, which is
$prefix/lib). That way, the modules get installed into the same dir as libsyslog-ng, instead of into a subdirectory. If that doesn't help, then I can think of
two workarounds:

 1) Install the libs to somewhere on the default linker search path (ugh..)
 2) Write a small shell script that sets LIBPATH, and executes the real syslog-ng binary (iirc this is the approach syslog-ng PE takes on some platforms)


-- 
Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the syslog-ng mailing list