The error is as follows. CONFIG: ipv6 support disabled CONFIG: privilege dropping enabled, using "nobody" CONFIG: using GNU regex library configure: creating ./config.status config.status: creating Makefile config.status: creating config.h make[1]: *** No rule to make target `s'. Stop. make: *** [regex-0.12/regex.o] Error 2 make: *** Waiting for unfinished jobs.... !!! ERROR: net-analyzer/ngrep-1.45 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' environment, line 3635: Called src_compile ngrep-1.45.ebuild, line 30: Called die ~ # emerge ngrep -pv [ebuild U ] net-analyzer/ngrep-1.45 [1.42] USE="-ipv6% -pcre%" ngrep # portageq envvar MAKEOPTS -j8 --quiet MAKEOPTS=-j8 emerge ngrep ; # works fine.
Hello, Can you please provide ``emerge --info'' output? AFAICT this does not look like an ngrep-specific bug, as it works for me on my (somewhat older) Gentoo installation. Cheers.
Stange bug this one is. Works here. miranda ~ # emerge --info Portage 2.1.2.2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r2, 2.6.20-hardened-r2 x86_64) ================================================================= System uname: 2.6.20-hardened-r2 x86_64 Dual Core AMD Opteron(tm) Processor 280 Gentoo Base System release 1.12.9 Timestamp of tree: Tue, 15 May 2007 22:00:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] dev-java/java-config: 1.3.7, 2.0.31-r5 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -fomit-frame-pointer -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php4/ext-active/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=k8 -fomit-frame-pointer -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg cleanpkgdir distclean distlocks genpkgindex metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j8 --quiet" PKGDIR="/packages/" 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/portage/local" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X amd64 bash-completion berkdb bitmap-fonts cli cracklib crypt cups dri emacs fortran gdbm gpm iconv ipv6 isdnlog libg++ midi ncurses nls nptl nptlonly pam pcre perl ppds pppd python readline reflection session spl ssl tcpd threads truetype-fonts type1-fonts unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS miranda ~ # emerge -pv make -q [ebuild R ] sys-devel/make-3.81 USE="nls -static" But fails here Portage 2.1.2.2 (hardened/amd64/multilib, gcc-3.4.6, glibc-2.3.6-r5, 2.6.20-hardened-r2 x86_64) ================================================================= System uname: 2.6.20-hardened-r2 x86_64 Dual Core AMD Opteron(tm) Processor 280 Gentoo Base System release 1.12.9 Timestamp of tree: Tue, 15 May 2007 22:00:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.7.9-r1, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -fforce-addr -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -fforce-addr" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="-q" FEATURES="autoconfig buildpkg distclean distlocks metadata-transfer nodoc noinfo sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1 -Bdirect" MAKEOPTS="-j8 --quiet" PKGDIR="/packages/" 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/portage/local" SYNC="rsync://owl.gentoo.org/gentoo-portage" USE="alsa amd64 apache2 berkdb bindist boundschecking bzip2 cgi cli crypt dlloader esd hardened jpeg justify midi mp3 mpeg ncurses ogg oss pam pic png readline session snmp ssl sysfs tiff urandom userlocales vcd vorbis xinerama xml xml2 xorg 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" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" Unset: CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS hardened/amd64/multilib ngrep # emerge -pvq make [ebuild R ] sys-devel/make-3.81 USE="-nls -static" -------- What more or less differs between the two chroots running on the exact same box is one is hardened using make without nls support and the other is vanilla using +nls support. Both also differ in toolchain versions but otherwise are both gentoo-stable amd64. hardened itself is a gcc option that simply compiles an executable as an ET_DYN ELF vs an ET_EXEC one and should not effect "make" itself.
Confirmed working on stable x86 and ~x86, so tempted to invalidate this
(In reply to comment #3) > Confirmed working on stable x86 and ~x86, so tempted to invalidate this Not so quick to invalidate it.. I just confirmed that this is still a problem in ~x86. If you have pcre in USE flags you wont trigger it. But using GNU regex will. Try this to reproduce. USE=-pcre MAKEOPTS='-j8 --quiet' emerge ngrep -q
Could someone paste the output of the latest breakage (PCRE vs. GNU regex)? I wasn't able to reproduce it before, and I don't have access to a gentoo box at the moment.
(In reply to comment #5) > Could someone paste the output of the latest breakage (PCRE vs. GNU regex)? > > I wasn't able to reproduce it before, and I don't have access to a gentoo box > at the moment. > uClibc ngrep-1.45 # ./configure --prefix=/usr --host=i386-gentoo-linux-uclibc --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --disable-pcre --disable-ipv6 --build=i386-gentoo-linux-uclibc --localstatedir=/var/lib Configuring System ... checking build system type... i386-gentoo-linux-uclibc checking host system type... i386-gentoo-linux-uclibc checking target system type... i386-gentoo-linux-uclibc checking for i386-gentoo-linux-uclibc-gcc... i386-gentoo-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... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i386-gentoo-linux-uclibc-gcc accepts -g... yes checking for i386-gentoo-linux-uclibc-gcc option to accept ISO C89... none needed checking how to run the C preprocessor... i386-gentoo-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 Configuring GNU Regular Expression library ... loading cache ./config.cache checking host system type... i686-pc-linux-uclibc checking target system type... i686-pc-linux-uclibc checking build system type... i686-pc-linux-uclibc checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for a BSD compatible install... (cached) /usr/bin/install -c checking how to run the C preprocessor... (cached) gcc -E checking for AIX... no checking for getmntent in -lseq... (cached) no checking for POSIXized ISC... no checking for minix/config.h... (cached) no checking for ANSI C header files... (cached) yes checking for string.h... (cached) yes checking for working alloca.h... (cached) yes checking for alloca... (cached) yes checking for working const... (cached) yes checking for prefix by checking for gcc... (cached) /usr/bin/gcc creating ./config.status creating Makefile creating doc/Makefile creating test/Makefile Configuring Network Grep (ngrep) ... checking for a broken redhat glibc udphdr declaration... no checking for a complete set of pcap headers... found /usr/include checking for BPF include path... pcap-bpf.h checking for DLT_LINUX_SLL in bpf.h... yes checking for DLT_LOOP in bpf.h... yes checking for DLT_IEEE802_11 in bpf.h... yes checking for DLT_IEEE802_11_RADIO in bpf.h... yes checking for DLT_RAW in bpf.h... yes checking for pcap_open_live in -lpcap... yes checking for pcap_restart in -lpcap... yes CONFIG: ipv6 support disabled CONFIG: privilege dropping enabled, using "nobody" CONFIG: using GNU regex library configure: creating ./config.status config.status: creating Makefile config.status: creating config.h uClibc ngrep-1.45 # make --quiet make[1]: *** No rule to make target `s'. Stop. make: *** [regex-0.12/regex.o] Error 2 ------------------------------------------------------------------------- uClibc ngrep-1.45 # head config.log | grep ./configure $ ./configure --prefix=/usr --host=i386-gentoo-linux-uclibc --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-pcre --disable-ipv6 --build=i386-gentoo-linux-uclibc Configuring Network Grep (ngrep) ... checking for a broken redhat glibc udphdr declaration... no checking for a complete set of pcap headers... found /usr/include checking for BPF include path... pcap-bpf.h checking for DLT_LINUX_SLL in bpf.h... yes checking for DLT_LOOP in bpf.h... yes checking for DLT_IEEE802_11 in bpf.h... yes checking for DLT_IEEE802_11_RADIO in bpf.h... yes checking for DLT_RAW in bpf.h... yes checking for pcap_open_live in -lpcap... yes checking for pcap_restart in -lpcap... yes CONFIG: ipv6 support disabled CONFIG: privilege dropping enabled, using "nobody" CONFIG: using PCRE regex library configure: creating ./config.status config.status: creating Makefile config.status: creating config.h (... builds fine...)
Wwoooww.. That is bizarre! Is this really an ngrep bug, something I need to look into?
(In reply to comment #7) > Wwoooww.. That is bizarre! > > Is this really an ngrep bug, something I need to look into? Jordan, This appears to be a bug with ngrep's handling of pcre vs gnu-regex and the cmdline. I don't however want to waste your time till at least our own maintainers confirm the bug exists and is not related to anything gentoo might be doing.
Hello, just checking in.. I'm getting ready to do a new release of ngrep, and if there's some evil bug lurking somewhere I'd like to get it resolved before I do. Anyone got anything for me on this?
from what I know, only flameeyes and solar are the ones who can reproduce it, though it would be nice to get this fixed.
(In reply to comment #10) > from what I know, only flameeyes and solar are the ones who can reproduce it, > though it would be nice to get this fixed. It succeeds to fail for me too, on a stable x86: jeroen@misha /keeps/gentoo/cvs/gentoo-x86/net-analyzer/ngrep $ MAKEOPTS='-j8 --quiet' USE=-pcre ebuild ngrep-1.45-r1.ebuild compile [...] Configuring Network Grep (ngrep) ... checking for a broken redhat glibc udphdr declaration... no checking for a complete set of pcap headers... found /usr/include checking for BPF include path... pcap-bpf.h checking for DLT_LINUX_SLL in bpf.h... yes checking for DLT_LOOP in bpf.h... yes checking for DLT_IEEE802_11 in bpf.h... yes checking for DLT_IEEE802_11_RADIO in bpf.h... yes checking for DLT_RAW in bpf.h... yes checking for pcap_open_live in -lpcap... yes checking for pcap_restart in -lpcap... yes CONFIG: ipv6 support enabled CONFIG: privilege dropping enabled, using "ngrep" CONFIG: using GNU regex library configure: creating ./config.status config.status: creating Makefile config.status: creating config.h make[1]: *** No rule to make target `s'. Stop. make: *** [regex-0.12/regex.o] Error 2 * * ERROR: net-analyzer/ngrep-1.45-r1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2501: Called die * The specific snippet of code: * emake || die "emake failed" * The die message: * emake failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/keeps/gentoo/emergelogs/misha/net-analyzer:ngrep-1.45-r1:20080318-200204.log'. * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/ngrep-1.45-r1/temp/environment'. * This ebuild used the following eclasses from overlays: * /keeps/gentoo/cvs/gentoo-x86/eclass/eutils.eclass * /keeps/gentoo/cvs/gentoo-x86/eclass/multilib.eclass * /keeps/gentoo/cvs/gentoo-x86/eclass/toolchain-funcs.eclass * /keeps/gentoo/cvs/gentoo-x86/eclass/portability.eclass * /keeps/gentoo/cvs/gentoo-x86/eclass/autotools.eclass * /keeps/gentoo/cvs/gentoo-x86/eclass/libtool.eclass * This ebuild is from an overlay: '/keeps/gentoo/cvs/gentoo-x86/' * Tue Mar 18 21:04:57 CET 2008 Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r9-JeR i686) ================================================================= System uname: 2.6.22-gentoo-r9-JeR i686 AMD Athlon(tm) Processor Timestamp of tree: Tue, 18 Mar 2008 17:16:02 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.1.4 dev-lang/python: 2.4.4-r9 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 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.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -pipe -march=athlon" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-Os -pipe -march=athlon" DISTDIR="/keeps/gentoo/distfiles" FEATURES="autoaddcvs buildpkg cvs distcc distlocks fixpackages metadata-transfer notitles sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/ http://mirror.muntinternet.net/pub/gentoo/ " LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-z,now" LINGUAS="en-gb en nl fy" MAKEOPTS="-j5" PKGDIR="/keeps/gentoo/packages/misha" 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="/keeps/gentoo/portage" PORTDIR_OVERLAY="/keeps/gentoo/local" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac aalib acpi alsa amr aoss apache2 asf audiofile bash-completion berkdb bl bonobo boost bzip2 cairo caps cdda cdio cdparanoia cdr cgi chroot cle266 cli cpudetection cracklib crypt cscope cups curl custom-cflags d dbus dga dillo dlloader doc dri dts dv dvd dvdr dvdread dxr3 edl elf emboss encode evo fam fame fastbuild fbcon ffmpeg firefox flac flash foomaticdb fortran fpx freetype gdbm ggi gif gimpprint glitz glut gmp gnokii gnutls gpm graphviz gs gstreamer gtk gtk2 guile hal hfs iconv idn ieee1394 imagemagick imap imlib inkjar ipv6 isdnlog jack javascript jbig jingle jpeg jpeg2k kde ladspa lcms libcaca live lm_sensors logrotate lzo mad matroska midi mikmod mjpeg mmx mmxext mng modplug mozilla mozsvg mozxmlterm mp3 mpeg mudflap musepack nas ncurses nethack network nls nptl nptlonly nsplugin odk offensive ogg opengl openmp oss pam pcre pda pdf perl physfs pic png portaudio pppd python qt qt-static qt3 qt3support qt4 quicktime readline real reflection rtc ruby samba screenshot sdl server session sftplogging slang smux sox speex spell spl sse ssl svg svga sysfs tcl tcpd tetex tga theora threads tiff tk truetype unicode usb userlocales v4l v4l2 vcd vidix vlm vorbis win32codecs winbind x264 x86 xanim xcomposite xface xine xml xml2 xmlreader xorg xosd xsl xv xvid xvmc zlib" ALSA_CARDS="emu10k1 via82xx" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en-gb en nl fy" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 146507 [details] net-analyzer:ngrep-1.45-r1:20080318-201556.log MAKEOPTS='-j8 --quiet -d'
Created attachment 146529 [details, diff] ngrep-1.45-Makefile.in.patch MAKEFLAGS contains some of the command line options. --quiet and --silent are the same as -s and therefore MAKEFLAGS="s" in the end result. The upshot being that make ends up seeing make s and not finding the target. The patch removes MAKEFLAGS entirely (replacing it with MAKEOPTS crossed my mind, but it simply isn't needed here).
Fixed in CVS.