[syslog-ng] 3.2.1 fails build in modules/dbparser w/o -lssl

Brian A. Seklecki lavalamp at spiritual-machines.org
Wed Dec 1 04:32:02 CET 2010

[Sorry if this is a dupe; mailing list delays or silent quarntine for 

I can provide a full config.log via URL, but here's the quick summary:

/bin/ksh ../../libtool --tag=CC   --mode=link gcc -std=gnu99 
-Wno-pointer-sign -g -O2 -Wall   -o pdbtool pdbtool-pdbtool.o 
pdbtool-patternize.o ../../lib/libsyslog-ng.la libdbparser.la    -lrt 
-Wl,-R/usr/pkg/lib -Wl,--export-dynamic -pthread -L/usr/pkg/lib 
-lgmodule-2.0 -lglib-2.0 -lintl   -Wl,-R/usr/pkg/lib -L/usr/pkg/lib 
-levtlog   -lresolv
libtool: link: gcc -std=gnu99 -Wno-pointer-sign -g -O2 -Wall -o 
.libs/pdbtool pdbtool-pdbtool.o pdbtool-patternize.o -Wl,-R/usr/pkg/lib 
-Wl,--export-dynamic -pthread -Wl,-R/usr/pkg/lib 
../../lib/.libs/libsyslog-ng.so -L/usr/pkg/lib ./.libs/libdbparser.so 
/root/syslog-ng-3.2.1/lib/.libs/libsyslog-ng.so -lrt 
/usr/pkg/lib/libgmodule-2.0.so /usr/pkg/lib/libglib-2.0.so 
/usr/pkg/lib/libpcre.so -lintl /usr/pkg/lib/libevtlog.so -lresolv 
-pthread -Wl,-rpath -Wl,/usr/pkg/lib -Wl,-rpath -Wl,/usr/pkg/lib/syslog-ng
pdbtool-patternize.o: In function `uuid_gen_random':
/root/syslog-ng-3.2.1/modules/dbparser/patternize.c:67: undefined 
reference to `RAND_bytes'
gmake[2]: *** [pdbtool] Error 1
gmake[2]: Leaving directory `/root/syslog-ng-3.2.1/modules/dbparser'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/root/syslog-ng-3.2.1/modules/dbparser'
gmake: *** [all] Error 2

Appending "-lssl" to the automake/libtool command makes it work fine.

NetBSD metrotitan 5.99.39 NetBSD 5.99.39 (METROTITAN-$Revision: 1.993 $) 
#0: Wed Oct  6 13:26:31 EDT 2010 
root at metrotitan:/usr/obj/sys/arch/i386/compile/METROTITAN i386

bash-4.1# openssl version
OpenSSL 1.1.0-dev 10 Jul 2009

I'm doing this outside of Pkgsrc, so its possibly my fault.


More information about the syslog-ng mailing list