[syslog-ng]Solaris 8 + syslog-ng-1.5.18

Sangbutsarakum, Patai patais@reach.com
Fri, 19 Jul 2002 13:52:35 +0700


Dear firends,
Thanks for your suggest, I've done as shown below.
Unlucky, problem still occur

=======================
Add -lwrap to LDFLAGS
=======================

$ pwd
/usr/local/src/syslog-ng-1.5.18/src
$ grep LDFLAG *
Makefile:LDFLAGS = -lwrap 		<<=============
Makefile:syslog_ng_LDFLAGS = -lwrap   <<=============
Makefile:LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
Makefile:       $(LINK) $(syslog_ng_LDFLAGS) $(syslog_ng_OBJECTS)
$(syslog_ng_LDADD) $(LIBS)
Makefile.in:LDFLAGS = @LDFLAGS@
Makefile.in:syslog_ng_LDFLAGS = -lwrap  <<============
Makefile.in:LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
Makefile.in:    $(LINK) $(syslog_ng_LDFLAGS) $(syslog_ng_OBJECTS)
$(syslog_ng_LDADD) $(LIBS)

=======================
Compile errors
=======================
[..snipped..]

gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/syslog-ng-1.5.18/src -I.     -g -O2
-Wall -I/usr/local/include/libol -D_GNU_SOURCE -c getopt1.c
gcc  -g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -lwrap -o
syslog-ng -lwrap 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 getopt.o getopt1.o -lpthread -ldoor  -ll
/usr/local/lib/libol.a -lsocket -lnsl -lxnet
Undefined                       first referenced
 symbol                             in file
request_init                        afinet.o
sock_host                           afinet.o
hosts_access                        afinet.o
ld: fatal: Symbol referencing errors. No output written to syslog-ng
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `syslog-ng'
Current working directory /usr/local/src/syslog-ng-1.5.18/src
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/src/syslog-ng-1.5.18/src
*** Error code 1
make: Fatal error: Command failed for target `all-recursive-am'


Thanks in advance
Pat.

-----Original Message-----
From: Balazs Scheidler [mailto:bazsi@balabit.hu]
Sent: Thursday, July 18, 2002 20:08
To: syslog-ng@lists.balabit.hu
Subject: Re: [syslog-ng]Solaris 8 + syslog-ng-1.5.18


On Thu, Jul 18, 2002 at 04:43:24PM +0700, Sangbutsarakum, Patai wrote:
> Dear friends,
>  
> Anyone success to compile syslog-ng-1.5.18 on Solaris 8.
> I've try to search from mailing list, 
> I've add stdio.h to cfg-grammar.c already (otherwise, error in make
> time)
> But after I passed that error. I still faced with the below error.
> Please suggest me to deal with the below error messages.
>  
> Thanks in advance
> Pat.
>  
> [..snipped..]
>  
> D_GNU_SOURCE -c getopt.c
> gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/syslog-ng-1.5.18/src -I.     -g
> -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c getopt1.c
> 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 getopt.o getopt1.o -lpthread -ldoor  -ll
> /usr/local/lib/libol.a -lsocket -lnsl -lxnet
> Undefined                       first referenced
>  symbol                             in file
> request_init                        afinet.o
> sock_host                           afinet.o
> hosts_access                        afinet.o
> ld: fatal: Symbol referencing errors. No output written to syslog-ng
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `syslog-ng'
> Current working directory /usr/local/src/syslog-ng-1.5.18/src
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive'
> Current working directory /usr/local/src/syslog-ng-1.5.18/src
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive-am'
> Current working directory /usr/local/src/syslog-ng-1.5.18/src
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive  

you enabled tcp wrapper support, and the configure script didn't detect
-lwrap, you might want to change the generated Makefile, and add -lwrap to
LDFLAGS

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1

_______________________________________________
syslog-ng maillist  -  syslog-ng@lists.balabit.hu
https://lists.balabit.hu/mailman/listinfo/syslog-ng
Frequently asked questions at http://www.campin.net/syslog-ng/faq.html