Hello again,
Thank you that solve that problem. But I run into a new one, but this
one I think is not directly linked with KNOT. I'm using OpenSSL 1.0.1C.
***************************************
/bin/sh ../libtool --tag=CC --mode=link gcc -std=gnu99 -Wall
-Ilibknot -DLIBEXECDIR='"/usr/local/libexec"'
-DSYSCONFDIR='"/usr/local/etc"'
-DSBINDIR='"/usr/local/sbin"' -g -O2
-fpredictive-commoning -I/usr/local/include -mmmx -msse -msse2
-msse3 -L/usr/local/lib -o unittests acl_tests.o da_tests.o
events_tests.o skiplist_tests.o slab_tests.o fdset_tests.o
conf_tests.o dthreads_tests.o journal_tests.o server_tests.o
unittests_main.o libknotd.la libknots.la -lz -lcrypto -lrt -ldl
-lurcu -lpthread -lm
libtool: link: gcc -std=gnu99 -Wall -Ilibknot
-DLIBEXECDIR=\"/usr/local/libexec\" -DSYSCONFDIR=\"/usr/local/etc\"
-DSBINDIR=\"/usr/local/sbin\" -g -O2 -fpredictive-commoning
-I/usr/local/include -mmmx -msse -msse2 -msse3 -o unittests
acl_tests.o da_tests.o events_tests.o skiplist_tests.o slab_tests.o
fdset_tests.o conf_tests.o dthreads_tests.o journal_tests.o
server_tests.o unittests_main.o -L/usr/local/lib ./.libs/libknotd.a
./.libs/libknots.a -lz -lcrypto -lrt -ldl /usr/local/lib/liburcu.so
/usr/local/lib/liburcu-common.so -lpthread -lm -Wl,-rpath
-Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libcrypto.a(v3_utl.o):
In function `hex_to_string':
v3_utl.c:(.text+0x4b0): multiple definition of `hex_to_string'
./.libs/libknotd.a(zone-dump-text.o):/root/knot-1.0.6/src/knot/zone/zone-dump-text.c:574:
first defined here
collect2: ld returned 1 exit status
make[2]: *** [unittests] Error 1
make[2]: Leaving directory `/root/knot-1.0.6/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/knot-1.0.6/src'
make: *** [all-recursive] Error 1
***************************************
Any clues?
Thanks,
Eduardo Duarte
SIT-DNS
DNS.PT -
Hi Eduardo,
seems we miss a check for adler32 function in zlib library in autoconf.
Thanks, this will be in next release (443e6732a7), or you can use
following patch:
diff --git a/configure.ac b/configure.ac
index 3501423..5f7fc28 100644
--- a/configure.ac
+++ b/configure.ac
@@ -147,7 +147,7 @@ AC_SEARCH_LIBS([dlopen], [dl])
AC_SEARCH_LIBS([clock_gettime], [rt])
AC_SEARCH_LIBS([OpenSSL_add_all_digests], [crypto],[],
[AC_MSG_ERROR([libcrypto not found])])
AC_SEARCH_LIBS([capng_apply], [cap-ng])
-AC_SEARCH_LIBS([crc32], [z])
+AC_SEARCH_LIBS([adler32], [z])
#AC_SEARCH_LIBS([ldns_rr_list_pop_rrset], [ldns], [],
[AC_MSG_ERROR([libldns not found])])
# Checks for header files.
You need to run "autoreconf -fi" after applying the patch.
Ondrej
On 25. 7. 2012, at 17:04, Eduardo Duarte <eduardo.duarte(a)fccn.pt>
wrote:
Hello,
I'm new to KNOT and I'm trying to install it on a CentOS 6.3
(Final) minimal install, I already updated openssl to the newest
version and install all the pre-requirements but when I run make
command I get the following error:
*************************
BINDIR=\"/usr/local/sbin\" -g -O2 -fpredictive-commoning
-I/usr/local/include -mmmx -msse -msse2 -msse3 -MT journal.lo -MD
-MP -MF .deps/journal.Tpo -c knot/server/journal.c -fPIC -DPIC -o
.libs/journal.o
In file included from knot/server/journal.c:26:
./common/crc.h:30:18: error: zlib.h: No such file or directory
In file included from knot/server/journal.c:26:
./common/crc.h: In function 'crc_init':
./common/crc.h:49: warning: implicit declaration of function 'adler32'
make[2]: *** [journal.lo] Error 1
make[2]: Leaving directory `/root/knot-1.0.6/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/knot-1.0.6/src'
make: *** [all-recursive] Error 1
*************************
Can any of you guys help me?
Best regards,
--
Eduardo Duarte
SIT-DNS
DNS.PT -
https://www.dns.pt/
FCCN -
http://www.fccn.pt/
_______________________________________________
knot-dns-users mailing list
knot-dns-users(a)lists.nic.cz
https://lists.nic.cz/cgi-bin/mailman/listinfo/knot-dns-users --
Ondřej Surý -- Chief Science Officer
-------------------------------------------
CZ.NIC, z.s.p.o. -- Laboratoře CZ.NIC
Americka 23, 120 00 Praha 2, Czech Republic
mailto:ondrej.sury@nic.cz
http://nic.cz/
tel:+420.222745110 fax:+420.222745112
-------------------------------------------
_______________________________________________
knot-dns-users mailing list
knot-dns-users(a)lists.nic.cz