[syslog-ng] [Bug 214] Build / Install Issues on AIX
bugzilla at bugzilla.balabit.com
bugzilla at bugzilla.balabit.com
Wed Jan 2 11:37:13 CET 2013
https://bugzilla.balabit.com/show_bug.cgi?id=214
--- Comment #5 from Tamás Pál <folti at balabit.hu> 2013-01-02 11:37:13 ---
(In reply to comment #0)
> Also, be aware that shared libraries on AIX use the .a suffix, not .so. Out of the box shared libraries are archived into .a files.
Yeah, we had much "fun" with it during PE porting. Extra fun can be had by instructing the linker to prefer .so files over .a and link to libs which have the
default linking dependencies ...
>
> $ ar tv /opt/local/syslogng/lib/syslog-ng/libafsocket.a
> rwxr-xr-x 0/0 572423 Dec 19 20:23 2012 libafsocket-tls.so
>
> The default "make install" process leaves nothing but *.a files in lib/syslog-ng and on startup the user is greeted with many errors about missing loadable
> modules.
>
> The RPM that Perzl makes gets around this by running ar -X32 -x'ing all of these .a files so the system is populated with both .a and .so versions of the
> files.
>
> (
> cd ${RPM_BUILD_ROOT}%{_libdir}
> for f in *.a ; do
> /usr/bin/ar -X32 -x ${f}
> done
>
> cd ${RPM_BUILD_ROOT}%{_libdir}/%{name}
> for f in *.a ; do
> /usr/bin/ar -X32 -x ${f}
> done
> )
>
> Can this be fixed?
>
It has been solved in the PE's core tree, but the relevant patches hasn't been lifted into the OSE trees.
It's a GLIB specific problem, because it's plugin handling code doesn't aware about this AIX specific feature, so by default it looks for .so files on AIX too.
Redefining G_MODULE_SUFFIX fixes the problem:
#ifdef _AIX
#define G_MODULE_SUFFIX "a"
#endif
--
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