[syslog-ng] [patch] Fix build with --disable-ssl

Chris Fabri fabric at northwestern.edu
Mon Feb 2 21:33:18 CET 2009


On Mon, Jan 26, 2009 at 7:13 PM, Joe Shaw <joe at joeshaw.org> wrote:
> Hi,
>
> On Mon, Jan 26, 2009 at 6:23 PM, Chris Fabri <fabric at northwestern.edu> wrote:
>> This seems to do the trick, of course I'm on to something new now:
>>
>> gcc  -g -O2 -Wall   -o syslog-ng  main.o libsyslog-ng.a -static   -lrt
>> -lnsl -lfl -L/usr/local/lib -lglib-2.0   -L/usr/local/lib -levtlog
>> -ldl  -lwrap   -lcap
>> /usr/bin/ld: cannot find -lcap
>> collect2: ld returned 1 exit status
>> make[2]: *** [syslog-ng] Error 1
>> make[2]: Leaving directory `/home/fabric/syslog-ng-3.0.1/src'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/fabric/syslog-ng-3.0.1'
>> make: *** [all] Error 2
>
> Heh, are you running this on Fedora Core 3?  I had the same problem --
> basically, syslog-ng wants to link against a statically linked
> libpcap, but your system doesn't provide it.  You need to do some
> tweaking of ordering of the libraries in configure.in to link against
> it dynamically.  I can send you a patch when I get back to work
> tomorrow.
>
> Joe
> ____


Joe-
Yes, I'm on Fedora 3 unfortunately with this.

Sorry to be a pest.  I'm still banging my head against this, and if
you could provide the patch for this I'm hoping this will get me
through to a successful compile.  Somebody had suggessted just
disabling linux-cap, but that gives me a whole slew of new errors.
chris


More information about the syslog-ng mailing list