[Xorp-users] NetBSD scons breakage

Bruce Simpson bms at incunabulum.net
Wed Jul 15 16:45:05 PDT 2009


Hi all,

For all NetBSD users: here is the scons log output from an attempted 
build with the SCons-ified community branch.

This is on NetBSD 5.0 with gcc 4.1.3 out-of-the-box. Note that the SCons 
version in NetBSD pkgsrc is bitrotted, it will be necessary to manually 
install SCons for the time being on this platform.

Finding and fixing these issues shouldn't be too difficult.

%%%
scons: Reading SConscript files ...
Cross build is      False
Architecture is    i386
Operating System is netbsd
Release is          public17
Build directory is  /root/i386-netbsd-public17
Staging directory is  /root/i386-netbsd-public17/stage
Checking whether byte ordering is bigendian... (cached) no
Checking for C header file stdint.h... (cached) yes
Checking for C header file inttypes.h... (cached) yes
Checking for C type uint64_t... (cached) yes
Checking for C header file stddef.h... (cached) yes
Checking for C header file stdarg.h... (cached) yes
Checking for C header file stdlib.h... (cached) yes
Checking for C header file strings.h... (cached) yes
Checking for C header file string.h... (cached) yes
Checking for C header file signal.h... (cached) yes
Checking for C header file math.h... (cached) yes
Checking for C header file memory.h... (cached) yes
Checking for C function strftime()... (cached) yes
Checking for C function strlcpy()... (cached) yes
Checking for C function strlcat()... (cached) yes
Checking whether va_copy is declared... (cached) yes
Checking for C header file fcntl.h... (cached) yes
Checking for C header file getopt.h... (cached) yes
Checking for C header file glob.h... (cached) yes
Checking for C header file grp.h... (cached) yes
Checking for C header file pthread.h... (cached) yes
Checking for C header file pwd.h... (cached) yes
Checking for C header file mqueue.h... (cached) yes
Checking for C header file regex.h... (cached) yes
Checking for C header file syslog.h... (cached) yes
Checking for C header file termios.h... (cached) yes
Checking for C header file time.h... (cached) yes
Checking for C header file unistd.h... (cached) yes
Checking for C header file vfork.h... (cached) no
Checking for C function readv()... (cached) yes
Checking for C function strerror()... (cached) yes
Checking for C function syslog()... (cached) yes
Checking for C function uname()... (cached) yes
Checking for C function writev()... (cached) yes
Checking for C library xnet... (cached) no
Checking for C function recvmsg()... (cached) yes
Checking for C function sendmsg()... (cached) yes
Checking for C library rt... (cached) yes
Checking for C function clock_gettime()... (cached) yes
Checking whether CLOCK_MONOTONIC is declared... (cached) yes
Checking for C type struct timespec... (cached) yes
Checking for C header file paths.h... (cached) yes
Checking for C header file sysexits.h... (cached) yes
Checking for C function realpath()... (cached) yes
Checking for C function strptime()... (cached) yes
Checking for C function sysctl()... (cached) yes
Checking for C header file netdb.h... (cached) yes
Checking for C library resolv... (cached) yes
Checking for C function hstrerror()... (cached) yes
Checking for C header file sys/cdefs.h... (cached) yes
Checking for C header file sys/param.h... (cached) yes
Checking for C header file sys/types.h... (cached) yes
Checking for C header file sys/utsname.h... (cached) yes
Checking for C header file sys/errno.h... (cached) yes
Checking for C header file sys/wait.h... (cached) yes
Checking for C header file sys/signal.h... (cached) no
Checking for C header file sys/time.h... (cached) yes
Checking for C header file sys/uio.h... (cached) yes
Checking for C header file sys/ioctl.h... (cached) yes
Checking for C header file sys/select.h... (cached) yes
Checking for C header file sys/socket.h... (cached) yes
Checking for C header file sys/sockio.h... (cached) yes
Checking for C header file sys/un.h... (cached) yes
Checking for C header file sys/mount.h... (cached) yes
Checking for C header file sys/resource.h... (cached) yes
Checking for C header file sys/stat.h... (cached) yes
Checking for C header file sys/syslog.h... (cached) yes
Checking for C header file sys/linker.h... (cached) no
Checking for C header file sys/sysctl.h... (cached) yes
Checking for C header file linux/types.h... (cached) no
Checking for C header file linux/sockios.h... (cached) no
Checking for C type struct iovec... (cached) yes
Checking for C type struct msghdr... (cached) yes
Checking for C type struct cmsghdr... (cached) yes
Checking whether AF_INET is declared... (cached) yes
Checking whether AF_INET6 is declared... (cached) yes
Checking whether SOCK_STREAM is declared... (cached) yes
Checking whether SOCK_DGRAM is declared... (cached) yes
Checking whether SOCK_RAW is declared... (cached) yes
Checking whether C type struct msghdr has member msg_control... (cached) yes
Checking whether C type struct msghdr has member msg_iov... (cached) yes
Checking whether C type struct msghdr has member msg_name... (cached) yes
Checking whether C type struct msghdr has member msg_namelen... (cached) yes
Checking whether C type struct sockaddr has member sa_len... (cached) yes
Checking whether C type struct sockaddr_storage has member ss_len... 
(cached) yes
Checking whether C type struct sockaddr_un has member sun_len... 
(cached) yes
Checking for C header file net/ethernet.h... (cached) no
Checking for C header file sys/ethernet.h... (cached) no
Checking for C header file net/if.h... (cached) yes
Checking for C header file net/if_arp.h... (cached) yes
Checking for C header file net/if_dl.h... (cached) yes
Checking for C header file net/if_ether.h... (cached) no
Checking for C header file net/if_media.h... (cached) yes
Checking for C header file net/if_var.h... (cached) no
Checking for C header file net/if_types.h... (cached) yes
Checking for C header file net/route.h... (cached) yes
Checking for C header file ifaddrs.h... (cached) yes
Checking for C header file stropts.h... (cached) no
Checking for C header file linux/ethtool.h... (cached) no
Checking for C header file linux/if_tun.h... (cached) no
Checking for C header file linux/netlink.h... (cached) no
Checking for C header file linux/rtnetlink.h... (cached) no
Checking whether C type struct sockaddr_dl has member sdl_len... 
(cached) yes
Checking whether C type struct ifreq has member ifr_hwaddr... (cached) no
Checking whether C type struct ifreq has member ifr_ifindex... (cached) no
Checking for C function ether_aton()... (cached) yes
Checking for C function ether_aton_r()... (cached) no
Checking for C function ether_ntoa()... (cached) yes
Checking for C function ether_ntoa_r()... (cached) no
Checking for C function getaddrinfo()... (cached) yes
Checking for C function getifaddrs()... (cached) yes
Checking for C function getnameinfo()... (cached) yes
Checking for C function if_indextoname()... (cached) yes
Checking for C function if_nametoindex()... (cached) yes
Checking for C function inet_ntop()... (cached) yes
Checking for C function inet_pton()... (cached) yes
Checking for C type struct ether_addr... (cached) no
Checking whether system has sysctl NET_RT_DUMP... (cached) yes
Checking whether system has sysctl NET_RT_IFLIST... (cached) yes
Checking whether SIOCGIFCONF is declared... (cached) yes
Checking for C header file netinet/in.h... (cached) yes
Checking for C header file netinet/in_systm.h... (cached) yes
Checking for C header file netinet/in_var.h... (cached) no
Checking for C header file netinet/ip.h... (cached) no
Checking for C header file netinet/tcp.h... (cached) yes
Checking for C header file netinet/igmp.h... (cached) yes
Checking for C header file netinet/ether.h... (cached) no
Checking for C header file netinet/if_ether.h... (cached) no
Checking for C header file inet/nd.h... (cached) no
Checking for C header file inet/ip.h... (cached) no
Checking for C header file arpa/inet.h... (cached) yes
Checking for C header file arpa/telnet.h... (cached) yes
Checking whether C type struct sockaddr_in has member sin_len... 
(cached) yes
Checking whether IP_MULTICAST_IF is declared... (cached) yes
Checking whether IP_MULTICAST_TTL is declared... (cached) yes
Checking whether IP_MULTICAST_LOOP is declared... (cached) yes
Checking whether IP_ADD_MEMBERSHIP is declared... (cached) yes
Checking whether IP_DROP_MEMBERSHIP is declared... (cached) yes
Checking whether system has sysctl IPCTL_FORWARDING... (cached) yes
Checking whether __KAME__ is declared... (cached) yes
Checking whether inet6_opt_init is declared... (cached) yes
Checking whether C type struct sockaddr_in6 has member sin6_len... 
(cached) yes
Checking whether C type struct sockaddr_in6 has member sin6_scope_id... 
(cached) yes
Checking for C header file netinet/ip6.h... (cached) yes
Checking for C header file netinet/icmp6.h... (cached) yes
Checking for C type struct mld_hdr... (cached) yes
Checking for C header file netinet6/ip6_var.h... (cached) yes
Checking for C header file netinet6/in6_var.h... (cached) no
Checking for C header file netinet6/nd6.h... (cached) no
Checking for C++ header file netinet6/nd6.h... (cached) no
Checking whether system has sysctl IPV6CTL_FORWARDING... (cached) yes
Checking whether system has sysctl IPV6CTL_ACCEPT_RTADV... (cached) yes
Checking for C header file netinet/ip_mroute.h... (cached) no
Checking for C header file net/ip_mroute/ip_mroute.h... (cached) no
Checking for C header file linux/mroute.h... (cached) no
Checking for C type struct mfcctl2... (cached) no
Checking whether C type struct mfcctl2 has member mfcc_flags... (cached) no
Checking whether C type struct mfcctl2 has member mfcc_rp... (cached) no
Checking for C header file netinet/pim.h... (cached) yes
Checking for C type struct pim... (cached) yes
Checking whether C type struct pim has member pim_vt... (cached) no
Checking for C header file netinet6/ip6_mroute.h... (cached) no
Checking for C header file linux/mroute6.h... (cached) no
Checking for C type struct mf6cctl2... (cached) no
Checking whether C type struct mf6cctl2 has member mf6cc_flags... 
(cached) no
Checking whether C type struct mf6cctl2 has member mf6cc_rp... (cached) no
Checking for C header file netinet/ip_compat.h... (cached) yes
Checking for C header file netinet/ip_fil.h... (cached) no
Checking for C header file netinet/ip_fw.h... (cached) no
Checking for C header file net/pfvar.h... (cached) no
Checking for C++ header file linux/netfilter_ipv4/ip_tables.h... (cached) no
Checking for C++ header file linux/netfilter_ipv6/ip6_tables.h... 
(cached) no
Checking for C header file net/if_vlanvar.h... (cached) no
Checking for C header file net/if_vlan_var.h... (cached) no
Checking for C header file net/vlan/if_vlan_var.h... (cached) no
Checking for C header file linux/if_vlan.h... (cached) no
Checking for C header file pcre.h... (cached) no
Checking for C header file pcreposix.h... (cached) no
Checking for C library pcre... (cached) no
Checking for C library pcreposix... (cached) no
Checking for C header file openssl/md5.h... (cached) yes
Checking for C library crypto... (cached) yes
Checking for C function MD5_Init()... (cached) yes
Checking for C header file dlfcn.h... (cached) yes
Checking for C library dl... (cached) no
Checking for C function dlopen()... (cached) yes
Checking for C header file pcap.h... (cached) yes
Checking for C library pcap... (cached) yes
Checking for C function pcap_sendpacket()... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o /root/i386-netbsd-public17/libxipc/sockutil.os -c -g -Werror -W 
-Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align 
-Woverloaded-virtual -ftemplate-depth-25 -fPIC -D_FORTIFY_SOURCE=0 
-I/usr/sfw/include -I/opt/local/include -I/usr/local/include -I. 
-I/root/i386-netbsd-public17 /root/i386-netbsd-public17/libxipc/sockutil.cc
cc1plus: warnings being treated as errors
/root/i386-netbsd-public17/libxipc/sockutil.cc: In function 'void 
get_active_ipv4_addrs(std::vector<IPv4, std::allocator<IPv4> >&)':
/root/i386-netbsd-public17/libxipc/sockutil.cc:308: warning: deleting 
'void*' is undefined
/root/i386-netbsd-public17/libxipc/sockutil.cc:314: warning: deleting 
'void*' is undefined
/root/i386-netbsd-public17/libxipc/sockutil.cc:331: warning: deleting 
'void*' is undefined
scons: *** [/root/i386-netbsd-public17/libxipc/sockutil.os] Error 1
g++ -o /root/i386-netbsd-public17/libxorp/mac.os -c -g -Werror -W -Wall 
-Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align 
-Woverloaded-virtual -ftemplate-depth-25 -fPIC -D_FORTIFY_SOURCE=0 
-I/usr/sfw/include -I/opt/local/include -I/usr/local/include -I. 
/root/i386-netbsd-public17/libxorp/mac.cc
/root/i386-netbsd-public17/libxorp/mac.cc: In member function 'size_t 
Mac::copy_in(const char*)':
/root/i386-netbsd-public17/libxorp/mac.cc:129: error: 'ether_aton' was 
not declared in this scope
/root/i386-netbsd-public17/libxorp/mac.cc: In member function 
'std::string Mac::str() const':
/root/i386-netbsd-public17/libxorp/mac.cc:176: error: 'ether_ntoa' was 
not declared in this scope
scons: *** [/root/i386-netbsd-public17/libxorp/mac.os] Error 1
scons: `/root/i386-netbsd-public17/libfeaclient/libfeaclient.so' is up 
to date.
g++ -o 
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_get_ioctl.os 
-c -g -Werror -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith 
-Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -fPIC 
-D_FORTIFY_SOURCE=0 -I/usr/sfw/include -I/opt/local/include 
-I/usr/local/include -I. -I/root/i386-netbsd-public17 
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_get_ioctl.cc
cc1plus: warnings being treated as errors
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_get_ioctl.cc: 
In member function 'int IfConfigGetIoctl::read_config(IfTree&)':
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_get_ioctl.cc:162: 
warning: deleting 'void*' is undefined
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_get_ioctl.cc:176: 
warning: deleting 'void*' is undefined
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_get_ioctl.cc: 
In function 'bool ioctl_read_ifconf(int, ifconf*)':
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_get_ioctl.cc:212: 
warning: deleting 'void*' is undefined
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_get_ioctl.cc:218: 
warning: deleting 'void*' is undefined
scons: *** 
[/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_get_ioctl.os] 
Error 1
g++ -o 
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_set_ioctl.os 
-c -g -Werror -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith 
-Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -fPIC 
-D_FORTIFY_SOURCE=0 -I/usr/sfw/include -I/opt/local/include 
-I/usr/local/include -I. -I/root/i386-netbsd-public17 
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_set_ioctl.cc
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_set_ioctl.cc: 
In member function 'int IfConfigSetIoctl::add_addr(const std::string&, 
const std::string&, __uint32_t, const IPv4&, __uint32_t, bool, const 
IPv4&, bool, const IPv4&, std::string&)':
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_set_ioctl.cc:733: 
error: aggregate 'in_aliasreq ifra' has incomplete type and cannot be 
defined
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_set_ioctl.cc: 
In member function 'int IfConfigSetIoctl::add_addr(const std::string&, 
const std::string&, __uint32_t, const IPv6&, __uint32_t, bool, const 
IPv6&, std::string&)':
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_set_ioctl.cc:963: 
error: aggregate 'in6_ifreq in6_ifreq' has incomplete type and cannot be 
defined
scons: *** 
[/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_set_ioctl.os] 
Error 1
g++ -o 
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_vlan_get_bsd.os 
-c -g -Werror -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith 
-Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -fPIC 
-D_FORTIFY_SOURCE=0 -I/usr/sfw/include -I/opt/local/include 
-I/usr/local/include -I. -I/root/i386-netbsd-public17 
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_vlan_get_bsd.cc
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_vlan_get_bsd.cc: 
In member function 'int IfConfigVlanGetBsd::read_config(IfTree&)':
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_vlan_get_bsd.cc:157: 
error: aggregate 'vlanreq vlanreq' has incomplete type and cannot be defined
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_vlan_get_bsd.cc:165: 
error: 'SIOCGETVLAN' was not declared in this scope
scons: *** 
[/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_vlan_get_bsd.os] 
Error 1
g++ -o 
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_vlan_set_bsd.os 
-c -g -Werror -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith 
-Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -fPIC 
-D_FORTIFY_SOURCE=0 -I/usr/sfw/include -I/opt/local/include 
-I/usr/local/include -I. -I/root/i386-netbsd-public17 
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_vlan_set_bsd.cc
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_vlan_set_bsd.cc: 
In member function 'int IfConfigVlanSetBsd::add_vlan(const std::string&, 
const std::string&, __uint16_t, std::string&)':
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_vlan_set_bsd.cc:205: 
error: aggregate 'vlanreq vlanreq' has incomplete type and cannot be defined
/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_vlan_set_bsd.cc:299: 
error: 'SIOCSETVLAN' was not declared in this scope
scons: *** 
[/root/i386-netbsd-public17/fea/data_plane/ifconfig/ifconfig_vlan_set_bsd.os] 
Error 1
scons: 
`/root/i386-netbsd-public17/fea/data_plane/firewall/libxorp_firewall.so' 
is up to date.
scons: 
`/root/i386-netbsd-public17/fea/data_plane/fibconfig/libxorp_fibconfig.so' 
is up to date.
g++ -o /root/i386-netbsd-public17/fea/data_plane/io/io_ip_socket.os -c 
-g -Werror -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith 
-Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -fPIC 
-D_FORTIFY_SOURCE=0 -I/usr/sfw/include -I/opt/local/include 
-I/usr/local/include -I. -I/root/i386-netbsd-public17 
/root/i386-netbsd-public17/fea/data_plane/io/io_ip_socket.cc
/root/i386-netbsd-public17/fea/data_plane/io/io_ip_socket.cc: In member 
function 'virtual int IoIpSocket::send_packet(const std::string&, const 
std::string&, const IPvX&, const IPvX&, __int32_t, __int32_t, bool, 
bool, const std::vector<unsigned char, std::allocator<unsigned char> >&, 
const std::vector<std::vector<unsigned char, std::allocator<unsigned 
char> >, std::allocator<std::vector<unsigned char, 
std::allocator<unsigned char> > > >&, const std::vector<unsigned char, 
std::allocator<unsigned char> >&, std::string&)':
/root/i386-netbsd-public17/fea/data_plane/io/io_ip_socket.cc:2115: 
error: 'IPVERSION' was not declared in this scope
scons: *** 
[/root/i386-netbsd-public17/fea/data_plane/io/io_ip_socket.os] Error 1
g++ -o 
/root/i386-netbsd-public17/fea/data_plane/control_socket/click_socket.os 
-c -g -Werror -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith 
-Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -fPIC 
-D_FORTIFY_SOURCE=0 -I/usr/sfw/include -I/opt/local/include 
-I/usr/local/include -I. -I/root/i386-netbsd-public17 
/root/i386-netbsd-public17/fea/data_plane/control_socket/click_socket.cc
/usr/include/sys/mount.h: In member function 'int 
ClickSocket::mount_click_file_system(std::string&)':
/usr/include/sys/mount.h:436: error: too few arguments to function 'int 
mount(const char*, const char*, int, void*, size_t)'
/root/i386-netbsd-public17/fea/data_plane/control_socket/click_socket.cc:741: 
error: at this point in file
scons: *** 
[/root/i386-netbsd-public17/fea/data_plane/control_socket/click_socket.os] 
Error 1
scons: 
`/root/i386-netbsd-public17/fea/data_plane/managers/libxorp_data_plane_managers.so' 
is up to date.
scons: `/root/i386-netbsd-public17/mrt/libmrt.so' is up to date.
g++ -o /root/i386-netbsd-public17/fea/fea_node.os -c -g -Werror -W -Wall 
-Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align 
-Woverloaded-virtual -ftemplate-depth-25 -fPIC -D_FORTIFY_SOURCE=0 
-I/usr/sfw/include -I/opt/local/include -I/usr/local/include -I. 
-I/root/i386-netbsd-public17 /root/i386-netbsd-public17/fea/fea_node.cc
/root/i386-netbsd-public17/fea/fea_node.cc:280:2: error: #error "No data 
plane manager to load: unknown system"
scons: *** [/root/i386-netbsd-public17/fea/fea_node.os] Error 1
g++ -o /root/i386-netbsd-public17/ospf/peer.os -c -g -Werror -W -Wall 
-Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align 
-Woverloaded-virtual -ftemplate-depth-25 -fPIC -D_FORTIFY_SOURCE=0 
-I/usr/sfw/include -I/opt/local/include -I/usr/local/include -I. 
-I/root/i386-netbsd-public17 /root/i386-netbsd-public17/ospf/peer.cc
/root/i386-netbsd-public17/ospf/peer.cc: In member function '__uint16_t 
PeerOut<A>::get_frame_size() const [with A = IPv4]':
/root/i386-netbsd-public17/ospf/peer.cc:5500:   instantiated from here
/root/i386-netbsd-public17/ospf/peer.cc:172: error: invalid application 
of 'sizeof' to incomplete type 'ip'
/root/i386-netbsd-public17/ospf/peer.cc:173: error: invalid application 
of 'sizeof' to incomplete type 'ip'
/root/i386-netbsd-public17/ospf/peer.cc:173: error: invalid application 
of 'sizeof' to incomplete type 'ip'
/root/i386-netbsd-public17/ospf/peer.cc:173: error: duplicate case value
/root/i386-netbsd-public17/ospf/peer.cc:173: error: previously used here
/root/i386-netbsd-public17/ospf/peer.cc: In member function '__uint16_t 
PeerOut<A>::get_frame_size() const [with A = IPv6]':
/root/i386-netbsd-public17/ospf/peer.cc:5501:   instantiated from here
/root/i386-netbsd-public17/ospf/peer.cc:172: error: invalid application 
of 'sizeof' to incomplete type 'ip'
/root/i386-netbsd-public17/ospf/peer.cc:173: error: invalid application 
of 'sizeof' to incomplete type 'ip'
/root/i386-netbsd-public17/ospf/peer.cc:173: error: invalid application 
of 'sizeof' to incomplete type 'ip'
/root/i386-netbsd-public17/ospf/peer.cc:173: error: duplicate case value
/root/i386-netbsd-public17/ospf/peer.cc:173: error: previously used here
scons: *** [/root/i386-netbsd-public17/ospf/peer.os] Error 1
g++ -o /root/i386-netbsd-public17/pim/pim_proto_join_prune_message.os -c 
-g -Werror -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith 
-Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -fPIC 
-D_FORTIFY_SOURCE=0 -I/usr/sfw/include -I/opt/local/include 
-I/usr/local/include -I. -I/root/i386-netbsd-public17 
/root/i386-netbsd-public17/pim/pim_proto_join_prune_message.cc
/root/i386-netbsd-public17/pim/pim_proto_join_prune_message.cc: In 
member function 'int PimJpHeader::network_commit(PimVif*, const IPvX&, 
std::string&)':
/root/i386-netbsd-public17/pim/pim_proto_join_prune_message.cc:715: 
error: 'IP_MAXPACKET' was not declared in this scope
/root/i386-netbsd-public17/pim/pim_proto_join_prune_message.cc:715: 
error: invalid application of 'sizeof' to incomplete type 'ip'
scons: *** 
[/root/i386-netbsd-public17/pim/pim_proto_join_prune_message.os] Error 1
g++ -o /root/i386-netbsd-public17/pim/pim_vif.os -c -g -Werror -W -Wall 
-Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align 
-Woverloaded-virtual -ftemplate-depth-25 -fPIC -D_FORTIFY_SOURCE=0 
-I/usr/sfw/include -I/opt/local/include -I/usr/local/include -I. 
-I/root/i386-netbsd-public17 /root/i386-netbsd-public17/pim/pim_vif.cc
/root/i386-netbsd-public17/pim/pim_vif.cc: In member function 'int 
PimVif::pim_send(const IPvX&, const IPvX&, __uint8_t, buffer_t*, 
std::string&)':
/root/i386-netbsd-public17/pim/pim_vif.cc:653: error: aggregate 'ip 
ip4_header' has incomplete type and cannot be defined
scons: *** [/root/i386-netbsd-public17/pim/pim_vif.os] Error 1
scons: `/root/i386-netbsd-public17/policy/libpolicy.so' is up to date.
scons: `/root/i386-netbsd-public17/bgp/libbgp.a' is up to date.
scons: done building targets (errors occurred during build).
%%%

thanks,
BMS



More information about the Xorp-users mailing list