[Dnsmasq-discuss] dnsmasq-2.21 compile error on FC3

Werner Hoelzl w.hoelzl@ieee.org
Sat, 26 Mar 2005 10:24:05 +0100


Hello,

I tried to build the RPM for Fedora Core 3 and got the following error:

$ rpmbuild -tb dnsmasq-2.21.tar.gz
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.16970
+ umask 022
+ cd /temp/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /temp/rpmbuild/BUILD
+ rm -rf dnsmasq-2.21
+ /usr/bin/gzip -dc /home/werner/prg/dnsmasq/dnsmasq-2.21.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd dnsmasq-2.21
++ /usr/bin/id -u
+ '[' 500 = 0 ']'
++ /usr/bin/id -u
+ '[' 500 = 0 ']'
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.74022
+ umask 022
+ cd /temp/rpmbuild/BUILD
+ cd dnsmasq-2.21
+ LANG=C
+ export LANG
+ unset DISPLAY
+ make
make[1]: Entering directory `/temp/rpmbuild/BUILD/dnsmasq-2.21/src'
cc -O2 -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -Wall -W -c cache.c
cc -O2 -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -Wall -W -c
rfc1035.c
cc -O2 -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -Wall -W -c util.c
cc -O2 -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -Wall -W -c
option.c
cc -O2 -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -Wall -W -c
forward.c
cc -O2 -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -Wall -W -c isc.c
cc -O2 -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -Wall -W -c
network.c
cc -O2 -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -Wall -W -c
dnsmasq.c
cc -O2 -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -Wall -W -c dhcp.c
cc -O2 -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -Wall -W -c lease.c
cc -O2 -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -Wall -W -c
rfc2131.c
cc -O2 -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -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 `/temp/rpmbuild/BUILD/dnsmasq-2.21/src'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.74022 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.74022 (%build)