[Unbound-users] ldns --with-drill: cannot find -lcrypto
Leo Baltus
Leo.Baltus at omroep.nl
Tue Jan 29 12:31:07 UTC 2013
Hi,
I just wanted to compile ldns --with-drill compiling against openssl
which I have installed in /compile/openssl-1.0.0j
$ ./configure --with-ssl=/compile/openssl-1.0.0j --with-drill
$ make
./libtool --tag=CC --quiet --mode=link gcc -I. -I. -DHAVE_CONFIG_H -I/compile/openssl-1.0.0j/include -Wwrite-strings -W -Wall -O2 -g -D_GNU_SOURCE drill/chasetrace.lo drill/dnssec.lo drill/drill.lo drill/drill_util.lo drill/error.lo drill/root.lo drill/securetrace.lo drill/work.lo -lcrypto -ldl -lldns -o drill/drill
/usr/bin/ld: cannot find -lcrypto
I think that '-I/compile/openssl-1.0.0j/include' should read
'-L/compile/openssl-1.0.0j/lib' as it is linking and not compiling at
this stage.
Attached patch fixes this, however I have not extensively tested this so
maybe there is a valid reason to use LIBSSL_CPPFLAGS here.
--
Leo Baltus, internetbeheerder /\
NPO ICT Internet Services /NPO/\
Sumatralaan 45, 1217 GP Hilversum, Filmcentrum, west \ /\/
servicedesk at omroep.nl, 035-6773555 \/
-------------- next part --------------
--- ldns-1.6.16/Makefile.in.org 2013-01-29 12:46:56.000000000 +0100
+++ ldns-1.6.16/Makefile.in 2013-01-29 12:47:04.000000000 +0100
@@ -95,7 +95,7 @@
LINK_LIB = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) \
$(LIBS) -version-number $(version_info) -no-undefined
LINK_EXE = $(LIBTOOL) --mode=link $(CC) $(CPPFLAGS) \
- $(LIBSSL_CPPFLAGS) $(CFLAGS) $(LDFLAGS)
+ $(LIBSSL_LDFLAGS) $(CFLAGS) $(LDFLAGS)
.PHONY: clean realclean docclean manpages doc lint all lib pyldns test
.PHONY: install uninstall install-doc uninstall-doc uninstall-pyldns
More information about the Unbound-users
mailing list