Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237150 - net-analyzer/nmap-4.75 doesn't compile w/ USE="-lua"
Summary: net-analyzer/nmap-4.75 doesn't compile w/ USE="-lua"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
: 237153 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-09 09:57 UTC by Zeev Tarantov
Modified: 2008-09-10 18:38 UTC (History)
16 users (show)

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


Attachments
build log (build.log,34.86 KB, text/plain)
2008-09-09 09:58 UTC, Zeev Tarantov
Details
Invalid patch for configure.ac and configure script (nmap-4.75-without-lua-patch.diff,280.53 KB, patch)
2008-09-09 12:51 UTC, Simon Zilliken
Details | Diff
Add CXXFLAGS to makefile.dep rule (nmap-4.75-cxxflags-patch.diff,364 bytes, patch)
2008-09-09 14:47 UTC, Simon Zilliken
Details | Diff
ebuild that applies cxxflags-patch (nmap-4.75.ebuild,1.78 KB, text/plain)
2008-09-09 15:15 UTC, Simon Zilliken
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zeev Tarantov 2008-09-09 09:57:22 UTC
Configuration complete.  Type make (or gmake on some *BSD machines) to compile.
Makefile:262: makefile.dep: No such file or directory
i686-pc-linux-gnu-g++ -MM -Ilibdnet-stripped/include -march=core2 -mtune=core2 -O2 -pipe -fomit-frame-pointer -Inbase -Insock/include main.cc nmap.cc targets.cc tcpip.cc nmap_error.cc utils.cc idle_scan.cc osscan.cc osscan2.cc output.cc scan_engine.cc timing.cc charpool.cc services.cc protocols.cc nmap_rpc.cc portlist.cc NmapOps.cc TargetGroup.cc Target.cc FingerPrintResults.cc service_scan.cc NmapOutputTable.cc MACLookup.cc nmap_tty.cc nmap_dns.cc traceroute.cc portreasons.cc   > makefile.dep
In file included from portlist.h:107,
                 from output.h:124,
                 from NmapOps.h:104,
                 from main.cc:105:
nse_main.h:5:19: error: lua.h: No such file or directory
nse_main.h:6:22: error: lualib.h: No such file or directory
nse_main.h:7:23: error: lauxlib.h: No such file or directory
In file included from portlist.h:107,
                 from output.h:124,
                 from NmapOps.h:104,
                 from nmap.cc:108:
nse_main.h:5:19: error: lua.h: No such file or directory
nse_main.h:6:22: error: lualib.h: No such file or directory
nse_main.h:7:23: error: lauxlib.h: No such file or directory

etcetera

Reproducible: Always

Steps to Reproduce:
1. try to emerge [ebuild     U ] net-analyzer/nmap-4.75 [4.68] USE="gtk ssl -lua" 0 kB


Actual Results:  
attached build log

Expected Results:  
successful build

Portage 2.2_rc8 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-i686-Intel-R-_Core-TM-2_Duo_CPU_E6550_@_2.33GHz-with-glibc2.0
Timestamp of tree: Tue, 09 Sep 2008 09:15:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18.50.0.8
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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"
CPPFLAGS="-march=core2 -mtune=core2 -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=core2 -mtune=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--enable-new-dtags"
LINGUAS="en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/java-overlay /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 archive bash-completion bidi bluetooth bzip2 cairo captury cddb cdparanoia cdr cli cracklib crypt ctype curl curlwrappers custom-optimization dbus dga dri dvd dvdr dvdread encode exif fam fastcgi fbcon ffmpeg fftw firefox flac gd gdbm geoip gif glib glitz gmp gnutls gpm gtk hal iconv ieee1394 innodb inotify isdnlog java jpeg kde kdeenablefinal kdehiddenvisibility kdexdeltas libnotify libsamplerate lm_sensors mad matroska midi mikmod mime mmap mmx mp3 mpeg mplayer mudflap musepack mysql mysqli ncurses nls nptl nptlonly nsplugin offensive ogg openal opengl openmp pam pch pcntl pcre pdf perl php pic png posix postgres ppds pppd python qt3 qt3support qt4 readline real realmedia reflection samba scanner sdl session sndfile spell spl sqlite sqlite3 sse sse2 ssl ssse3 startup-notification svg sysfs syslog sysvipc tcpd theora threads tidy tiff truetype unicode urandom usb vhosts vorbis wifi win32codecs wmf x264 x86 xcb xcomposite xml xmlreader xmlwriter xorg xulrunner xv xvid yahoo zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias asis" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa nouveau"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zeev Tarantov 2008-09-09 09:58:29 UTC
Created attachment 164996 [details]
build log
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2008-09-09 10:45:56 UTC
*** Bug 237153 has been marked as a duplicate of this bug. ***
Comment 3 Simon Zilliken 2008-09-09 12:51:39 UTC
Created attachment 165006 [details, diff]
Invalid patch for configure.ac and configure script

Changelog says --without-lua was fixed in this version, but it isn't. Line 504 in configure.ac says 'case "$with-liblua" in', but should be 'case "$liblua" in'. This patch fixes that and the resulting configure script .. no idea why it has become so huge, though :-)
Comment 4 Zeev Tarantov 2008-09-09 14:10:55 UTC
-# Generated by GNU Autoconf 2.61.
+# Generated by GNU Autoconf 2.62.

I think this explains why the patch is 280KB. Could you try using the same version of autoconf? Also, isn't configure a generated file? So shouldn't the configure.in be changed instead?
Comment 5 Simon Zilliken 2008-09-09 14:19:12 UTC
Comment on attachment 165006 [details, diff]
Invalid patch for configure.ac and configure script

Sorry, that patch doesn't make any sense.
Comment 6 Simon Zilliken 2008-09-09 14:47:08 UTC
Created attachment 165013 [details, diff]
Add CXXFLAGS to makefile.dep rule

There you go, no idea where my head was before. The -DNOLUA flag is set in CXXFLAGS, not in CPPFLAGS.
Comment 7 Simon Zilliken 2008-09-09 15:15:49 UTC
Created attachment 165022 [details]
ebuild that applies cxxflags-patch
Comment 8 Zeev Tarantov 2008-09-10 08:04:57 UTC
The patch appears to work. thanks!
When will this be in portage?
Comment 9 Doug Goldstein (RETIRED) gentoo-dev 2008-09-10 18:38:53 UTC
Done. If anyone from the netmon herd has a prob. Come talk to me.