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

Joe Shaw joe at joeshaw.org
Tue Jan 27 02:13:48 CET 2009


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


More information about the syslog-ng mailing list