[syslog-ng]res_init not found on Solaris 9

Balazs Scheidler bazsi@balabit.hu
Thu, 7 Nov 2002 11:04:47 +0100


On Thu, Nov 07, 2002 at 04:28:07AM +0000, joe781@att.net wrote:
> I am using Libol 0.3.5 and syslog-ng 1.5.23. Libol installed without a problem.
> The make for syslog-ng terminates as follows:
> 
> 
> 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  -lfl /usr/local/lib/libol.a -lsocket -lnsl -lxnet
> Undefined                       first referenced
>  symbol                             in file
> res_init                            main.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.23/src
> 
> The ./configure step finds it OK. Where would I find it? TIA.

add -lresolv to the LDFLAGS. hmm.. my 1.5.23 has compiled on solaris 8 fine.

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