[syslog-ng] Solaris 10 support(?) in latest versions (e.g. 3.3.2)
Balazs Scheidler
bazsi at balabit.hu
Thu Dec 22 15:24:43 CET 2011
On Tue, 2011-11-29 at 08:35 -0600, Marvin Nipper wrote:
> So, I recompiled libnet, using -fPIC, and that seems to have moved me past the problems with the libnet components. (Thanks for that guidance.)
>
> However, now I run into problems, apparently with the openssl components, at this point in the process:
>
> libtool: link: gcc -std=gnu99 -shared -Wl,-z -Wl,text -Wl,-h -Wl,libafsocket-tls.so -o .libs/libafsocket-tls.so .libs/libafsocket_tls_la-afsocket.o .libs/libafsocket_tls_la-afunix.o .libs/libafsocket_tls_la-afinet.o .libs/libafsocket_tls_la-afsocket-grammar.o .libs/libafsocket_tls_la-afsocket-parser.o .libs/libafsocket_tls_la-afsocket-plugin.o -R/var/opt/packages/syslog-ng-3.3.3/lib/.libs -R/usr/local/lib -R/usr/local/lib/syslog-ng -L/var/opt/packages/syslog-ng-3.3.3/lib/.libs ../../lib/.libs/libsyslog-ng.so -L/usr/local/lib -L/var/opt/packages/syslog-ng-3.3.3/lib/ivykis/lib -L/var/opt/packages/syslog-ng-3.3.3/lib/ivykis/modules -L/var/opt/packages/syslog-ng-3.3.3/lib/ivykis/lib/.libs ../../lib/.libs/libsyslog-ng-crypto.so -L/usr/local/ssl/lib -lssl -lcrypto -ldl -lsocket -lnsl -lnet -lpthread -lc -pthread -pthread
> Text relocation remains referenced
> against symbol offset in file
> OPENSSL_cpuid_setup 0x1 /usr/local/ssl/lib/libcrypto.a(x86cpuid.o)
> CAST_S_table0 0x40 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x87 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0xce /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x115 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x15c /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x1a3 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x1ea /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x231 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x278 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x2bf /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x306 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x34d /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x39d /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x3e4 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x42b /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x472 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x4f7 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x53e /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x585 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x5cc /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x613 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x65a /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x6a1 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x6e8 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x72f /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x776 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x7bd /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x804 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x84b /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x892 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x8d9 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table0 0x920 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x47 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x8e /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0xd5 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x11c /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x163 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x1aa /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x1f1 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x238 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x27f /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x2c6 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x30d /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x354 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x3a4 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x3eb /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x432 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x479 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x4fe /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x545 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x58c /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x5d3 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x61a /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x661 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x6a8 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x6ef /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x736 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x77d /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x7c4 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x80b /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x852 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x899 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x8e0 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table1 0x927 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x50 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x97 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0xde /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x125 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x16c /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x1b3 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x1fa /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x241 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x288 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x2cf /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x316 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x35d /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x3ad /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x3f4 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x43b /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x482 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x507 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x54e /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x595 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x5dc /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x623 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x66a /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x6b1 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x6f8 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x73f /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x786 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x7cd /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x814 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x85b /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x8a2 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x8e9 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table2 0x930 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x59 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0xa0 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0xe7 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x12e /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x175 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x1bc /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x203 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x24a /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x291 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x2d8 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x31f /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x366 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x3b6 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x3fd /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x444 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x48b /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x510 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x557 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x59e /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x5e5 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x62c /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x673 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x6ba /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x701 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x748 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x78f /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x7d6 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x81d /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x864 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x8ab /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x8f2 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> CAST_S_table3 0x939 /usr/local/ssl/lib/libcrypto.a(cast-586.o)
> ld: fatal: relocations remain against allocatable but non-writable sections
> collect2: ld returned 1 exit status
> gmake[4]: *** [libafsocket-tls.la] Error 1
> gmake[4]: Leaving directory `/var/opt/packages/syslog-ng-3.3.3/modules/afsocket'
> gmake[3]: *** [all] Error 2
> gmake[3]: Leaving directory `/var/opt/packages/syslog-ng-3.3.3/modules/afsocket'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory `/var/opt/packages/syslog-ng-3.3.3/modules'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/var/opt/packages/syslog-ng-3.3.3'
> gmake: *** [all] Error 2
>
>
> Once again, these are openssl components that have worked for many years, with
> both BIND and syslog-ng (up through at least 3.0.5). And when I say that
> they have worked, I mean many different version of openssl, right up thru
> the current version that I'm using (openssl 1.0.0e), so this is again, super
> frustrating. (I.E. what is 3.3.3 doing, that now makes it unable to use
> these components?)
Again, openssl is a static library and syslog-ng tries to link it into a
shared object. It either needs to be compiled with -fPIC or SSL
disabled, like you did.
>
> As can be seen from the directory structure, this is now being done with
> 3.3.3, and using this execution of configure:
>
> LDFLAGS="-R/usr/local/lib" \
> PKG_CONFIG=/usr/local/bin/pkg-config \
> PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig:/usr/local/ssl/lib/pkgconfig" \
> ./configure --enable-spoof-source --enable-dynamic-linking --enable-tcp-wrapper=no
>
>
> As I actually don't need SSL with my current syslog-ng configuration, I attempted to leave that out (--enable-ssl=no), but then it got unhappy while trying to compile afmongodb components, apparently unable to find an openssl header file:
>
> gmake[7]: Entering directory `/var/opt/packages/syslog-ng-3.3.3/modules/afmongodb/libmongo-client/src'
> CC libmongo_client_la-compat.lo
> CC libmongo_client_la-bson.lo
> CC libmongo_client_la-mongo-wire.lo
> CC libmongo_client_la-mongo-client.lo
> CC libmongo_client_la-mongo-utils.lo
> CC libmongo_client_la-mongo-sync.lo
> CC libmongo_client_la-mongo-sync-cursor.lo
> CC libmongo_client_la-mongo-sync-pool.lo
> CC libmongo_client_la-sync-gridfs.lo
> CC libmongo_client_la-sync-gridfs-chunk.lo
> CC libmongo_client_la-sync-gridfs-stream.lo
> CCLD libmongo-client.la
> gmake[7]: Leaving directory `/var/opt/packages/syslog-ng-3.3.3/modules/afmongodb/libmongo-client/src'
> Making all in tests
> gmake[7]: Entering directory `/var/opt/packages/syslog-ng-3.3.3/modules/afmongodb/libmongo-client/tests'
> Making all in libtap
> gmake[8]: Entering directory `/var/opt/packages/syslog-ng-3.3.3/modules/afmongodb/libmongo-client/tests/libtap'
> CC libtap_la-tap.lo
> CC libtap_la-test.lo
> In file included from ../../src/libmongo-private.h:26,
> from test.h:8,
> from test.c:1:
> ../../src/compat.h:24:25: error: openssl/md5.h: No such file or directory
> test.c: In function 'test_bson_generate_full':
> test.c:39: warning: integer constant is too large for 'long' type
> test.c:40: warning: integer constant is too large for 'long' type
> gmake[8]: *** [libtap_la-test.lo] Error 1
> gmake[8]: Leaving directory `/var/opt/packages/syslog-ng-3.3.3/modules/afmongodb/libmongo-client/tests/libtap'
> gmake[7]: *** [all-recursive] Error 1
> gmake[7]: Leaving directory `/var/opt/packages/syslog-ng-3.3.3/modules/afmongodb/libmongo-client/tests'
> gmake[6]: *** [all-recursive] Error 1
> gmake[6]: Leaving directory `/var/opt/packages/syslog-ng-3.3.3/modules/afmongodb/libmongo-client'
> gmake[5]: *** [all] Error 2
> gmake[5]: Leaving directory `/var/opt/packages/syslog-ng-3.3.3/modules/afmongodb/libmongo-client'
> gmake[4]: *** [all-recursive] Error 1
> gmake[4]: Leaving directory `/var/opt/packages/syslog-ng-3.3.3/modules/afmongodb'
> gmake[3]: *** [all] Error 2
> gmake[3]: Leaving directory `/var/opt/packages/syslog-ng-3.3.3/modules/afmongodb'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory `/var/opt/packages/syslog-ng-3.3.3/modules'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/var/opt/packages/syslog-ng-3.3.3'
> gmake: *** [all] Error 2
>
This is a bug then, libmongo-client shouldn't have been built if
disabled by configure.
Until I find this, you can remove the "afmongodb" string from
modules/Makefile so that it doesn't recurse there.
--
Bazsi
More information about the syslog-ng
mailing list