Problem with dhcpctl.
Jeremy C. Reed
Jeremy_Reed at isc.org
Tue Apr 21 15:00:14 UTC 2009
> [phil at krum tmp]$ gcc -L/usr/lib64 -o"DhcpCtl" dhcpctl_test.o -ldhcpctl
> -ldst -lomapi
> /usr/lib64/libomapi.a(connection.o): In function
> (.text+0x167): undefined reference to `dst_sig_size'
> /usr/lib64/libomapi.a(connection.o): In function `make_dst_key':
Try changing the order so the libdst library is last.
"... the linker searches and processes libraries and object files in the
order they are specified." from gcc man page and the ld man page further
clarifies: "Normally, an archive is searched only once in the order that
it is specified on the command line. If a symbol in that archive is
needed to resolve an undefined symbol referred to by an object in an
archive that appears later on the command line, the linker would not be
able to resolve that reference."
More information about the dhcp-users