Bug 248010 - 'make buildworld': unbound build failure on 12.1-RELEASE-p7
Summary: 'make buildworld': unbound build failure on 12.1-RELEASE-p7
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: gnu (show other bugs)
Version: 12.1-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-16 10:29 UTC by oz42
Modified: 2020-07-23 15:14 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description oz42 2020-07-16 10:29:45 UTC
In contrast to 12.1-RELEASE-p6, unbound fails and so prevents a successful run of 'make buildworld'

'make buildworld' log only states 'error code 1', so I ran 'make' in /usr/src/usr.sbin/unbound


Result:

cc -O2 -pipe -I/usr/src/contrib/unbound -I/usr/src/contrib/ldns -I/usr/src/usr.sbin/unbound -I/usr/src/usr.sbin/unbound/daemon -DNDEBUG -std=gnu99 -fstack-protector-strong -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wmissing-variable-declarations -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments   -o local-unbound acl_list.o cachedump.o daemon.o remote.o shm_main.o stats.o ub_event.o unbound.o worker.o  -lprivateunbound -L/usr/obj/usr/src/amd64.amd64/lib/libutil -lutil -L/usr/obj/usr/src/amd64.amd64/secure/lib/libssl -lssl -L/usr/obj/usr/src/amd64.amd64/secure/lib/libcrypto -lcrypto -L/usr/obj/usr/src/amd64.amd64/lib/libthr -lpthread
ld: error: undefined symbol: listen_sslctx_delete_ticket_keys
>>> referenced by daemon.c
>>>               daemon.o:(daemon_delete)

ld: error: undefined symbol: rpz_action_to_string
>>> referenced by remote.c
>>>               remote.o:(do_stats)

ld: error: undefined symbol: tcp_req_info_get_stream_buffer_size
>>> referenced by stats.c
>>>               stats.o:(server_stats_compile)

ld: error: undefined symbol: log_ident_set_default
>>> referenced by unbound.c
>>>               unbound.o:(main)

ld: error: undefined symbol: listen_sslctx_setup_ticket_keys
>>> referenced by unbound.c
>>>               unbound.o:(main)

ld: error: undefined symbol: log_ident_set_or_default
>>> referenced by unbound.c
>>>               unbound.o:(main)

ld: error: undefined symbol: log_query_in
>>> referenced by worker.c
>>>               worker.o:(worker_handle_request)

ld: error: undefined symbol: rpz_apply_qname_trigger
>>> referenced by worker.c
>>>               worker.o:(worker_handle_request)

ld: error: undefined symbol: respip_action_to_rpz_action
>>> referenced by worker.c
>>>               worker.o:(worker_handle_request)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 1 oz42 2020-07-16 10:30:28 UTC
make.conf:

.if ${.CURDIR:M*/ports/devel/ccache}
NO_CCACHE=yes
.endif

NO_CCACHE=yes

.if !defined(NO_CCACHE)
CC=/usr/local/libexec/ccache/world/cc
CXX=/usr/local/libexec/ccache/world/c++
.endif

KERNCONFDIR=/root
KERNCONF=BETSY
MODULES_OVERRIDE=mac_ntpd filemon accf_http accf_data
#
OPTIONS_UNSET= NIS
OPTIONS_UNSET+= X11
OPTIONS_UNSET+= DOCS
OPTIONS_UNSET+= DEBUG
OPTIONS_UNSET+= WAYLAND
#
DEFAULT_VERSIONS+= ssl=libressl
Comment 2 oz42 2020-07-16 11:30:06 UTC
src.conf:

WITH_BSD_GREP=YES
WITH_CCACHE_BUILD=YES
WITH_LLD_IS_LD=YES
WITH_SHARED_TOOLCHAIN=YES
WITH_SORT_THREADS=YES
#
WITHOUT_CLANG_FULL=YES
WITHOUT_LLVM_TARGET_ALL=YES
#
WITHOUT_ACCT=YES
WITHOUT_AMD=YES
WITHOUT_AT=YES
WITHOUT_ATM=YES
WITHOUT_ASSERT_DEBUG=YES
WITHOUT_AUDIT=YES
WITHOUT_AUTHPF=YES
WITHOUT_AUTOFS=YES
WITHOUT_BHYVE=YES
WITHOUT_BLACKLIST=YES
WITHOUT_BLUETOOTH=YES
WITHOUT_BOOTPARAMD=YES
WITHOUT_BOOTPD=YES
WITHOUT_BSDINSTALL=YES
WITHOUT_BSNMP=YES
WITHOUT_CALENDAR=YES
WITHOUT_CAPSICUM=YES
WITHOUT_CASPER=YES
WITHOUT_CCD=YES
WITHOUT_CDDL=YES        # includes WITHOUT_CTF WITHOUT_ZFS
# WITHOUT_CRYPT=YES
WITHOUT_CTM=YES
WITHOUT_CUSE=YES
WITHOUT_CXGBETOOL=YES
WITHOUT_DEBUG_FILES=YES
WITHOUT_DICT=YES
WITHOUT_DMAGENT=YES
WITHOUT_EXAMPLES=YES
WITHOUT_FINGER=YES
WITHOUT_FLOPPY=YES
WITHOUT_FORTH=YES
WITHOUT_FTP=YES
WITHOUT_GAMES=YES
WITHOUT_GCOV=YES
WITHOUT_GDB=YES
WITHOUT_GOOGLETEST=YES
WITHOUT_GPIO=YES
WITHOUT_GSSAPI=YES
WITHOUT_HAST=YES
WITHOUT_HTML=YES
WITHOUT_HYPERV=YES
WITHOUT_INETD=YES
WITHOUT_IPFILTER=YES
WITHOUT_IPSEC_SUPPORT=YES
WITHOUT_ISCSI=YES
WITHOUT_JAIL=YES
WITHOUT_KDUMP=YES
WITHOUT_KERBEROS=YES
WITHOUT_KERNEL_SYMBOLS=YES
WITHOUT_KVM=YES
WITHOUT_LEGACY_CONSOLE=YES
WITHOUT_LIB32=YES
WITHOUT_LLDB=YES
WITHOUT_LLVM_COV=YES
WITHOUT_LOADER_ZFS=YES
WITHOUT_LPR=YES
WITHOUT_LS_COLORS=YES
WITHOUT_MAIL=YES
WITHOUT_MLX5TOOL=YES
WITHOUT_MODULE_DRM=YES
WITHOUT_MODULE_DRM2=YES
WITHOUT_NDIS=YES
WITHOUT_NETGRAPH=YES
WITHOUT_NIS=YES
WITHOUT_OPENSSH=YES
WITHOUT_PC_SYSINSTALL=YES
WITHOUT_PPP=YES
WITHOUT_PROFILE=YES
WITHOUT_QUOTAS=YES
WITHOUT_RADIUS_SUPPORT=YES
WITHOUT_RBOOTD=YES
WITHOUT_REPRODUCIBLE_BUILD=YES
WITHOUT_RESCUE=YES
WITHOUT_ROUTED=YES
WITHOUT_SENDMAIL=YES
WITHOUT_SHAREDOCS=YES
WITHOUT_SOURCELESS=YES
WITHOUT_SVNLITE=YES
# WITHOUT_SYMVER=YES
WITHOUT_TALK=YES
WITHOUT_TCP_WRAPPERS=YES
WITHOUT_TESTS=YES       # includes WITHOUT_DTRACE_TESTS WITHOUT_TESTS_SUPPORT
WITHOUT_TFTP=YES
WITHOUT_TIMED=YES
WITHOUT_USB=YES
WITHOUT_USB_GADGET_EXAMPLES=YES
WITHOUT_WIRELESS=YES    # includes WITHOUT_WIRELESS_SUPPORT=YES
WITHOUT_WPA_SUPPLICANT_EAPOL=YES
WITHOUT_ZFS=YES
Comment 3 Teran McKinney 2020-07-21 05:26:58 UTC
I'm having issues with the SA-20:19 Unbound patch as well, even on a fresh install applying all given patches.

https://www.freebsd.org/security/advisories/FreeBSD-SA-20:19.unbound.asc

bash# pwd
/usr/src/usr.sbin/unbound
bash# make
===> daemon (all)
cc  -O2 -pipe -I/usr/src/contrib/unbound -I/usr/src/contrib/ldns -I/usr/src/usr.sbin/unbound -I/usr/src/usr.sbin/unbound/daemon   -g -MD  -MF.depend.acl_list.o -MTacl_list.o -std=gnu99 -fstack-protector-strong -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wmissing-variable-declarations -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable  -Qunused-arguments  -c /usr/src/contrib/unbound/daemon/acl_list.c -o acl_list.o
In file included from /usr/src/contrib/unbound/daemon/acl_list.c:43:
In file included from /usr/src/contrib/unbound/daemon/acl_list.h:45:
In file included from /usr/src/contrib/unbound/util/storage/dnstree.h:45:
/usr/src/contrib/unbound/util/rbtree.h:65:2: error: unknown type name 'uint8_t'
        uint8_t        color;
        ^
/usr/src/contrib/unbound/util/rbtree.h:81:2: error: unknown type name 'size_t'
        size_t          count;
        ^
In file included from /usr/src/contrib/unbound/daemon/acl_list.c:43:
In file included from /usr/src/contrib/unbound/daemon/acl_list.h:45:
/usr/src/contrib/unbound/util/storage/dnstree.h:61:2: error: unknown type name 'uint8_t'
        uint8_t* name;
        ^
/usr/src/contrib/unbound/util/storage/dnstree.h:63:2: error: unknown type name 'size_t'
        size_t len;
        ^
/usr/src/contrib/unbound/util/storage/dnstree.h:67:2: error: unknown type name 'uint16_t'
        uint16_t dclass;
        ^
/usr/src/contrib/unbound/util/storage/dnstree.h:83:26: error: field has incomplete type 'struct sockaddr_storage'
        struct sockaddr_storage addr;
                                ^
/usr/src/contrib/unbound/util/storage/dnstree.h:83:9: note: forward declaration of 'struct sockaddr_storage'
        struct sockaddr_storage addr;
               ^
/usr/src/contrib/unbound/util/storage/dnstree.h:85:2: error: unknown type name 'socklen_t'
        socklen_t addrlen;
        ^
/usr/src/contrib/unbound/util/storage/dnstree.h:109:2: error: unknown type name 'uint8_t'
        uint8_t* name, size_t len, int labs, uint16_t dclass);
        ^
/usr/src/contrib/unbound/util/storage/dnstree.h:109:17: error: unknown type name 'size_t'
        uint8_t* name, size_t len, int labs, uint16_t dclass);
                       ^
/usr/src/contrib/unbound/util/storage/dnstree.h:109:39: error: unknown type name 'uint16_t'
        uint8_t* name, size_t len, int labs, uint16_t dclass);
                                             ^
/usr/src/contrib/unbound/util/storage/dnstree.h:127:58: error: unknown type name 'uint8_t'
struct name_tree_node* name_tree_find(rbtree_type* tree, uint8_t* name, 
                                                         ^
/usr/src/contrib/unbound/util/storage/dnstree.h:128:2: error: unknown type name 'size_t'
        size_t len, int labs, uint16_t dclass);
        ^
/usr/src/contrib/unbound/util/storage/dnstree.h:128:24: error: unknown type name 'uint16_t'
        size_t len, int labs, uint16_t dclass);
                              ^
/usr/src/contrib/unbound/util/storage/dnstree.h:139:60: error: unknown type name 'uint8_t'
struct name_tree_node* name_tree_lookup(rbtree_type* tree, uint8_t* name, 
                                                           ^
/usr/src/contrib/unbound/util/storage/dnstree.h:140:2: error: unknown type name 'size_t'
        size_t len, int labs, uint16_t dclass);
        ^
/usr/src/contrib/unbound/util/storage/dnstree.h:140:24: error: unknown type name 'uint16_t'
        size_t len, int labs, uint16_t dclass);
                              ^
/usr/src/contrib/unbound/util/storage/dnstree.h:148:44: error: unknown type name 'uint16_t'
int name_tree_next_root(rbtree_type* tree, uint16_t* dclass);
                                           ^
/usr/src/contrib/unbound/util/storage/dnstree.h:167:33: error: unknown type name 'socklen_t'
        struct sockaddr_storage* addr, socklen_t addrlen, int net);
                                       ^
/usr/src/contrib/unbound/util/storage/dnstree.h:191:33: error: unknown type name 'socklen_t'
        struct sockaddr_storage* addr, socklen_t addrlen);
                                       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
*** Error code 1

Stop.
make[1]: stopped in /usr/src/usr.sbin/unbound/daemon
*** Error code 1

Stop.
make: stopped in /usr/src/usr.sbin/unbound
Comment 4 Gordon Tetlow freebsd_committer 2020-07-23 15:14:05 UTC
Would it be possible to checkout the tip of the releng/12.1 and diff the two trees to see if there are any differences?