syslog-ng 1.6.7 on solaris10
Im having some compilation issues with Solaris 10: bash-3.00# ./configure --disable-tcp-wrapper --disable-spoof-source -- snip-- checking for TCP wrapper library... -lwrap checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking for pthread_create in -lpthread... yes checking whether to enable Sun STREAMS support... yes checking whether to enable Sun door support... yes checking whether to enable TCP wrapper support... no checking whether to enable spoof_source support... no checking libol version >= 0.3.14... ok configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/tests/Makefile config.status: creating doc/Makefile config.status: creating doc/sgml/Makefile config.status: creating contrib/Makefile config.status: creating syslog-ng.spec config.status: creating src/config.h config.status: executing depfiles commands bash-3.00# which make /usr/ccs/bin/make gcc -g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -o syslog-ng main.o sources.o center.o filters.o destinations.o log.o cfgfile.o cfg-grammar.o cfg-lex.o affile.o afsocket.o afunix.o afinet.o afinter.o afuser.o afstreams.o afprogram.o afremctrl.o nscache.o utils.o syslog-names.o macros.o -lpthread -lnsl -lsocket -ldoor -lresolv /usr/local/lib/libol.a -lsocket -lnsl -lxnet -Wl,-Bstatic -ll -lwrap -Wl,-Bdynamic ld: fatal: library -ll: not found ld: fatal: library -lwrap: not found ld: fatal: File processing errors. No output written to syslog-ng if i change where -ll and -lwrap is located on the line to: bash-3.00# gcc -g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -o syslog-ng main.o sources.o center.o filters.o destinations.o log.o cfgfile.o cfg-grammar.o cfg-lex.o affile.o afsocket.o afunix.o afinet.o afinter.o afuser.o afstreams.o afprogram.o afremctrl.o nscache.o utils.o syslog-names.o macros.o -lpthread -lnsl -lsocket -ldoor -lresolv -ll -lwrap /usr/local/lib/libol.a -lsocket -lnsl -lxnet -Wl,-Bstatic -Wl,-Bdynamic I instead get: Undefined first referenced symbol in file deny_severity /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../libwrap.so allow_severity /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../libwrap.so ld: fatal: Symbol referencing errors. No output written to syslog-ng collect2: ld returned 1 exit status I got around that with editing config.h and changed the TCP wrapper lib line to: #undef ENABLE_TCP_WRAPPER and fiddled around in the src/tests Makefile and .c file Perhaps something missing in the configure scripts?
On Mon, 2005-05-02 at 20:27 +0200, kenneth.gullberg@foreningssparbanken.se wrote:
Im having some compilation issues with Solaris 10:
bash-3.00# ./configure --disable-tcp-wrapper --disable-spoof-source -- snip-- checking for TCP wrapper library... -lwrap checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking for pthread_create in -lpthread... yes checking whether to enable Sun STREAMS support... yes checking whether to enable Sun door support... yes checking whether to enable TCP wrapper support... no checking whether to enable spoof_source support... no checking libol version >= 0.3.14... ok configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/tests/Makefile config.status: creating doc/Makefile config.status: creating doc/sgml/Makefile config.status: creating contrib/Makefile config.status: creating syslog-ng.spec config.status: creating src/config.h config.status: executing depfiles commands bash-3.00# which make /usr/ccs/bin/make gcc -g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -o syslog-ng main.o sources.o center.o filters.o destinations.o log.o cfgfile.o cfg-grammar.o cfg-lex.o affile.o afsocket.o afunix.o afinet.o afinter.o afuser.o afstreams.o afprogram.o afremctrl.o nscache.o utils.o syslog-names.o macros.o -lpthread -lnsl -lsocket -ldoor -lresolv /usr/local/lib/libol.a -lsocket -lnsl -lxnet -Wl,-Bstatic -ll -lwrap -Wl,-Bdynamic ld: fatal: library -ll: not found ld: fatal: library -lwrap: not found ld: fatal: File processing errors. No output written to syslog-ng
Well spotted. Sometimes syslog-ng included -lwrap even if that was not needed. The other problem is that you don't have a static -ll library installed which syslog-ng links to by default. -- Bazsi
participants (2)
-
Balazs Scheidler
-
kenneth.gullbergļ¼ foreningssparbanken.se