Attempted to emerge net-misc/knock which pulls net-libs/libpcap-1.1.1 as a dependency. net-libs/libpcap-1.1.1 compile fails with message: make: yacc: Command not found Reproducible: Always Steps to Reproduce: 1.fresh install 2.emerge knock 3. Actual Results: yacc -d grammar.y make: yacc: Command not found make: *** [grammar.c] Error 127 make: *** Waiting for unfinished jobs.... emake failed * ERROR: net-libs/libpcap-1.1.1 failed (compile phase): * compile problem * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 2687: Called die * The specific snippet of code: * emake all shared || die "compile problem" * Expected Results: net-libs/libpcap should pull dev-util/yacc as a dependency output of: emerge --info =net-libs/libpcap-1.1.1 Portage 2.1.10.3 (hardened/linux/x86, gcc-4.4.5, glibc-2.12.2-r0, 2.6.38-hardene d-r6 i686) ================================================================= System Settings ================================================================= System uname: Linux-2.6.38-hardened-r6-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-wi th-gentoo-2.0.3 Timestamp of tree: Sun, 07 Aug 2011 22:30:01 +0000 app-shells/bash: 4.1_p9 dev-lang/python: 2.7.1-r1, 3.1.3-r1 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.8.3-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.68 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.5 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers) sys-libs/glibc: 2.12.2 Repositories: gentoo ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=native -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo -release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=native -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackag es news parallel-fetch protect-owned sandbox sfperms strict unknown-features-war n unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclu de=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl apache2 berkdb bzip2 caps cli cracklib crypt cxx dri gdbm gpg gpm harde ned iconv jpeg modules mudflap mysql ncurses nls nptl nptlonly openmp pam pcre p erl php pic png pppd python readline session ssl sysfs tcpd truetype urandom x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmi pci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 inte l8x0m 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 mmap_emul 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 cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_con fig logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbo n kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interf ace irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech a ivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing ts ip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEV ICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP _TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="apm ark chip s cirrus cyrix dummy fbdev glint i128 i740 intel mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident ts eng v4l vesa via vmware nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawn at logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LING UAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_ RSYNC_EXTRA_OPTS -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= output of: emerge -pqv =net-libs/libpcap-1.1.1 [ebuild N ] net-libs/libpcap-1.1.1 USE="-bluetooth -ipv6 -libnl" -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= build log (last 50 lines) config.status: creating pcap_open_offline.3pcap config.status: creating config.h >>> Source configured. >>> Compiling source in /var/tmp/portage/net-libs/libpcap-1.1.1/work/libpcap-1.1.1 ... make -j3 all shared i686-pc-linux-gnu-gcc -O2 -fpic -O2 -march=native -O2 -pipe -fomit-frame-pointer -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./pcap-linux.c i686-pc-linux-gnu-gcc -O2 -fpic -O2 -march=native -O2 -pipe -fomit-frame-pointer -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./pcap-usb-linux.c i686-pc-linux-gnu-gcc -O2 -fpic -O2 -march=native -O2 -pipe -fomit-frame-pointer -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./pcap-can-linux.c i686-pc-linux-gnu-gcc -O2 -fpic -O2 -march=native -O2 -pipe -fomit-frame-pointer -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./fad-getad.c if grep GIT ./VERSION >/dev/null; then \ read ver <./VERSION; \ echo $ver | tr -d '\012'; \ date +_%Y_%m_%d; \ else \ cat ./VERSION; \ fi | sed -e 's/.*/static const char pcap_version_string[] = "libpcap version &";/' > version.h i686-pc-linux-gnu-gcc -O2 -fpic -O2 -march=native -O2 -pipe -fomit-frame-pointer -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./inet.c i686-pc-linux-gnu-gcc -O2 -fpic -O2 -march=native -O2 -pipe -fomit-frame-pointer -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./gencode.c i686-pc-linux-gnu-gcc -O2 -fpic -O2 -march=native -O2 -pipe -fomit-frame-pointer -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./optimize.c i686-pc-linux-gnu-gcc -O2 -fpic -O2 -march=native -O2 -pipe -fomit-frame-pointer -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./nametoaddr.c i686-pc-linux-gnu-gcc -O2 -fpic -O2 -march=native -O2 -pipe -fomit-frame-pointer -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./etherent.c i686-pc-linux-gnu-gcc -O2 -fpic -O2 -march=native -O2 -pipe -fomit-frame-pointer -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./savefile.c i686-pc-linux-gnu-gcc -O2 -fpic -O2 -march=native -O2 -pipe -fomit-frame-pointer -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./sf-pcap.c ./sf-pcap.c: In function 'pcap_dump': ./sf-pcap.c:485: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result ./sf-pcap.c:486: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result i686-pc-linux-gnu-gcc -O2 -fpic -O2 -march=native -O2 -pipe -fomit-frame-pointer -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./sf-pcap-ng.c i686-pc-linux-gnu-gcc -O2 -fpic -O2 -march=native -O2 -pipe -fomit-frame-pointer -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./pcap-common.c i686-pc-linux-gnu-gcc -O2 -fpic -O2 -march=native -O2 -pipe -fomit-frame-pointer -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./bpf_image.c i686-pc-linux-gnu-gcc -O2 -fpic -O2 -march=native -O2 -pipe -fomit-frame-pointer -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./bpf_dump.c ./runlex.sh lex -oscanner.c scanner.l yacc -d grammar.y make: yacc: Command not found make: *** [grammar.c] Error 127 make: *** Waiting for unfinished jobs.... emake failed * ERROR: net-libs/libpcap-1.1.1 failed (compile phase): * compile problem * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 2687: Called die * The specific snippet of code: * emake all shared || die "compile problem" * * If you need support, post the output of 'emerge --info =net-libs/libpcap-1.1.1', * the complete build log and the output of 'emerge -pqv =net-libs/libpcap-1.1.1'. * The complete build log is located at '/var/tmp/portage/net-libs/libpcap-1.1.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-libs/libpcap-1.1.1/temp/environment'. * S: '/var/tmp/portage/net-libs/libpcap-1.1.1/work/libpcap-1.1.1'
http://sources.gentoo.org/net-libs/libpcap/libpcap-1.1.1.ebuild?r1=1.11&r2=1.12 http://sources.gentoo.org/net-libs/libpcap/libpcap-1.1.1-r1.ebuild?r1=1.3&r2=1.4