[syslog-ng] syslog_ng 3.0.7 make fails on RHEL.

Rakesh Rajasekharan rakesh.rajasekharan at gmail.com
Sun Feb 20 09:54:32 CET 2011


Hi,

I am finding no success trying to compile syslog-ng 3.0.7 on the RHEL
machine using the --enable-static-linking mode. I get stuck in the make
stage. I am using GNU gcc 3.4.5 version .Below is the error that appears in
make.


gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include
-I/opt/soe/local/syslog-ng-3.0.7/eventlog/include/eventlog
-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -g -O2 -Wall -MT
main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
mv -f .deps/main.Tpo .deps/main.Po
gcc -std=gnu99  -g -O2 -Wall   -o syslog-ng main.o libsyslog-ng.a -static
-lrt -lnsl -lfl -L/usr/local/lib -lglib-2.0 -liconv
-L/opt/soe/local/syslog-ng-3.0.7/eventlog/lib -levtlog     -ldl  -lwrap
-lcap   globals.o
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lcap
collect2: ld returned 1 exit status
make[2]: *** [syslog-ng] Error 1
make[2]: Leaving directory `/compile/syslog-ng-3.0.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/compile/syslog-ng-3.0.7'
make: *** [all] Error 2

[root at CSCSVSLGG189v syslog-ng-3.0.7]# which ld
/usr/local/bin/ld
[root at CSCSVSLGG189v syslog-ng-3.0.7]# ld -V
GNU ld version 2.17
  Supported emulations:
   elf_i386
   i386linux
Can you please advice on this.

Thanks & Regards,
Rakesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20110220/791a7e32/attachment.htm 


More information about the syslog-ng mailing list