Summary: | net-analyzer/nmap-4.68 fails to compile on uclibc/uclibc++ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Natanael Copa <natanael.copa> |
Component: | New packages | Assignee: | Embedded Gentoo Team <embedded> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 213804 | ||
Bug Blocks: | |||
Attachments: |
nmap-4.53-uclibc++-output.cc.patch
nmap-4.53-uclibc++-ctime.patch nmap-4.53-libm.patch nmap-4.53.ebuild.patch Adds libm checks for Linux system |
Description
Natanael Copa
2008-01-21 12:31:59 UTC
Portage 2.1.3.19 (uclibc/x86/hardened, gcc-3.4.6, uclibc-0.9.28.3-r2, 2.6.22-vsgrsec-r2 i686) ================================================================= System uname: 2.6.22-vsgrsec-r2 i686 Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz Timestamp of tree: Mon, 21 Jan 2008 08:02:01 +0000 app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0_rc6-r1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.6.3, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i386-gentoo-linux-uclibc" CFLAGS="-march=i386 -Os -pipe -fomit-frame-pointer" CHOST="i386-gentoo-linux-uclibc" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-Os -pipe" DISTDIR="/var/cache/distfiles" FEATURES="autoconfig buildpkg distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/var/cache/packages/default" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/alpine-portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X509 bitmap-fonts bri bzip2 cli cracklib dri encode expat extensions hardened iproute2 ipv6 jpeg lua mad midi mmap mudflap ncurses netboot nonfsv4 ntfs ogg openmp oss pci pcmcia pic png pppd pri readline reflection rrdtool sensord session snmp speex spl ssl tdb truetype truetype-fonts type1-fonts uclibc uclibc++ udev usb userlocales wifi wordexp x86 xorg zaptel zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="uclibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" MISDN_CARDS="avmfritz hfcmulti hfcpci hfcsmini hfcsusb netjetpci sedlfax w6692pci xhfc" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l apm ark chips cirrus cyrix epson glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng vesa vga via voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS this is what i get on amd64 glibc/uclibc++: g++-uc -c -DNOLUA -Ilibdnet-stripped/include -march=nocona -O2 -pipe -Wall -fno-strict-aliasing -Inbase -Insock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\" -DNMAP_PLATFORM=\"x86_64-pc-linux-gnu\" -DNMAPDATADIR=\"/usr/share/nmap\" -DNMAPLIBEXECDIR=\"/usr/libexec/nmap\" nmap.cc -o nmap.o nmap.cc: In function ‘int nmap_main(int, char**)’: nmap.cc:652: error: ‘time’ was not declared in this scope nmap.cc:653: error: ‘localtime’ was not declared in this scope nmap.cc:822: warning: deprecated conversion from string constant to ‘char*’ nmap.cc:1038: warning: deprecated conversion from string constant to ‘char*’ nmap.cc:1053: warning: deprecated conversion from string constant to ‘char*’ nmap.cc:1066: warning: deprecated conversion from string constant to ‘char*’ nmap.cc:1079: warning: deprecated conversion from string constant to ‘char*’ nmap.cc:1091: warning: deprecated conversion from string constant to ‘char*’ nmap.cc:1225: warning: deprecated conversion from string constant to ‘char*’ nmap.cc:1253: error: ‘strftime’ was not declared in this scope nmap.cc:1256: error: invalid use of incomplete type ‘struct tm’ output.h:141: error: forward declaration of ‘struct tm’ nmap.cc:1256: error: invalid use of incomplete type ‘struct tm’ output.h:141: error: forward declaration of ‘struct tm’ nmap.cc:1257: error: invalid use of incomplete type ‘struct tm’ output.h:141: error: forward declaration of ‘struct tm’ nmap.cc:1257: error: invalid use of incomplete type ‘struct tm’ output.h:141: error: forward declaration of ‘struct tm’ nmap.cc:1415: error: ‘ctime’ was not declared in this scope nmap.cc: In function ‘void getpts_aux(char*, int, u8*, int, int*, bool)’: nmap.cc:2166: warning: deprecated conversion from string constant to ‘char*’ Created attachment 146456 [details, diff] nmap-4.53-uclibc++-output.cc.patch This is needed for 4.50 and above. from http://trac.nslu2-linux.org/optware/browser/trunk/sources/nmap Created attachment 146457 [details, diff]
nmap-4.53-uclibc++-ctime.patch
this too
after the patches are applied I hit a bug in uclibc++ traceroute.cc: In member function `void Traceroute::outputTarget(Target*)': /usr/lib/gcc/i386-gentoo-linux-uclibc/3.4.6/../../../../i386-gentoo-linux-uclibc/include/associative_base:448: error: `void std::__base_associative<Key, ValueType, Compare, Allocator>::swap(std::__base_associative<Key, ValueType, Compare, Allocator>&) [with Key = u16, ValueType = std::pair<u16, TraceProbe*>, Compare = std::less<u16>, Allocator = std::allocator<TraceProbe*>]' is protected traceroute.cc:995: error: within this context this problem does not appear with uclibc++-0.2.1. Its a bug in uclibc++. To be able to compile with USE=lua an -lm link flag is needed as well. Created attachment 146479 [details, diff]
nmap-4.53-libm.patch
needed for USE=lua with uclibc/uclibc++
Created attachment 146484 [details, diff]
nmap-4.53.ebuild.patch
for your convenience
Created attachment 153619 [details, diff]
Adds libm checks for Linux system
Nmap needs more widly check for libm.
And it can build only with uclibc++-0.2.1
latest stable net-analyzer/nmap-4.62 still dont compile seems like 4.62 works with the nmap-4.53-uclibc++-output.cc.patch alone. --- /usr/portage/net-analyzer/nmap/nmap-4.62.ebuild 2008-07-05 19:41:31 +0000 +++ nmap-4.62.ebuild 2008-07-28 07:49:59 +0000 @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-4.62.ebuild,v 1.2 2008/07/05 19:08:21 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-4.53.ebuild,v 1.9 2008/03/09 15:53:49 nixnut Exp $ inherit eutils flag-o-matic @@ -32,6 +32,12 @@ fi } +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/nmap-4.53-uclibc++-output.cc.patch" +} + src_compile() { local myconf="" the nmap-4.53-uclibc++-output.cc.patch is still needed for nmap-4.68 to be able to compile with uclibc++. --- /usr/portage/net-analyzer/nmap/nmap-4.68.ebuild 2008-08-04 20:08:17 +0000 +++ nmap-4.68.ebuild 2008-08-06 12:20:08 +0000 @@ -25,6 +25,7 @@ src_unpack() { unpack ${A} cd "${S}" + epatch "${FILESDIR}/nmap-4.53-uclibc++-output.cc.patch" epatch "${FILESDIR}/${P}-nolua.patch" AT_NO_RECURSIVE=1 eautoreconf } uclibc++ was removed from tree (see bug 276246). |