dhcp-4.2.4-P2 fails to build on Illumos

Andrew Evdokimov ae at elahi.ru
Sun Oct 21 18:23:09 UTC 2012

Hi all,

I'm stuck trying to build latest version on Illumos using SunStudio 12.3

Making all in omapip
make[1]: Entering directory `/src/smbsys/dhcp-4.2.4-P2/omapip'
source='test.c' object='test.o' libtool=no \
DEPDIR=.deps depmode=none /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I../includes   -m64 -fast -xvector=simd -I/opt/smbsys/include -I/opt/smbbld/include  -m64 -fast 
-xvector=simd -I/opt/smbsys/include -I/opt/smbbld/include -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__ 
-I../bind/include -c test.c
cc  -m64 -fast -xvector=simd -I/opt/smbsys/include -I/opt/smbbld/include -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 
-D__EXTENSIONS__  -I../bind/include  -m64 -fast -xvector=simd -L/opt/smbsys/lib -L/opt/smbbld/lib -o svtest test.o 
libomapi.a ../bind/lib/libdns.a ../bind/lib/libisc.a -lnsl -lsocket
Undefined                       first referenced
  symbol                             in file
isc__task_detach                    libomapi.a(isclib.o)
isc__task_create                    libomapi.a(isclib.o)
isc__app_ctxfinish                  libomapi.a(isclib.o)
isc__task_shutdown                  libomapi.a(isclib.o)
isc__socketmgr_destroy              libomapi.a(isclib.o)
isc__socket_fdwatchcreate           libomapi.a(dispatch.o)
isc__socket_fdwatchpoke             libomapi.a(buffer.o)
isc__socket_cancel                  libomapi.a(dispatch.o)
isc__appctx_create                  libomapi.a(isclib.o)
isc__socket_detach                  libomapi.a(dispatch.o)
isc__taskmgr_destroy                libomapi.a(isclib.o)
isc__mem_detach                     libomapi.a(isclib.o)
isc__mem_create                     libomapi.a(isclib.o)
isc__appctx_destroy                 libomapi.a(isclib.o)
isc__app_ctxstart                   libomapi.a(isclib.o)
isc__timermgr_destroy               libomapi.a(isclib.o)
ld: fatal: symbol referencing errors. No output written to svtest
make[1]: *** [svtest] Error 2
make[1]: Leaving directory `/src/smbsys/dhcp-4.2.4-P2/omapip'
make: *** [all-recursive] Error 1

It looks like the issue is related to order of object files in archives passed to linker but I cannot figure out 
'correct' order to fix this.

$ nm ../bind/lib/libisc.a | grep isc__task_detach
[8]     |                1504|                 330|FUNC |LOCL |0    |2      |isc__task_detach
$ cc -V
cc: Sun C 5.12 SunOS_i386 Patch 148918-01 2012/05/08
$ ld -V
ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1726

Can anyone help me, please?

Andrew Evdokimov
+7 910 450 83 33

More information about the dhcp-users mailing list