fail to build dhcp 4.0.0

Eli Cohen eli at mellanox.co.il
Mon Feb 25 17:29:26 UTC 2008


Hi,

I am trying to build the dhcp server with "#define USE_SOCKETS"
uncommented and I get the following errors:

gcc  -I/usr/local/ofed/include   -L/usr/local/ofed/lib64
-L/usr/local/ofed/lib -o dhclient clparse.o dhclient.o
dhc6.o ../common/libdhcp.a ../minires/libres
.a ../omapip/libomapi.a ../dst/libdst.a -lcrypto
../common/libdhcp.a(socket.o): In function `if_reinitialize_send':
socket.c:(.text+0x0): multiple definition of `if_reinitialize_send'
../common/libdhcp.a(lpf.o):lpf.c:(.text+0x0): first defined here
../common/libdhcp.a(socket.o): In function `if_reinitialize_receive':


and also

bdhcp.a(lpf.o) to 308 in ../common/libdhcp.a(socket.o)
../common/libdhcp.a(lpf.o): In function `send_packet':
lpf.c:(.text+0x6f3): undefined reference to `send_fallback'
../common/libdhcp.a(lpf.o): In function `maybe_setup_fallback':
lpf.c:(.text+0xa6c): undefined reference to `if_register_fallback'
collect2: ld returned 1 exit status
make[1]: *** [dhclient] Error 1
make[1]: Leaving directory `/root/dhcp-4.0.0/client'
make: *** [all-recursive] Error 1


How can fix this? Is 4.0.0 the latest release?



More information about the dhcp-users mailing list