编译dhcp失败
发布时间:2010-12-20 16:58:38来源:红联作者:昊昊荡荡
[root@fedora14 dhcp-4.1-ESV]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for AIX... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for ranlib... ranlib
checking whether byte ordering is bigendian... no
checking for prefix by checking for dhcpd... no
checking for dhcpd.leases location.../var/db/dhcpd.leases
checking for dhcpd6.leases location.../var/db/dhcpd6.leases
checking for dhclient.leases location.../var/db/dhclient.leases
checking for dhclient6.leases location.../var/db/dhclient6.leases
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for u_int8_t... yes
checking for u_int16_t... yes
checking for u_int32_t... yes
checking for u_int64_t... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking linux/types.h usability... yes
checking linux/types.h presence... yes
checking for linux/types.h... yes
checking for linux/filter.h... yes
checking for struct lifnum... no
checking for struct if_laddrconf... no
checking for struct if_laddrreq... no
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking net/if_dl.h usability... no
checking net/if_dl.h presence... no
checking for net/if_dl.h... no
checking net/if6.h usability... no
checking net/if6.h presence... no
checking for net/if6.h... no
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for library containing socket... none required
checking for library containing inet_ntoa... none required
checking for library containing inet_aton... none required
checking for library containing regcomp... none required
checking for library containing if_nametoindex... none required
checking for /dev/random... yes
checking for struct sockaddr.sa_len... no
checking for struct iaddr *... yes
checking size of struct iaddr *... 4
checking for struct msghdr.msg_control... yes
checking for flexible array members... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating client/Makefile
config.status: creating common/Makefile
config.status: creating common/tests/Makefile
config.status: creating dhcpctl/Makefile
config.status: creating dst/Makefile
config.status: creating includes/Makefile
config.status: creating minires/Makefile
config.status: creating omapip/Makefile
config.status: creating relay/Makefile
config.status: creating server/Makefile
config.status: creating tests/Makefile
config.status: creating includes/config.h
config.status: includes/config.h is unchanged
config.status: executing depfiles commands
[root@fedora14 dhcp-4.1-ESV]# make
Making all in includes
make[1]: 进入目录“/home/wuhaoshu/dhcp-4.1-ESV/includes”
make all-am
make[2]: 进入目录“/home/wuhaoshu/dhcp-4.1-ESV/includes”
make[2]: 离开目录“/home/wuhaoshu/dhcp-4.1-ESV/includes”
make[1]: 离开目录“/home/wuhaoshu/dhcp-4.1-ESV/includes”
Making all in tests
make[1]: 进入目录“/home/wuhaoshu/dhcp-4.1-ESV/tests”
make[1]: 对“all”无需做任何事。
make[1]: 离开目录“/home/wuhaoshu/dhcp-4.1-ESV/tests”
Making all in common
make[1]: 进入目录“/home/wuhaoshu/dhcp-4.1-ESV/common”
Making all in tests
make[2]: 进入目录“/home/wuhaoshu/dhcp-4.1-ESV/common/tests”
make[2]: 对“all”无需做任何事。
make[2]: 离开目录“/home/wuhaoshu/dhcp-4.1-ESV/common/tests”
make[2]: 进入目录“/home/wuhaoshu/dhcp-4.1-ESV/common”
make[2]: 对“all-am”无需做任何事。
make[2]: 离开目录“/home/wuhaoshu/dhcp-4.1-ESV/common”
make[1]: 离开目录“/home/wuhaoshu/dhcp-4.1-ESV/common”
Making all in minires
make[1]: 进入目录“/home/wuhaoshu/dhcp-4.1-ESV/minires”
make[1]: 对“all”无需做任何事。
make[1]: 离开目录“/home/wuhaoshu/dhcp-4.1-ESV/minires”
Making all in dst
make[1]: 进入目录“/home/wuhaoshu/dhcp-4.1-ESV/dst”
make[1]: 对“all”无需做任何事。
make[1]: 离开目录“/home/wuhaoshu/dhcp-4.1-ESV/dst”
Making all in omapip
make[1]: 进入目录“/home/wuhaoshu/dhcp-4.1-ESV/omapip”
make[1]: 对“all”无需做任何事。
make[1]: 离开目录“/home/wuhaoshu/dhcp-4.1-ESV/omapip”
Making all in client
make[1]: 进入目录“/home/wuhaoshu/dhcp-4.1-ESV/client”
make[1]: 对“all”无需做任何事。
make[1]: 离开目录“/home/wuhaoshu/dhcp-4.1-ESV/client”
Making all in dhcpctl
make[1]: 进入目录“/home/wuhaoshu/dhcp-4.1-ESV/dhcpctl”
gcc -DHAVE_CONFIG_H -I. -I../includes -g -O2 -Wall -Werror -fno-strict-aliasing -MT omshell.o -MD -MP -MF .deps/omshell.Tpo -c -o omshell.o omshell.c
cc1: warnings being treated as errors
omshell.c: 在函数‘main’中:
omshell.c:193:5: 错误:case 值‘10’不在枚举类型‘enum dhcp_token’内
omshell.c:197:5: 错误:case 值‘63’不在枚举类型‘enum dhcp_token’内
make[1]: *** [omshell.o] 错误 1
make[1]: 离开目录“/home/wuhaoshu/dhcp-4.1-ESV/dhcpctl”
make: *** [all-recursive] 错误 1
[root@fedora14 dhcp-4.1-ESV]# pwd
/home/wuhaoshu/dhcp-4.1-ESV
[root@fedora14 dhcp-4.1-ESV]#