Nmap Development mailing list archives
Re: 5.30BETA1 cross-compile regression
From: Nuno Gonçalves <nunojpg () gmail com>
Date: Wed, 29 Sep 2010 13:28:56 +0100
2010/9/29 David Fifield <david () bamsoftware com>:
How does this patch work for you? David Fifield
I think it does, but then it gives a compile error: /home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include/lnum_config.h:29:3: error: #error "Need C99 for 'float' (use '--std=c99' or similar)" In file included from /home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include/luaconf.h:169, from /home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include/lua.h:16, from nse_main.h:11, from portlist.h:98, from portreasons.cc:95: /home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include/lnum_config.h:29:3: error: #error "Need C99 for 'float' (use '--std=c99' or similar)" In file included from /home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include/luaconf.h:169, from /home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include/lua.h:16, from nse_main.h:11, from portlist.h:98, from output.h:132, from xml.cc:153: /home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include/lnum_config.h:29:3: error: #error "Need C99 for 'float' (use '--std=c99' or similar)" make[4]: *** [makefile.dep] Error 1 Addind the -std=c99 flag will then create a weird configure time error: config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting config.status: creating nping_config.h o o o o o o o o o o o o o o o 888b 888 o o o 8888b 888 o o o 88888b 888 o o o 888Y88b 888 o 888 Y88b888 o 888 Y88888 888 Y8888 888 Y888 --[NPING]-- Configuration complete. Type make (or gmake on some *BSD machines) to compile. === configuring in libpcap (/home/nuno/Desktop/trunk/build_dir/target-mips_r2_uClibc-0.9.30.1/nmap-20416/libpcap) configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr' '--target=mips-openwrt-linux' '--host=mips-openwrt-linux' '--build=x86_64-linux-gnu' '--program-prefix=' '--program-suffix=' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--libexecdir=/usr/lib' '--sysconfdir=/etc' '--datadir=/usr/share' '--localstatedir=/var' '--mandir=/usr/man' '--infodir=/usr/info' '--disable-nls' '--with-openssl=/home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr' '--with-liblua=/home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr' 'build_alias=x86_64-linux-gnu' 'host_alias=mips-openwrt-linux' 'target_alias=mips-openwrt-linux' 'CC=mips-openwrt-linux-uclibc-gcc' 'CFLAGS=-Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -std=c99 ' 'LDFLAGS=-L/home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib -L/home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/lib -L/home/nuno/Desktop/trunk/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib -L/home/nuno/Desktop/trunk/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/lib ' 'CPPFLAGS=-I/home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include -I/home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/include -I/home/nuno/Desktop/trunk/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/include -I/home/nuno/Desktop/trunk/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/include ' 'CXX=mips-openwrt-linux-uclibc-g++' 'CXXFLAGS=-Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -std=c99 -fno-builtin -fno-rtti' --cache-file=/dev/null --srcdir=. configure: loading site script /home/nuno/Desktop/trunk/include/site/mips-openwrt-linux-uclibc checking build system type... x86_64-pc-linux-gnu checking host system type... mips-openwrt-linux-gnu checking target system type... mips-openwrt-linux-gnu checking for mips-openwrt-linux-gcc... mips-openwrt-linux-uclibc-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether mips-openwrt-linux-uclibc-gcc accepts -g... yes checking for mips-openwrt-linux-uclibc-gcc option to accept ISO C89... none needed checking gcc version... 4 checking for inline... inline checking for __attribute__... yes checking how to run the C preprocessor... mips-openwrt-linux-uclibc-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E 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 sys/bitypes.h usability... yes checking sys/bitypes.h presence... yes checking for sys/bitypes.h... yes checking for int8_t... yes checking for u_int8_t... yes checking for int16_t... yes checking for u_int16_t... yes checking for int32_t... yes checking for u_int32_t... yes checking for int64_t... yes checking for u_int64_t... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for _LARGEFILE_SOURCE value needed for large files... 1 checking sys/ioccom.h usability... no checking sys/ioccom.h presence... no checking for sys/ioccom.h... no checking sys/sockio.h usability... no checking sys/sockio.h presence... no checking for sys/sockio.h... no checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking paths.h usability... yes checking paths.h presence... yes checking for paths.h... yes checking for net/pfvar.h... no checking for netinet/if_ether.h... yes checking for ANSI ioctl definitions... yes checking for strerror... (cached) yes checking for strlcpy... yes checking for vsnprintf... (cached) yes checking for snprintf... yes checking for library containing gethostbyname... none required checking for library containing socket... none required checking for library containing putmsg... no checking for ether_hostton... yes checking whether ether_hostton is declared... no checking netinet/ether.h usability... yes checking netinet/ether.h presence... yes checking for netinet/ether.h... yes checking whether ether_hostton is declared... yes checking if --disable-protochain option is specified... enabled configure: error: pcap type not determined when cross-compiling; use --with-pcap=... configure: error: ./configure failed for libpcap make[3]: *** [/home/nuno/Desktop/trunk/build_dir/target-mips_r2_uClibc-0.9.30.1/nmap-20416/.configured_] Error 1 make[3]: Leaving directory `/home/nuno/Desktop/trunk/feeds/packages/net/nmap' make[2]: *** [package/feeds/packages/nmap/compile] Error 2 make[2]: Leaving directory `/home/nuno/Desktop/trunk' make[1]: *** [/home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/stamp/.package_compile] Error 2 make[1]: Leaving directory `/home/nuno/Desktop/trunk' make: *** [world] Error 2 The weird about this is that if -std=c99 is not set, the configure script follows another path, after NPING, it is libdnet-stripped that gets configured, while otherwise it is libpcap(while it should be configured/compiled at all because I set "--with-libpcap="$(STAGING_DIR)/usr""): config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting config.status: creating nping_config.h o o o o o o o o o o o o o o o 888b 888 o o o 8888b 888 o o o 88888b 888 o o o 888Y88b 888 o 888 Y88b888 o 888 Y88888 888 Y8888 888 Y888 --[NPING]-- Configuration complete. Type make (or gmake on some *BSD machines) to compile. === configuring in libdnet-stripped (/home/nuno/Desktop/trunk/build_dir/target-mips_r2_uClibc-0.9.30.1/nmap-20416/libdnet-stripped) configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr' '--target=mips-openwrt-linux' '--host=mips-openwrt-linux' '--build=x86_64-linux-gnu' '--program-prefix=' '--program-suffix=' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--libexecdir=/usr/lib' '--sysconfdir=/etc' '--datadir=/usr/share' '--localstatedir=/var' '--mandir=/usr/man' '--infodir=/usr/info' '--disable-nls' '--with-openssl=/home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr' '--with-liblua=/home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr' 'build_alias=x86_64-linux-gnu' 'host_alias=mips-openwrt-linux' 'target_alias=mips-openwrt-linux' 'CC=mips-openwrt-linux-uclibc-gcc' 'CFLAGS=-Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float ' 'LDFLAGS=-L/home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib -L/home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/lib -L/home/nuno/Desktop/trunk/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib -L/home/nuno/Desktop/trunk/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/lib ' 'CPPFLAGS=-I/home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include -I/home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/include -I/home/nuno/Desktop/trunk/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/include -I/home/nuno/Desktop/trunk/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/include ' 'CXX=mips-openwrt-linux-uclibc-g++' 'CXXFLAGS=-Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fno-builtin -fno-rtti' --cache-file=/dev/null --srcdir=. configure: loading site script /home/nuno/Desktop/trunk/include/site/mips-openwrt-linux-uclibc 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 mips-openwrt-linux-strip... /home/nuno/Desktop/trunk/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/bin/mips-openwrt-linux-strip checking whether to enable maintainer-specific portions of Makefiles... no checking build system type... x86_64-pc-linux-gnu checking host system type... mips-openwrt-linux-gnu checking for mips-openwrt-linux-gcc... mips-openwrt-linux-uclibc-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... yes checking for suffix of executables... checking for suffix of object files... o Regards, Nuno _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Re: 5.30BETA1 cross-compile regression, (continued)
- Re: 5.30BETA1 cross-compile regression David Fifield (Jul 16)
- Message not available
- Re: 5.30BETA1 cross-compile regression David Fifield (Jul 23)
- Re: 5.30BETA1 cross-compile regression Nuno Gonçalves (Jul 28)
- Re: 5.30BETA1 cross-compile regression David Fifield (Aug 04)
- Re: 5.30BETA1 cross-compile regression Nuno Gonçalves (Aug 06)
- Re: 5.30BETA1 cross-compile regression David Fifield (Aug 17)
- Re: 5.30BETA1 cross-compile regression Nuno Gonçalves (Sep 18)
- Re: 5.30BETA1 cross-compile regression David Fifield (Sep 19)
- Re: 5.30BETA1 cross-compile regression Nuno Gonçalves (Sep 26)
- Re: 5.30BETA1 cross-compile regression David Fifield (Sep 28)
- Re: 5.30BETA1 cross-compile regression Nuno Gonçalves (Sep 29)
- Message not available
- Re: 5.30BETA1 cross-compile regression David Fifield (Jul 16)