Cant compile DHCP (4.2.0/4.2.1) on Fedora with USE_SOCKECTS

SNAK dhcp at zirka2.vn.ua
Wed Aug 10 11:42:51 UTC 2011


On compilation DHCP with change on file site.h
#define USE_SOCKETS

compilation aborted :
gcc  -g -O2  -Wall -Werror -fno-strict-aliasing -I../bind/include   -o 
dhclient clparse.o dhclient.o dhc6.o ../common/libdhcp.a 
../omapip/libomapi.a ../bind/lib/libdns.a ../bind/lib/libisc.a
../common/libdhcp.a(socket.o): In function `if_register_socket':
/tmp/2/dhcp-4.2.1-P1/common/socket.c:286: undefined reference to 
`get_hw_addr'
../common/libdhcp.a(socket.o): In function `if_register6':
/tmp/2/dhcp-4.2.1-P1/common/socket.c:432: undefined reference to 
`get_hw_addr'

without this define dhcp compiled successfully.

First I try to rebuild (v.4.2.0) Fedora 14 rpm-package with the same 
result.

I suspected patches from Redhat, but downloaded the original dhcp from 
http://www.isc.org/software/dhcp/421-p1, on compilation gives the above 
result.








More information about the dhcp-users mailing list