Altera_Forum
Honored Contributor
16 years agoLatest version of DHCP-ISC
I have been using the DHCPD from dhcp-isc for a couple of years now (Version 2 Patchlevel 5, from 'uClinux-dist-20071107.tar.bz2') on a NIOS system. After increasing the network traffic, I discovered a small memory leak with this version. I have pulled down the latest uClinux distribution, but the newer dhcp-isc (Version 4.0.0, from 'nios2-linux-20090730.tar') will not compile.
Has anybody had success building the latest dhcp-isc for NIOS? Are there extra configuration steps required that were not needed for Version 2? I have included the error messages below. Any help is greatly appreciated. nios2-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I../includes -I../../common -I../../includes -I../.. -I.. -DLOCALSTATEDIR='"/var/lib"' -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/smcfadden/nios-test/nios2-linux/uClinux-dist -I/home/smcfadden/nios-test/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/smcfadden/nios-test/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/smcfadden/nios-test/nios2-linux/uClinux-dist -I/home/smcfadden/nios-test/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/smcfadden/nios-test/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -O2 -g -fno-builtin -c ../../common/discover.c ../../common/discover.c:734:21: ifaddrs.h: No such file or directory ../../common/discover.c: In function `next_iface': ../../common/discover.c:780: error: dereferencing pointer to incomplete type ../../common/discover.c:782: error: dereferencing pointer to incomplete type ../../common/discover.c:786: error: dereferencing pointer to incomplete type ../../common/discover.c:787: error: dereferencing pointer to incomplete type ../../common/discover.c:788: error: dereferencing pointer to incomplete type ../../common/discover.c:789: error: dereferencing pointer to incomplete type ../../common/discover.c:790: error: dereferencing pointer to incomplete type make[6]: *** [discover.o] Error 1