[Xorp-hackers] 1.8.6 patches broke mingw cross-compile.

Igor Maravić igorm at etf.rs
Tue Feb 21 10:36:47 PST 2012


Yes it's one of my patches. Sorry about that...
I'm sending you the fix.

2012/2/21 Ben Greear <greearb at candelatech.com>:
> Igor:
>
> I see this in my automated build when packaging up the mingw
> (windows cross-compile) tree.   I haven't looked to see what
> causes this, but it seems to be one of your patches I applied
> recently...
>
> Building...
> scons: Reading SConscript files ...
> Mkdir("/home/greearb/git/xorp.ct.github/xorp/obj/i386-pc-mingw32")
> Build System Type:  i386-pc-mingw32
> Host System Type:   i386-pc-mingw32
> Source path:        /home/greearb/git/xorp.ct.github/xorp
> Build path:
> /home/greearb/git/xorp.ct.github/xorp/obj/i386-pc-mingw32
> Install prefix:     /usr/local/xorp
> CC:                i686-pc-mingw32-gcc
> CXX:               i686-pc-mingw32-g++
> RANLIB:            i686-pc-mingw32-ranlib
> AR:                i686-pc-mingw32-ar
> LD:                i686-pc-mingw32-ld
> STRIP:             i686-pc-mingw32-strip
> Strip binaries:    True
> Optimize code:     full
> Profile code:      no
> Default XRL transport: local
> Shared libraries:  False
> Use rtld ORIGIN:   True
> Ignore check errors:  False
> Debug symbols:     full
> Debug STL:         False
> Debug messages:    False
> Debug function names:  False
> Debug callbacks:   False
> Debug XRL syntax:  False
> Enable OLSR:       True
> Enable OSPF:       True
> Enable RIP:        True
> Enable VRRP:       True
> Enable xorpsh      True
> Enable Test Programs:  False
> Enable CLICK:      False
> Enable FEA Dummy:  True
> Enable async method impls:  False
> Enable BGP:        True
> Enable BuildInfo:  True
> Try Enable BOOST:  False
> Try Enable uSTL :  False
> Disable IPv6:      False
> Disable libtecla:  False
> Disable Firewall:  False
> Disable Profile :  False
> Disable warning logs :  False
> Disable error logs :  False
> Disable trace logs :  False
> Disable fatal logs :  False
> Disable info logs :  False
> Disable assert logs :  False
> Disable other logs :  False
> Not re-creating build_info.cc file.
> /home/greearb/git/xorp.ct.github/xorp
> Checking for C header file endian.h... (cached) no
> Checking whether byte ordering is bigendian... (cached) no
> OK:  c compiler appears functional.
> OK:  C++ compiler appears functional.
> Checking for C header file iphlpapi.h... (cached) yes
> Checking for C header file routprot.h... (cached) yes
> Checking for C header file stdint.h... (cached) yes
> Checking for C header file inttypes.h... (cached) yes
> Checking for C type int8_t... (cached) yes
> Checking for C type uint8_t... (cached) yes
> Checking for C type int16_t... (cached) yes
> Checking for C type uint16_t... (cached) yes
> Checking for C type int32_t... (cached) yes
> Checking for C type uint32_t... (cached) yes
> Checking for C type int64_t... (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) no
> Checking for C function strlcat()... (cached) no
> Checking whether va_copy is declared... (cached) yes
> Checking for C header file sys/types.h... (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) no
> Checking for C header file grp.h... (cached) no
> Checking for C header file pthread.h... (cached) yes
> Checking for C header file pwd.h... (cached) no
> Checking for C header file mqueue.h... (cached) no
> Checking for C header file regex.h... (cached) yes
> Checking for C header file syslog.h... (cached) no
> Checking for C header file termios.h... (cached) no
> 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) no
> Checking for C function strerror()... (cached) yes
> Checking for C function syslog()... (cached) no
> Checking for C function uname()... (cached) no
> Checking for C function writev()... (cached) no
> Checking for C library xnet... (cached) no
> Checking for C function recvmsg()... (cached) no
> Checking for C function sendmsg()... (cached) no
> Checking for C library rt... (cached) no
> Checking for C function clock_gettime()... (cached) no
> Checking whether CLOCK_MONOTONIC is declared... (cached) no
> Checking whether CLOCK_MONOTONIC_FAST is declared... (cached) no
> Checking for C type struct timespec... (cached) no
> Checking for C header file paths.h... (cached) no
> Checking for C header file sysexits.h... (cached) no
> Checking for C function realpath()... (cached) no
> Checking for C function strptime()... (cached) no
> Checking for C function sysctl()... (cached) no
> Checking for C header file netdb.h... (cached) no
> Checking for C library resolv... (cached) no
> Checking for C function hstrerror()... (cached) no
> Checking for C header file sys/cdefs.h... (cached) no
> Checking for C header file sys/param.h... (cached) yes
> Checking for C header file sys/utsname.h... (cached) no
> Checking for C header file sys/errno.h... (cached) no
> Checking for C header file sys/wait.h... (cached) no
> 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) no
> Checking for C header file sys/ioctl.h... (cached) no
> Checking for C header file sys/select.h... (cached) no
> Checking for C header file sys/socket.h... (cached) no
> Checking for C header file sys/sockio.h... (cached) no
> Checking for C header file sys/un.h... (cached) no
> Checking for C header file sys/mount.h... (cached) no
> Checking for C header file sys/resource.h... (cached) no
> Checking for C header file sys/stat.h... (cached) yes
> Checking for C header file sys/syslog.h... (cached) no
> Checking for C header file sys/linker.h... (cached) no
> Checking for C header file sys/sysctl.h... (cached) no
> 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) no
> Checking for C type struct msghdr... (cached) no
> Checking for C type struct cmsghdr... (cached) no
> 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 sockaddr has member sa_len... (cached) no
> Checking whether C type struct sockaddr_storage has member ss_len...
> (cached) no
> Checking whether C type struct sockaddr_un has member sun_len... (cached) no
> 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) no
> Checking for C header file net/if_arp.h... (cached) no
> Checking for C header file net/if_dl.h... (cached) no
> Checking for C header file net/if_ether.h... (cached) no
> Checking for C header file net/if_media.h... (cached) no
> Checking for C header file net/if_var.h... (cached) no
> Checking for C header file net/if_types.h... (cached) no
> Checking for C header file net/route.h... (cached) no
> Checking for C header file ifaddrs.h... (cached) no
> 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) no
> 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) no
> Checking for C function ether_aton_r()... (cached) no
> Checking for C function ether_ntoa()... (cached) no
> Checking for C function ether_ntoa_r()... (cached) no
> Checking for C function getaddrinfo()... (cached) no
> Checking for C function getifaddrs()... (cached) no
> Checking for C function getnameinfo()... (cached) no
> Checking for C function if_indextoname()... (cached) no
> Checking for C function if_nametoindex()... (cached) no
> Checking for C function inet_ntop()... (cached) no
> Checking for C function inet_pton()... (cached) no
> Checking for C type struct ether_addr... (cached) no
> Checking whether system has sysctl NET_RT_DUMP... (cached) no
> Checking whether system has sysctl NET_RT_IFLIST... (cached) no
> Checking whether SIOCGIFCONF is declared... (cached) no
> Checking for C header file netinet/in.h... (cached) no
> Checking for C header file netinet/in_systm.h... (cached) no
> 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) no
> Checking for C header file netinet/igmp.h... (cached) no
> 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) no
> Checking for C header file arpa/telnet.h... (cached) no
> Checking whether C type struct sockaddr_in has member sin_len... (cached) no
> Checking whether IP_MULTICAST_IF is declared... (cached) no
> Checking whether system has sysctl IPCTL_FORWARDING... (cached) no
> Checking whether __KAME__ is declared... (cached) no
> Checking whether inet6_opt_init is declared... (cached) no
> Checking whether C type struct sockaddr_in6 has member sin6_len... (cached)
> no
> Checking whether C type struct sockaddr_in6 has member sin6_scope_id...
> (cached) no
> Checking for C header file netinet/ip6.h... (cached) no
> Checking for C header file netinet/icmp6.h... (cached) no
> Checking for C type struct mld_hdr... (cached) no
> 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) no
> Checking whether system has sysctl IPV6CTL_ACCEPT_RTADV... (cached) no
> Checking whether IPV6_MULTICAST_IF is declared... (cached) no
> Checking whether fpclassify is declared... (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 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) no
> Checking for C type struct pim... (cached) no
> 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 whether inet6_option_space is declared... (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 whether C type struct mif6ctl has member vifc_threshold... (cached)
> no
> Checking for C header file netinet/ip_compat.h... (cached) no
> 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) no
> Checking for C library dl... (cached) no
> Checking for C function dlopen()... (cached) no
> Checking for C header file pcap.h... (cached) no
> Checking for C library pcap... (cached) no
> Checking for C function pcap_sendpacket()... (cached) no
>
> WARNING:  Libpcap was not detected.
>  VRRP and other protocols may have issues.
>  On Fedora/RedHat:  yum install libpcap-devel
>  On Ubuntu:  apt-get install libpcap-dev
>  After install, rm -fr xorp/obj build directory to
>  clear the configure cache before re-building.
>
> Checking for C header file pcap-bpf.h... (cached) no
>
> WARNING: PCAP-BPF is not supported on this system,
>  socket filtering will not work.
>  This is not a real problem, just a small performance
>  loss when using multiple virtual routers on the same system.
>  On Debian:  apt-get install libpcap-dev
>  On Older Ubuntu:  apt-get install pcap-dev
>
>  On Newer Ubuntu:  apt-get install libpcap-dev
>
> Checking for C library curses... (cached) no
> Checking for C library pdcurses... (cached) yes
> Checking for C library ncurses... (cached) no
> Detected libraries: crypto pdcurses
> WARNING:  Detected funky platform, will not enable -Werror compile option:
>  i386
> NameError: name 'xorp_alias_subdir' is not defined:
>  File "/home/greearb/git/xorp.ct.github/xorp/SConstruct", line 1030:
>    xorp_alias_moduledir = os.path.join(xorp_alias_subdir, 'sbin')
> [greearb at ben-dt ~]$
>
> --
> Ben Greear <greearb at candelatech.com>
> Candela Technologies Inc  http://www.candelatech.com



More information about the Xorp-hackers mailing list