[syslog-ng]syslog-ng 1.6.7 on solaris10
syslog-ng@lists.balabit.hu
syslog-ng@lists.balabit.hu
Mon, 2 May 2005 20:27:57 +0200
This is a multi-part message in MIME format.
------_=_NextPart_001_01C54F44.A9CF5803
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Im having some compilation issues with Solaris 10:
=20
bash-3.00# ./configure --disable-tcp-wrapper --disable-spoof-source
-- snip--=20
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 >=3D 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
=20
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
=20
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
=20
I got around that with editing config.h and changed the TCP wrapper lib
line to:
#undef ENABLE_TCP_WRAPPER
=20
and fiddled around in the src/tests Makefile and .c file
=20
Perhaps something missing in the configure scripts?
=20
=20
=20
=20
------_=_NextPart_001_01C54F44.A9CF5803
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Meddelande</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1491" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D532260918-02052005><FONT face=3DArial size=3D2>Im =
having some=20
compilation issues with Solaris 10:</FONT></SPAN></DIV>
<DIV><SPAN class=3D532260918-02052005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D532260918-02052005><FONT face=3DArial =
size=3D2>bash-3.00#=20
./configure --disable-tcp-wrapper =
--disable-spoof-source</FONT></SPAN></DIV>
<DIV><SPAN class=3D532260918-02052005><FONT face=3DArial size=3D2>-- =
snip--=20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D532260918-02052005><FONT face=3DArial =
size=3D2>checking for TCP=20
wrapper library... -lwrap<BR>checking pthread.h usability... =
yes<BR>checking=20
pthread.h presence... yes<BR>checking for pthread.h... yes<BR>checking =
for=20
pthread_create in -lpthread... yes<BR>checking whether to enable Sun =
STREAMS=20
support... yes<BR>checking whether to enable Sun door support... =
yes<BR>checking=20
whether to enable TCP wrapper support... no<BR>checking whether to =
enable=20
spoof_source support... no<BR>checking libol version >=3D 0.3.14...=20
ok<BR>configure: creating ./config.status<BR>config.status: creating=20
Makefile<BR>config.status: creating src/Makefile<BR>config.status: =
creating=20
src/tests/Makefile<BR>config.status: creating =
doc/Makefile<BR>config.status:=20
creating doc/sgml/Makefile<BR>config.status: creating=20
contrib/Makefile<BR>config.status: creating =
syslog-ng.spec<BR>config.status:=20
creating src/config.h<BR>config.status: executing depfiles=20
commands</FONT></SPAN></DIV>
<DIV><SPAN class=3D532260918-02052005><FONT face=3DArial =
size=3D2>bash-3.00# which=20
make<BR>/usr/ccs/bin/make</FONT></SPAN></DIV>
<DIV><SPAN class=3D532260918-02052005><FONT face=3DArial =
size=3D2>gcc -g -O2=20
-Wall -I/usr/local/include/libol -D_GNU_SOURCE -o =
syslog-ng =20
main.o sources.o center.o filters.o destinations.o log.o =
cfgfile.o=20
cfg-grammar.o cfg-lex.o affile.o afsocket.o afunix.o =
afinet.o=20
afinter.o afuser.o afstreams.o afprogram.o afremctrl.o =
nscache.o=20
utils.o syslog-names.o macros.o -lpthread -lnsl -lsocket =
-ldoor=20
-lresolv /usr/local/lib/libol.a -lsocket -lnsl -lxnet -Wl,-Bstatic =
-ll=20
-lwrap -Wl,-Bdynamic<BR>ld: fatal: library -ll: not=20
found<BR>ld: fatal: library -lwrap: not found<BR>ld: fatal: File =
processing=20
errors. No output written to syslog-ng</FONT></SPAN></DIV>
<DIV><SPAN class=3D532260918-02052005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D532260918-02052005><FONT face=3DArial size=3D2>if i =
change where=20
-ll and -lwrap is located on the line to:</FONT></SPAN></DIV>
<DIV><SPAN class=3D532260918-02052005><FONT face=3DArial =
size=3D2>bash-3.00# gcc =20
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -o=20
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=20
afunix.o afinet.o afinter.o afuser.o afstreams.o afprogram.o =
afremctrl.o nscache.o utils.o syslog-names.o macros.o =20
-lpthread -lnsl -lsocket -ldoor -lresolv -ll -lwrap =
/usr/local/lib/libol.a=20
-lsocket -lnsl -lxnet -Wl,-Bstatic -Wl,-Bdynamic</FONT></SPAN></DIV>
<DIV><SPAN class=3D532260918-02052005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D532260918-02052005><FONT face=3DArial size=3D2>I =
instead=20
get:</FONT></SPAN></DIV>
<DIV><SPAN class=3D532260918-02052005><FONT face=3DArial=20
size=3D2>Undefined &=
nbsp; &n=
bsp;=20
first=20
referenced<BR> symbol  =
; =
=20
in=20
file<BR>deny_severity &nbs=
p;  =
; =20
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../libwrap.so<BR>allow=
_severity &nbs=
p; =20
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../libwrap.so<BR>ld: =
fatal:=20
Symbol referencing errors. No output written to syslog-ng<BR>collect2: =
ld=20
returned 1 exit status</FONT></SPAN></DIV>
<DIV><SPAN class=3D532260918-02052005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D532260918-02052005></SPAN><FONT face=3DArial><FONT =
size=3D2>I<SPAN=20
class=3D532260918-02052005> got around that with editing config.h and =
changed the=20
TCP wrapper lib line to:</SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN =
class=3D532260918-02052005>#undef=20
ENABLE_TCP_WRAPPER</SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN=20
class=3D532260918-02052005></SPAN></FONT></FONT> </DIV>
<DIV><SPAN class=3D532260918-02052005><FONT face=3DArial size=3D2>and =
fiddled around=20
in the src/tests Makefile and .c file</FONT></SPAN></DIV>
<DIV><SPAN class=3D532260918-02052005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D532260918-02052005><FONT face=3DArial =
size=3D2>Perhaps something=20
missing in the configure scripts?</FONT></SPAN></DIV>
<DIV><SPAN class=3D532260918-02052005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D532260918-02052005></SPAN> </DIV>
<DIV><SPAN class=3D532260918-02052005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D532260918-02052005><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV></BODY></HTML>
=00
------_=_NextPart_001_01C54F44.A9CF5803--