Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106036 - error accessing /proc/net/wireless when starting net.ethX if no wireless in kernel
Summary: error accessing /proc/net/wireless when starting net.ethX if no wireless in k...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-09-15 00:51 UTC by Nir Dremer
Modified: 2005-10-11 08:21 UTC (History)
0 users

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


Attachments
test for /proc/net/wireless (wireless.patch,2.23 KB, patch)
2005-09-16 00:23 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nir Dremer 2005-09-15 00:51:49 UTC
Using sys-apps/baselayout-1.12.0_pre8-r2 and initlizing net.ethX i see the
following errors:

grep: /proc/net/wireless: No such file or directory
grep: /proc/net/wireless: No such file or directory

This machine has no wireless configured in the kernel not configured either in
conf.d/net.

Other machine which has wireless enabled does not have this error.

Reproducible: Always
Steps to Reproduce:

1. remove wireless support from kernel.
2. recompile and reboot.
3. /etc/init.d/net.eth0 restart



Portage 2.0.52-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12.5
i686)
=================================================================
System uname: 2.6.12.5 i686 AMD Athlon(TM) MP 2400+
Gentoo Base System version 1.12.0_pre8
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.1-r1
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -fprefetch-loop-arrays -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -fprefetch-loop-arrays -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks prelink sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.zie.pg.gda.pl
http://pandemonium.tiscali.de/pub/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X alsa apm avi bash-completion bidi bitmap-fonts cups curl dvd
dvdr eds emboss encode fam firefox flac foomaticdb fortran gd gdbm gif gphoto2
gpm gstreamer gtk gtk2 imagemagick imlib irda jpeg kde lcd libwww mad mmx mmx2
motif mp3 mpeg ncurses nls nptl nvidia ogg oggvorbis opengl pam pdflib pic png
ppds readline samba sdl slang smp spell sse sse2 ssl tcpd tiff truetype
truetype-fonts type1-fonts unicode usb vorbis wxwindows xine xml xml2 xv zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS
Comment 1 SpanKY gentoo-dev 2005-09-15 05:47:24 UTC
bad uber, always use 'grep -s' when reading /proc files ;)
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-09-15 14:43:05 UTC
I'm not seeing this on my server which does not have wireless.
Do you know where is error is? files, line numbers?

If not, could you set RC_VERBOSE="yes" in /etc/conf.d/rc and post the full
output of net.eth0 starting including the errors.

Thanks.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-09-16 00:23:32 UTC
Created attachment 68564 [details, diff]
test for /proc/net/wireless

OK, I think I have it fixed. The issue looks like wireless-tools and/or
wpa_supplicant was installed and the kernel did not have wireless.

Please test this patch which should fix it.
Comment 4 Nir Dremer 2005-09-16 03:22:56 UTC
Patch solves the problem.


Roy: Impressive work finding the combination that causes the problem quickly..


Thanks!
Comment 5 Roy Marples (RETIRED) gentoo-dev 2005-09-16 04:27:01 UTC
Thanks :)

Will be in baselayout-1.12.0_pre9
Comment 6 Roy Marples (RETIRED) gentoo-dev 2005-10-11 08:21:15 UTC
Fixed in pre9