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

Scott Rochford scott.rochford at amadeus.com
Mon Feb 21 23:20:33 CET 2011


Hi Rakesh,

libcap (for setting system capabilities) is different from libpcap (for 
port capture, used by tcpdump/wireshark/ethereal/etc.).

Regards,

Scott




Rakesh Rajasekharan <rakesh.rajasekharan at gmail.com> 
To
algernon at balabit.hu
cc
Syslog-ng users' and developers' mailing list <syslog-ng at lists.balabit.hu>
bcc

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





Rakesh Rajasekharan <rakesh.rajasekharan at gmail.com>
Please respond to : Syslog-ng users' and developers' mailing list 
<syslog-ng at lists.balabit.hu>
Sent by: syslog-ng-bounces at lists.balabit.hu 
21/02/2011 18:23


Hi,
 
I have now libcap compiled statcally on my machine , but still I face the 
same error.
 
the static libcap is present under /sur/locla/lib
/usr/local/lib/libpcap.a
 
But for some reason it does not seem to recognize that.
 
gcc -std=gnu99  -g -O2 -Wall  -L/usr/local/lib -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/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]#
I have tried to tweak with the entry in the Makefile but that does not 
seem to help.
DEPS_LIBS = -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
 
Please advice.
 
Thanks & regards,
Rakesh

On Sun, Feb 20, 2011 at 2:27 PM, Gergely Nagy <algernon at balabit.hu> wrote:
On Sun, 2011-02-20 at 14:24 +0530, Rakesh Rajasekharan wrote:
> 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

Looks like it needs libcap, a static version.
--
|8]



______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: 
http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.campin.net/syslog-ng/faq.html

______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: 
http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.campin.net/syslog-ng/faq.html






-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20110222/7afb4c87/attachment.htm 


More information about the syslog-ng mailing list