<div>Thanks Scott...</div>
<div>that really helped I was able to build it successfully after I got the lipbcap installed.</div>
<div> </div>
<div>Regards,</div>
<div>Rakesh<br><br></div>
<div class="gmail_quote">On Tue, Feb 22, 2011 at 3:50 AM, Scott Rochford <span dir="ltr"><<a href="mailto:scott.rochford@amadeus.com">scott.rochford@amadeus.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br><font face="sans-serif" size="2">Hi Rakesh,</font> <br><br><font face="sans-serif" size="2">libcap (for setting system capabilities) is different from libpcap (for port capture, used by tcpdump/wireshark/ethereal/etc.).</font> <br>
<br><font face="sans-serif" size="2">Regards,</font> <br><br><font face="sans-serif" size="2">Scott</font> <br><br><br><br>
<table width="100%">
<tbody>
<tr valign="top">
<td width="62%"><font face="sans-serif" color="white" size="1"><b>Rakesh Rajasekharan <<a href="mailto:rakesh.rajasekharan@gmail.com" target="_blank">rakesh.rajasekharan@gmail.com</a>></b> </font>
<table width="100%">
<tbody>
<tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">To</font></div>
<td><font face="sans-serif" size="1"><a href="mailto:algernon@balabit.hu" target="_blank">algernon@balabit.hu</a></font>
<tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">cc</font></div>
<td><font face="sans-serif" size="1">Syslog-ng users' and developers' mailing list <<a href="mailto:syslog-ng@lists.balabit.hu" target="_blank">syslog-ng@lists.balabit.hu</a>></font>
<tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">bcc</font></div>
<td>
<tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">Subject</font></div>
<td><font face="sans-serif" size="1">Re: [syslog-ng] syslog_ng 3.0.7 make fails on RHEL.</font></td></td></tr></td></td></tr></td></td></tr></td></td></tr></tbody></table><br>
<table>
<tbody>
<tr valign="top">
<td>
<td></td></td></tr></tbody></table><br>
<td width="8%">
<td width="28%"><font face="sans-serif" size="1"><b>Rakesh Rajasekharan <<a href="mailto:rakesh.rajasekharan@gmail.com" target="_blank">rakesh.rajasekharan@gmail.com</a>></b></font>
<p><font face="sans-serif" size="2">Please respond to : </font><font face="sans-serif" size="1">Syslog-ng users' and developers' mailing list <<a href="mailto:syslog-ng@lists.balabit.hu" target="_blank">syslog-ng@lists.balabit.hu</a>></font>
<p><font face="sans-serif" size="1">Sent by: <a href="mailto:syslog-ng-bounces@lists.balabit.hu" target="_blank">syslog-ng-bounces@lists.balabit.hu</a> </font> <br><font face="sans-serif" size="1">21/02/2011 18:23</font></p>
<p></p></p></td></td></td></tr></tbody></table>
<div>
<div></div>
<div class="h5"><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" target="_blank"><font color="blue" size="3"><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 color="blue" size="3"><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 color="blue" size="3"><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 color="blue" size="3"><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: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.campin.net/syslog-ng/faq.html" target="_blank">http://www.campin.net/syslog-ng/faq.html</a><br><br></font></tt><br><font face="sans-serif" size="2"><br><br><br><br></font></div></div><br>______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.campin.net/syslog-ng/faq.html" target="_blank">http://www.campin.net/syslog-ng/faq.html</a><br><br><br></blockquote></div><br>