[Unbound-users] Unbound 1.4.9 & ./configure --enable-debug

TANABE Ken-ichi nabeken at tknetworks.org
Sat Apr 9 13:12:57 UTC 2011


Hi,
I'm writing a package unbound-1.4.9 for Gentoo Linux.

I find that compilation errors occur with debugging options enabled.

$ ./configure --enable-debug --enable-lock-checks
--enable-alloc-checks --enable-alloc-lite --enable-alloc-nonregional
$ make
...(snip)...
Link unbound-anchor
build/smallapp/.libs/unbound-anchor.o: In function `free_file_bio':
/home/nabeken/tmp/unbound-1.4.9/smallapp/unbound-anchor.c:1153:
undefined reference to `unbound_stat_free_log'
build/smallapp/.libs/unbound-anchor.o: In function `read_data_chunk':
/home/nabeken/tmp/unbound-1.4.9/smallapp/unbound-anchor.c:911:
undefined reference to `unbound_stat_malloc_log'
/home/nabeken/tmp/unbound-1.4.9/smallapp/unbound-anchor.c:925:
undefined reference to `unbound_stat_free_log'
/home/nabeken/tmp/unbound-1.4.9/smallapp/unbound-anchor.c:921:
undefined reference to `unbound_stat_free_log'
build/smallapp/.libs/unbound-anchor.o: In function `xml_parse':
/home/nabeken/tmp/unbound-1.4.9/smallapp/unbound-anchor.c:1577:
undefined reference to `unbound_stat_free_log'
build/smallapp/.libs/unbound-anchor.o: In function `xml_startelem':
/home/nabeken/tmp/unbound-1.4.9/smallapp/unbound-anchor.c:1394:
undefined reference to `unbound_stat_free_log'
build/smallapp/.libs/unbound-anchor.o: In function `xml_endelem':
/home/nabeken/tmp/unbound-1.4.9/smallapp/unbound-anchor.c:1487:
undefined reference to `unbound_stat_free_log'
build/smallapp/.libs/unbound-anchor.o: In function `RR_to_ip':
/home/nabeken/tmp/unbound-1.4.9/smallapp/unbound-anchor.c:489:
undefined reference to `unbound_stat_calloc_log'
/home/nabeken/tmp/unbound-1.4.9/smallapp/unbound-anchor.c:510:
undefined reference to `unbound_stat_free_log'
/home/nabeken/tmp/unbound-1.4.9/smallapp/unbound-anchor.c:516:
undefined reference to `unbound_stat_free_log'
/home/nabeken/tmp/unbound-1.4.9/smallapp/unbound-anchor.c:498:
undefined reference to `unbound_stat_free_log'
build/smallapp/.libs/unbound-anchor.o: In function `do_chunked_read':
/home/nabeken/tmp/unbound-1.4.9/smallapp/unbound-anchor.c:1001:
undefined reference to `unbound_stat_free_log'
/home/nabeken/tmp/unbound-1.4.9/smallapp/unbound-anchor.c:997:
undefined reference to `unbound_stat_free_log'
build/smallapp/.libs/unbound-anchor.o: In function
`read_chunked_zero_terminate':
/home/nabeken/tmp/unbound-1.4.9/smallapp/unbound-anchor.c:1048:
undefined reference to `unbound_stat_malloc_log'
build/smallapp/.libs/unbound-anchor.o: In function `parse_ip_addr':
/home/nabeken/tmp/unbound-1.4.9/smallapp/unbound-anchor.c:581:
undefined reference to `unbound_stat_calloc_log'
build/smallapp/.libs/unbound-anchor.o: In function `ip_list_free':
/home/nabeken/tmp/unbound-1.4.9/smallapp/unbound-anchor.c:480:
undefined reference to `unbound_stat_free_log'
collect2: ld returned 1 exit status
make: *** [unbound-anchor] Error 1

I remove '--enable-alloc-lite', '--enable-alloc-checks' from
configure, then the error messages go away.
but 'make test' fails.

$ make test
./unittest
Start of unbound 1.4.9 unit test.
test negative cache functions
test ub_random functions
ub_random seed is 1302354430
test signature verify functions
test util/net_help.c:str_is_ip6
test util/net_help.c:is_pow2
test util/net_help.c:addr_mask
test util/net_help.c:addr_in_common
test util/net_help.c:sockaddr_cmp_addr
test util/net_help.c:addr_is_ip4mapped
test util/net_help.c:addr_is_any
test util/config_file.c:cfg_parse_memsize
test util/data/dname.c:query_dname_len
test util/data/dname.c:query_dname_tolower
test util/data/dname.c:pkt_dname_tolower
test util/data/dname.c:query_dname_compare
test util/data/dname.c:dname_count_labels
test util/data/dname.c:dname_count_size_labels
test util/data/dname.c:dname_lab_cmp
test util/data/dname.c:pkt_dname_len
test util/data/dname.c:dname_strict_subdomain
test util/data/dname.c:dname_subdomain
test util/data/dname.c:dname_isroot
test util/data/dname.c:dname_remove_label
test util/data/dname.c:dname_signame_label_count
test util/data/dname.c:dname_iswild
test util/data/dname.c:dname_canonical_compare
test util/data/dname.c:dname_get_shared_topdomain
test util/data/dname.c:dname_valid
test util/rtt.c:rtt_timeout
test trust anchor store functions
test alloc_special_obtain functions
test regional functions
assertion failure testcode/unitregional.c:82
make: *** [test] Error 1

Any help would be appriciated.
Thanks,

-- 
TANABE Ken-ichi / nabeken
Mailto: nabeken at tknetworks.org / gmail.com / gentoo.gr.jp



More information about the Unbound-users mailing list