[Dnsmasq-discuss] Problem compiling 2.21 on Fedora

Matt "Cyber Dog" LaPlante webmaster@cyberdogtech.com
Fri, 25 Mar 2005 15:32:57 -0500


I'm running Fedora Core 3 as a custom firewall OS.  Currently it's running
DNSMasq 2.20.  I just downloaded 2.21 to update it, but I'm getting errors
when I run make install.

[root@barricade dnsmasq-2.21]# make install
make[1]: Entering directory `/usr/local/src/dnsmasq-2.21/src'
cc -O2  -Wall -W -c cache.c 
cc -O2  -Wall -W -c rfc1035.c 
cc -O2  -Wall -W -c util.c 
cc -O2  -Wall -W -c option.c 
cc -O2  -Wall -W -c forward.c 
cc -O2  -Wall -W -c isc.c 
cc -O2  -Wall -W -c network.c 
cc -O2  -Wall -W -c dnsmasq.c 
cc -O2  -Wall -W -c dhcp.c 
cc -O2  -Wall -W -c lease.c 
cc -O2  -Wall -W -c rfc2131.c 
cc -O2  -Wall -W -c netlink.c 
In file included from netlink.c:19:
/usr/include/linux/netlink.h:22: error: syntax error before "__u32"
/usr/include/linux/netlink.h:28: error: syntax error before "__u32"
/usr/include/linux/netlink.h:30: error: syntax error before "nlmsg_flags"
/usr/include/linux/netlink.h:31: error: syntax error before "nlmsg_seq"
/usr/include/linux/netlink.h:32: error: syntax error before "nlmsg_pid"
/usr/include/linux/netlink.h:82: error: field `msg' has incomplete type
In file included from netlink.c:20:
/usr/include/linux/rtnetlink.h:247: error: syntax error before "__u32"
/usr/include/linux/rtnetlink.h:249: error: syntax error before "rta_expires"
/usr/include/linux/rtnetlink.h:250: error: syntax error before "rta_error"
/usr/include/linux/rtnetlink.h:251: error: syntax error before "rta_used"
/usr/include/linux/rtnetlink.h:254: error: syntax error before "rta_id"
/usr/include/linux/rtnetlink.h:255: error: syntax error before "rta_ts"
/usr/include/linux/rtnetlink.h:256: error: syntax error before "rta_tsage"
/usr/include/linux/rtnetlink.h:325: error: syntax error before "__s32"
/usr/include/linux/rtnetlink.h:351: error: syntax error before "__u16"
/usr/include/linux/rtnetlink.h:353: error: syntax error before "ndm_type"
/usr/include/linux/rtnetlink.h:395: error: syntax error before "__u32"
/usr/include/linux/rtnetlink.h:397: error: syntax error before "ndm_updated"
/usr/include/linux/rtnetlink.h:398: error: syntax error before "ndm_refcnt"
/usr/include/linux/rtnetlink.h:494: error: syntax error before "__u32"
/usr/include/linux/rtnetlink.h:496: error: syntax error before "tcm_info"
netlink.c: In function `netlink_init':
netlink.c:24: error: storage size of 'addr' isn't known
netlink.c:24: warning: unused variable `addr'
netlink.c: In function `netlink_process':
netlink.c:48: error: storage size of 'addr' isn't known
netlink.c:55: error: field `nlh' has incomplete type
netlink.c:98: error: dereferencing pointer to incomplete type
netlink.c:98: error: invalid application of `sizeof' to incomplete type
`nlmsghdr' 
netlink.c:98: error: dereferencing pointer to incomplete type
netlink.c:101: error: dereferencing pointer to incomplete type
netlink.c:104: error: dereferencing pointer to incomplete type
netlink.c:107: error: dereferencing pointer to incomplete type
netlink.c:110: error: dereferencing pointer to incomplete type
netlink.c:112: error: invalid application of `sizeof' to incomplete type
`nlmsghdr' 
netlink.c:117: error: dereferencing pointer to incomplete type
netlink.c:117: error: invalid application of `sizeof' to incomplete type
`nlmsghdr' 
netlink.c:143: error: dereferencing pointer to incomplete type
netlink.c:143: error: dereferencing pointer to incomplete type
netlink.c:143: warning: left-hand operand of comma expression has no effect
netlink.c:48: warning: unused variable `addr'
make[1]: *** [netlink.o] Error 1
make[1]: Leaving directory `/usr/local/src/dnsmasq-2.21/src'
make: *** [all] Error 2
[root@barricade dnsmasq-2.21]#

Let me know if I can provide any further information.

-
Matt LaPlante