Thanks Scott...
that really helped I was able to build it successfully after I got the lipbcap installed.
 
Regards,
Rakesh

On Tue, Feb 22, 2011 at 3:50 AM, Scott Rochford <scott.rochford@amadeus.com> wrote:

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@gmail.com>
To
algernon@balabit.hu
cc
Syslog-ng users' and developers' mailing list <syslog-ng@lists.balabit.hu>
bcc
Subject
Re: [syslog-ng] syslog_ng 3.0.7 make fails on RHEL.


Rakesh Rajasekharan <rakesh.rajasekharan@gmail.com>

Please respond to : Syslog-ng users' and developers' mailing list        <syslog-ng@lists.balabit.hu>

Sent by: syslog-ng-bounces@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@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@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







______________________________________________________________________________
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