Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 676206 - net-analyzer/nmap-7.70 with sys-devel/clang - nmap_error.cc:160:11: error: use of undeclared identifier 'time'
Summary: net-analyzer/nmap-7.70 with sys-devel/clang - nmap_error.cc:160:11: error: us...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-25 10:03 UTC by Haelwenn (lanodan) Monnier
Modified: 2019-01-26 13:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (net-analyzer_nmap_build.log,316.13 KB, text/plain)
2019-01-25 10:03 UTC, Haelwenn (lanodan) Monnier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Haelwenn (lanodan) Monnier 2019-01-25 10:03:11 UTC
Created attachment 562774 [details]
build.log

Portage 2.3.51 (python 3.6.5-final-0, platforms/pc, gcc-6.4.0, glibc-2.27-r6, 4.14.76-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.76-gentoo-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.6
KiB Mem:    16385348 total,   5227012 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Fri, 25 Jan 2019 09:00:01 +0000
Head commit of repository gentoo: c3508d9c0ea8c6d46476b7c5b64249c5116bd95b
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.4.8::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/ccache:          3.3.4-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.14.1-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.28-r2::gentoo, 2.28.1::gentoo, 2.29.1-r1::gentoo, 2.30-r4::gentoo
sys-devel/gcc:            6.4.0::gentoo, 7.3.0-r3::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

4nykey
    location: /var/lib/layman/4nykey
    masters: gentoo
    priority: 50

ArtSoftware
    location: /var/lib/layman/ArtSoftware
    masters: gentoo
    priority: 50

audio-overlay
    location: /var/lib/layman/audio-overlay
    masters: gentoo
    priority: 50

bobwya
    location: /var/lib/layman/bobwya
    masters: gentoo
    priority: 50

chaoslab
    location: /var/lib/layman/chaoslab
    masters: gentoo
    priority: 50

go-overlay
    location: /var/lib/layman/go-overlay
    masters: gentoo
    priority: 50

haskell
    location: /var/lib/layman/haskell
    masters: gentoo
    priority: 50

jorgicio
    location: /var/lib/layman/jorgicio
    masters: gentoo
    priority: 50

lanodanOverlay
    location: /var/lib/layman/lanodanOverlay
    masters: gentoo lua
    priority: 50

laurentb
    location: /var/lib/layman/laurentb
    masters: gentoo
    priority: 50

libressl
    location: /var/lib/layman/libressl
    masters: gentoo
    priority: 50

lua
    location: /var/lib/layman/lua
    masters: gentoo
    priority: 50

vampire
    location: /var/lib/layman/vampire
    masters: gentoo
    priority: 50

Installed sets: @haiku-dev, @peertube
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-Qunused-arguments -O2 -pipe -march=native -mtune=native -Wall -Wextra -Wconversion -Wsign-conversion -Wformat -Wformat-security"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/udev/rules.d/ /usr/share/config /usr/share/gnupg/qualified.txt /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXX="clang++"
CXXFLAGS="-Qunused-arguments -O2 -pipe -march=native -mtune=native -Wall -Wextra -Wconversion -Wsign-conversion -Wformat -Wformat-security"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs cgroup config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned python-trace sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://hp2125/gentoo/ https://mirror.swordarmor.fr/gentoo https://mirrors.dotsrc.org/gentoo/ https://gentoo.osuosl.org/ http://distfiles.gentoo.org"
INSTALL_MASK="/usr/lib/systemd /usr/lib64/systemd /etc/systemd /etc/sudoers /etc/sudoers.d"
LANG="C.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,relro -Wl,-z,now"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="true"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="(cuda) (pgo) (xvmc) X accessibility acl acpi alsa amd64 bzip2 cacert caps ccache cjk clang crypt cryptsetup cxx d3d9 dane default-compiler-rt default-libcxx device-mapper egl eme-free glamor gles gpg gtk3 hardened iconv icu idn iproute2 ipv6 jack jingle jpeg jumbo-build ldns libcxx libedit libnotify libressl libtirpc libtommath libzfs lm_sensors luajit mandoc mikmod modplug multilib multitarget ncurses nls nptl opengl openmp pam pcre pie png portaudio qt3support readline sanitize sasl sctp seccomp smp spell ssl ssp startup-notification symlink system-binutils system-boost system-cairo system-capstone system-clang system-cmark system-crontab system-ffmpeg system-harfbuzz system-heimdal system-icu system-jpeg system-jsoncpp system-libevent system-libmspack system-libs system-libvpx system-libyaml system-lua system-mitkrb5 system-qemu system-qt system-renpy system-seabios system-snappy system-sqlite system-tbb system-uulib system-wide system-wine system-zlib threads truetype udev unicode urandom usb uvm vaapi vdpau vorbis vulkan xa xattr xcsecurity xft xinerama xtpax zfs zlib" ABI_X86="32 64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="cgroups conntrack contextswitch cpu df disk dns entropy fhcount fscache hddtemp interface memory processes protocols rrdtool sensors smart swap thermal uptime users wireless zfs_arc" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" CURL_SSL="libressl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="wacom evdev" KERNEL="linux" L10N="en en-US en-GB fr fr-FR fr-CA fr-CH fr-BE ja ja-JP is jbo de de-DE" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AArch64 ARM Hexagon Mips MSP430 PowerPC Sparc SystemZ XCore AMDGPU BPF NVPTX Lanai RISCV" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_hash upstream_ip_hash upstream_keepalive upstream_least_conn upstream_zone userid uwsgi headers_more" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="arm armeb i386 sparc x86_64" QEMU_USER_TARGETS="arm armeb i386 sparc x86_64" RUBY_TARGETS="ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

net-analyzer/nmap-7.70::gentoo was built with the following:
USE="ipv6 libressl nls nse ssl system-lua -libssh2 -ncat -ndiff -nmap-update -nping -zenmap" ABI_X86="(64)" PYTHON_TARGETS="python2_7"
Comment 1 Larry the Git Cow gentoo-dev 2019-01-25 14:13:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b58e9ab433da5a8629d049ff3a73b348a27b5528

commit b58e9ab433da5a8629d049ff3a73b348a27b5528
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2019-01-25 14:13:37 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2019-01-25 14:13:50 +0000

    net-analyzer/nmap: nmap_error.cc: include time.h
    
    Fixes: https://bugs.gentoo.org/676206
    Package-Manager: Portage-2.3.58, Repoman-2.3.12
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 net-analyzer/nmap/files/nmap-7.70-time.patch | 10 ++++++++++
 net-analyzer/nmap/nmap-7.70.ebuild           |  5 ++---
 net-analyzer/nmap/nmap-9999.ebuild           |  3 ++-
 3 files changed, 14 insertions(+), 4 deletions(-)
Comment 2 Larry the Git Cow gentoo-dev 2019-01-25 14:39:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0390c17140e8122552113b7da35220788de78b47

commit 0390c17140e8122552113b7da35220788de78b47
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2019-01-25 14:39:28 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2019-01-25 14:39:38 +0000

    net-analyzer/nmap: include more time.h
    
    Fixes: https://bugs.gentoo.org/676206
    Package-Manager: Portage-2.3.58, Repoman-2.3.12
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 net-analyzer/nmap/files/nmap-7.70-time.patch | 30 ++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2019-01-25 15:11:10 UTC
for i in nmap-*; do CC=clang CXX=clang++ CFLAGS=-O2 CXXFLAGS=-O2 ebuild $i manifest clean test install || break; done

Worked for me. Does those patches fix it for you, too?
Comment 4 Haelwenn (lanodan) Monnier 2019-01-25 17:22:58 UTC
Yup, that fixed it, thanks for the quick reactivity.