<br><font size=2 face="sans-serif">Hi Rakesh,</font>
<br>
<br><font size=2 face="sans-serif">libcap (for setting system capabilities)
is different from libpcap (for port capture, used by tcpdump/wireshark/ethereal/etc.).</font>
<br>
<br><font size=2 face="sans-serif">Regards,</font>
<br>
<br><font size=2 face="sans-serif">Scott</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=62%><font size=1 color=white face="sans-serif"><b>Rakesh Rajasekharan
<rakesh.rajasekharan@gmail.com></b> </font>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">algernon@balabit.hu</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">Syslog-ng users' and developers' mailing
list <syslog-ng@lists.balabit.hu></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">bcc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [syslog-ng] syslog_ng 3.0.7 make
fails on RHEL.</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br>
<td width=8%>
<td width=28%><font size=1 face="sans-serif"><b>Rakesh Rajasekharan <rakesh.rajasekharan@gmail.com></b></font>
<p><font size=2 face="sans-serif">Please respond to : </font><font size=1 face="sans-serif">Syslog-ng
users' and developers' mailing list <syslog-ng@lists.balabit.hu></font>
<p><font size=1 face="sans-serif">Sent by: syslog-ng-bounces@lists.balabit.hu
</font>
<br><font size=1 face="sans-serif">21/02/2011 18:23</font></table>
<br>
<br>
<br><font size=3>Hi,</font>
<br><font size=3> </font>
<br><font size=3>I have now libcap compiled statcally on my machine , but
still I face the same error.</font>
<br><font size=3> </font>
<br><font size=3>the static libcap is present under /sur/locla/lib</font>
<br><font size=3>/usr/local/lib/libpcap.a</font>
<br><font size=3> </font>
<br><font size=3>But for some reason it does not seem to recognize that.</font>
<br><font size=3> </font>
<br><font size=3>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<br>
/usr/local/bin/ld: cannot find -lcap<br>
collect2: ld returned 1 exit status<br>
make[2]: *** [syslog-ng] Error 1<br>
make[2]: Leaving directory `/compile/syslog-ng-3.0.7/src'<br>
make[1]: *** [all-recursive] Error 1<br>
make[1]: Leaving directory `/compile/syslog-ng-3.0.7'<br>
make: *** [all] Error 2<br>
[root@CSCSVSLGG189v syslog-ng-3.0.7]#</font>
<br><font size=3>I have tried to tweak with the entry in the Makefile but
that does not seem to help.</font>
<br><font size=3>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</font>
<br><font size=3> </font>
<br><font size=3>Please advice.</font>
<br><font size=3> </font>
<br><font size=3>Thanks & regards,</font>
<br><font size=3>Rakesh<br>
</font>
<br><font size=3>On Sun, Feb 20, 2011 at 2:27 PM, Gergely Nagy <</font><a href=mailto:algernon@balabit.hu><font size=3 color=blue><u>algernon@balabit.hu</u></font></a><font size=3>>
wrote:</font>
<br><font size=3>On Sun, 2011-02-20 at 14:24 +0530, Rakesh Rajasekharan
wrote:<br>
> gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..<br>
> -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include<br>
> -I/opt/soe/local/syslog-ng-3.0.7/eventlog/include/eventlog<br>
> -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g
-O2 -Wall<br>
> -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c<br>
> mv -f .deps/main.Tpo .deps/main.Po<br>
> gcc -std=gnu99 -g -O2 -Wall -o syslog-ng main.o libsyslog-ng.a<br>
> -static -lrt -lnsl -lfl -L/usr/local/lib -lglib-2.0 -liconv<br>
> -L/opt/soe/local/syslog-ng-3.0.7/eventlog/lib -levtlog
-ldl<br>
> -lwrap -lcap globals.o<br>
> /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lcap<br>
</font>
<br><font size=3>Looks like it needs libcap, a static version.<br>
--<br>
|8]<br>
<br>
<br>
<br>
______________________________________________________________________________<br>
Member info: </font><a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target=_blank><font size=3 color=blue><u>https://lists.balabit.hu/mailman/listinfo/syslog-ng</u></font></a><font size=3><br>
Documentation: </font><a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target=_blank><font size=3 color=blue><u>http://www.balabit.com/support/documentation/?product=syslog-ng</u></font></a><font size=3><br>
FAQ: </font><a href="http://www.campin.net/syslog-ng/faq.html" target=_blank><font size=3 color=blue><u>http://www.campin.net/syslog-ng/faq.html</u></font></a><font size=3><br>
</font>
<br><tt><font size=2>______________________________________________________________________________<br>
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng<br>
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng<br>
FAQ: http://www.campin.net/syslog-ng/faq.html<br>
<br>
</font></tt>
<br><font size=2 face="sans-serif"><br>
<br>
<br>
<br>
</font>