Maintained by: NLnet Labs

Undefined symbols compiling on OmniOS

W.C.A. Wijngaards
Mon Dec 4 09:26:52 CET 2017


Hi Nadine,

The respip.lo is not getting included in the link line.

Does this diff solve the problem?  It omits += from the Makefile.

If that does not work, perhaps use gmake?

Index: Makefile.in
===================================================================
--- Makefile.in	(revision 4413)
+++ Makefile.in	(working copy)
@@ -137,8 +137,7 @@
 validator.lo val_kcache.lo val_kentry.lo val_neg.lo val_nsec3.lo
val_nsec.lo \
 val_secalgo.lo val_sigcrypt.lo val_utils.lo dns64.lo cachedb.lo
authzone.lo\
 $(SUBNET_OBJ) $(PYTHONMOD_OBJ) $(CHECKLOCK_OBJ) $(DNSTAP_OBJ)
$(DNSCRYPT_OBJ) \
-$(IPSECMOD_OBJ)
-COMMON_OBJ_WITHOUT_NETCALL+=respip.lo
+$(IPSECMOD_OBJ) respip.lo
 COMMON_OBJ_WITHOUT_UB_EVENT=$(COMMON_OBJ_WITHOUT_NETCALL) netevent.lo
listen_dnsport.lo \
 outside_network.lo
 COMMON_OBJ=$(COMMON_OBJ_WITHOUT_UB_EVENT) ub_event.lo

Best regards, Wouter

On 02/12/17 17:19, N. Nadine Miller via Unbound-users wrote:
> I'm trying to compile unbound 1.6.7 on the latest OmniOS community
> edition. OmniOS is very close to OpenIndiana/Solaris 11.
> 
> I'm not sure if I am missing a linker flag or a library. The
> configuration script runs without any obvious errors based on a review
> of config.log. Compilation works fine, only throws a couple of warns
> if I use Solaris threads rather than pthreads.
> 
> I have tried building with just a  simple install prefix flag as well
> explicitly setting my include directories. Linking always fails at:
> 
> libtool: link: gcc -I. -I/usr/include -I/opt/local/include
> -I/opt/local/include -O3 -m64 -std=c99 -flto -D_REENTRANT -m64 -o
> unbound .libs/acl_list.o .libs/cachedump.o .libs/daemon.o
> .libs/shm_main.o .libs/remote.o .libs/stats.o .libs/unbound.o
> .libs/worker.o .libs/dns.o .libs/infra.o .libs/rrset.o .libs/dname.o
> .libs/msgencode.o .libs/as112.o .libs/msgparse.o .libs/msgreply.o
> .libs/packed_rrset.o .libs/iterator.o .libs/iter_delegpt.o
> .libs/iter_donotq.o .libs/iter_fwd.o .libs/iter_hints.o
> .libs/iter_priv.o .libs/iter_resptype.o .libs/iter_scrub.o
> .libs/iter_utils.o .libs/localzone.o .libs/mesh.o .libs/modstack.o
> .libs/view.o .libs/outbound_list.o .libs/alloc.o .libs/config_file.o
> .libs/configlexer.o .libs/configparser.o .libs/fptr_wlist.o
> .libs/locks.o .libs/log.o .libs/mini_event.o .libs/module.o
> .libs/net_help.o .libs/random.o .libs/rbtree.o .libs/regional.o
> .libs/rtt.o .libs/dnstree.o .libs/lookup3.o .libs/lruhash.o
> .libs/slabhash.o .libs/timehist.o .libs/tube.o .libs/winsock_event.o
> .libs/autotrust.o .libs/val_anchor.o .libs/validator.o
> .libs/val_kcache.o .libs/val_kentry.o .libs/val_neg.o
> .libs/val_nsec3.o .libs/val_nsec.o .libs/val_secalgo.o
> .libs/val_sigcrypt.o .libs/val_utils.o .libs/dns64.o .libs/cachedb.o
> .libs/authzone.o .libs/netevent.o .libs/listen_dnsport.o
> .libs/outside_network.o .libs/ub_event.o .libs/keyraw.o
> .libs/sbuffer.o .libs/wire2str.o .libs/parse.o .libs/parseutil.o
> .libs/rrdef.o .libs/str2wire.o .libs/reallocarray.o  -lmtmalloc
> -L/opt/local/lib -L/usr/lib/64 -lssl -lsocket -lnsl -lcrypto
> -R/opt/local/lib
> Undefined                       first referenced
>  symbol                             in file
> respip_inform_super                 .libs/fptr_wlist.o
> respip_inform_print                 .libs/worker.o
> respip_init                         .libs/fptr_wlist.o
> respip_get_mem                      .libs/fptr_wlist.o
> respip_clear                        .libs/fptr_wlist.o
> respip_set_delete                   .libs/daemon.o
> respip_set_create                   .libs/daemon.o
> respip_get_funcblock                .libs/modstack.o
> respip_set_is_empty                 .libs/daemon.o
> respip_merge_cname                  .libs/worker.o
> respip_operate                      .libs/fptr_wlist.o
> respip_deinit                       .libs/fptr_wlist.o
> respip_views_apply_cfg              .libs/daemon.o
> respip_rewrite_reply                .libs/worker.o
> respip_global_apply_cfg             .libs/daemon.o
> ld: fatal: symbol referencing errors. No output written to unbound
> collect2: error: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `unbound'
> 
> I'd appreciate any suggestions.
> 
> Thanks in advance--
> =Nadine=
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://unbound.nlnetlabs.nl/pipermail/unbound-users/attachments/20171204/5271dc81/attachment.sig>