<div>Hi,</div>
<div> </div>
<div>I have now libcap compiled statcally on my machine , but still I face the same error.</div>
<div> </div>
<div>the static libcap is present under /sur/locla/lib</div>
<div>/usr/local/lib/libpcap.a</div>
<div> </div>
<div>But for some reason it does not seem to recognize that.</div>
<div> </div>
<div>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&#39;<br>make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/compile/syslog-ng-3.0.7&#39;<br>
make: *** [all] Error 2<br>[root@CSCSVSLGG189v syslog-ng-3.0.7]#<br></div>
<div>I have tried to tweak with the entry in the Makefile but that does not seem to help.</div>
<div>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</div>
<div> </div>
<div>Please advice.</div>
<div> </div>
<div>Thanks &amp; regards,</div>
<div>Rakesh<br><br></div>
<div class="gmail_quote">On Sun, Feb 20, 2011 at 2:27 PM, Gergely Nagy <span dir="ltr">&lt;<a href="mailto:algernon@balabit.hu">algernon@balabit.hu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">On Sun, 2011-02-20 at 14:24 +0530, Rakesh Rajasekharan wrote:<br>&gt; gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..<br>&gt; -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include<br>&gt; -I/opt/soe/local/syslog-ng-3.0.7/eventlog/include/eventlog<br>
&gt; -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -g -O2 -Wall<br>&gt; -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c<br>&gt; mv -f .deps/main.Tpo .deps/main.Po<br>&gt; gcc -std=gnu99  -g -O2 -Wall   -o syslog-ng main.o libsyslog-ng.a<br>
&gt; -static   -lrt -lnsl -lfl -L/usr/local/lib -lglib-2.0 -liconv<br>&gt; -L/opt/soe/local/syslog-ng-3.0.7/eventlog/lib -levtlog     -ldl<br>&gt; -lwrap   -lcap   globals.o<br>&gt; /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lcap<br>
<br></div>Looks like it needs libcap, a static version.<br>--<br>|8]<br><br><br><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></blockquote></div><br>