Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281936 - tcpdump error - net-analyzer/tcpdump-4.0.1_pre20090709
Summary: tcpdump error - net-analyzer/tcpdump-4.0.1_pre20090709
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-18 17:08 UTC by Travis Schack
Modified: 2010-04-02 06:02 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Travis Schack 2009-08-18 17:08:59 UTC
After emerging the package, I get the following error:

"tcpdump: Couldn't chroot/chdir to 'no': No such file or directory"
Comment 1 Erik Ekman 2009-08-18 19:10:24 UTC
You need to give more info for people to be able to help you.
Comment 2 Travis Schack 2009-08-20 22:14:39 UTC
Portage 2.1.6.13 (default/linux/amd64/2008.0/no-multilib, gcc-4.3.4, glibc-2.10.1-r0, 2.6.28-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r4-x86_64-Intel-R-_Xeon-R-_CPU_5130_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 20 Aug 2009 11:30:01 +0000
app-shells/bash:     4.0_p28
dev-lang/python:     2.5.4-r2, 2.6.2-r1, 3.1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /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/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=8 --nospinner --keep-going"
FEATURES="distlocks fixpackages notitles parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US"
LC_ALL="en_US"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en_US"
MAKEOPTS="-j4"
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 --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://172.16.55.100/gentoo-portage"
USE="acpi amd64 animgif apache2 async automount berkdb bzip2 cairo cleartype cli crypt ctype cvs deprecated diskio emacs filter fontconfig gd gif glibc-omitfp graphviz ipv6 jpeg kerberos ldap lm_sensors lua lzo mmx mysql mysqli nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh ncurses nls nptl overlays pam pcre pear perl pg-intdatetime php png posix postgres readline rrdcgi samba sasl sensord session signatures snmp sockets socks5 source spl sse sse2 ssl svg symlink syslog tcl threads threadsafe tk truetype unicode utils web webdav-neon winbind xml xpm zlib" APACHE2_MODULES="alias authz_host dir log_config mime mime_magic auth_basic authn_file authz_user" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard" KERNEL="linux" LINGUAS="en_US" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 3 Travis Schack 2009-08-20 22:16:06 UTC
(In reply to comment #1)
> You need to give more info for people to be able to help you.
> 

I put the emerge --info output on this ticket.  Not sure what else you need.  There were no errors with the tcpdump emerge process.  Running tcpdump -i eth1 gives me the error that I originally posted.
Comment 4 FieldySnuts 2009-08-25 17:08:32 UTC
I am also seeing this problem, when trying this command:

tcpdump -nn -i any -s 0 -l host some-ip-here

Portage 2.1.6.13 (hardened/linux/amd64/10.0/server, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.27-hardened-r2 x86_64)
=================================================================                                                
System uname: Linux-2.6.27-hardened-r2-x86_64-Intel-R-_Xeon-R-_CPU_5110_@_1.60GHz-with-gentoo-1.12.11.1          
Timestamp of tree: Tue, 25 Aug 2009 16:20:01 +0000                                                               
ccache version 2.4 [disabled]                                                                                    
app-shells/bash:     3.2_p39                                                                                     
dev-java/java-config: 1.3.7, 2.1.6                                                                               
dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.2-r1                                                                   
dev-python/pycrypto: 2.0.1-r6                                                                                    
dev-util/ccache:     2.4-r7                                                                                      
sys-apps/baselayout: 1.12.11.1                                                                                   
sys-apps/sandbox:    1.6-r2                                                                                      
sys-devel/autoconf:  2.13, 2.63-r1                                                                               
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                                 
sys-devel/binutils:  2.18-r3                                                                                     
sys-devel/gcc-config: 1.4.1                                                                                      
sys-devel/libtool:   1.5.26                                                                                      
virtual/os-headers:  2.6.27-r2                                                                                   
ACCEPT_KEYWORDS="amd64"                                                                                          
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -Os -pipe -fomit-frame-pointer -fforce-addr"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -Os -pipe -fomit-frame-pointer -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.qubenet.net/mirror/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--bwlimit=40960"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl amd64 bash-completion berkdb bzip2 cracklib crypt exif gd gdbm libwww multilib ncurses nls nptl nptlonly pam pcre perl pythonreadline session snmp ssl tcpd truetype unicode vhosts xml 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 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 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="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mganeomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,PORTDIR_OVERLAY
Comment 5 Laurence Withers 2009-09-10 13:33:11 UTC
I also had this problem with tcpdump-4.0.1_pre20090709 but not with 4.0.0. Enabling the 'chroot' USE flag worked around the issue for me. An strace confirms that it is, in fact, executing chroot("no") and getting ENOENT.
Comment 6 FieldySnuts 2009-09-10 16:43:10 UTC
Setting the chroot USE flag also resolved the issue for me.
Comment 7 Peter Volkov (RETIRED) gentoo-dev 2010-04-02 06:02:00 UTC
Thank you for report. Fixed in tcpdump-4.1.0.