Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67642 - ipx-utils tries to read wrong proc entry
Summary: ipx-utils tries to read wrong proc entry
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-15 04:31 UTC by Josef Kovacs
Modified: 2004-10-28 17:38 UTC (History)
0 users

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 Josef Kovacs 2004-10-15 04:31:18 UTC
After the installation and configuration i can start ipx-utils with the command "/etc/init.d/ipx start" without problems. But when i try to stop ipx with the command "/etc/init.d/ipx stop" i get the message:

 * Bringing IPX down...
/sbin/ipx_interface: Unable to open "/proc/net/ipx_interface."
 * Failed to down IPX     [ !! ]                                                                                                                                     

The message is understandable, cause the ipx_interface file is in the /proc/net/ipx/ directory and not in /proc/net/. 


Reproducible: Always
Steps to Reproduce:
1./etc/init.d/ipx start
2./etc/init.d/ipx stop
3.

Actual Results:  
* Bringing IPX down...
/sbin/ipx_interface: Unable to open "/proc/net/ipx_interface."
 * Failed to down IPX     [ !! ]           

Expected Results:  
IPX should shutdown smoothly. 

Portage 2.0.50-r11 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.8-gentoo-r8)
=================================================================
System uname: 2.6.8-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -fforce-addr -mmmx -msse2"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -fforce-addr -mmmx -msse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ http://ftp.easynet.nl/mirror/gentoo/
http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.rxd.hu
http://ftp.heanet.ie/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa apm avi berkdb bitmap-fonts cdr crypt cups doc dvd encode esd
f77 foomaticdb gdbm gif gnome gtk gtk2 imagemagick imap imlib java jpeg kerberos
ldap libg++ libwww mad maildir mikmod mmx motif mozilla mpeg ncurses nls
oggvorbis oss pam pdflib perl png python quicktime readline sasl sdl slang
socks5 sse ssl svga tcltk tcpd tetex tiff truetype unicode x86 xml xml2 xmms
xprint xv zlib"
Comment 1 SpanKY gentoo-dev 2004-10-15 12:51:15 UTC
not a bug in the init script
Comment 2 SpanKY gentoo-dev 2004-10-16 10:19:04 UTC
fixed in 1.1-r1
Comment 3 Josef Kovacs 2004-10-21 01:13:58 UTC
Hello,

sorry for the long time that it takes befor i tested the new version. Thanks for it ... but: I still have the same problem. 

But it's understandable, because the interface file called "/proc/net/ipx/interface" and not "/proc/net/ipx/ipx_interface" which is used in the proc patch:

root@gilgamesh # cat /usr/portage/net-misc/ipx-utils/files/ipx-utils-1.1-proc.patch 
--- ipx-1.1/ipx_interface.c.orig        2004-10-16 13:14:40.677964152 -0400
+++ ipx-1.1/ipx_interface.c     2004-10-16 13:15:18.464219768 -0400
@@ -191,7 +191,9 @@
                exit(-1);
        }
 
-       fp = fopen("/proc/net/ipx_interface", "r");
+       fp = fopen("/proc/net/ipx/ipx_interface", "r");
+       if (fp == NULL)
+               fp = fopen("/proc/net/ipx_interface", "r");
        if (fp == NULL) {
                fprintf(stderr, 
                        "%s: Unable to open \"/proc/net/ipx_interface.\"\n",

root@gilgamesh # ls -lah  /proc/net/ipx/
insgesamt 0
dr-xr-xr-x  2 root root 0 21. Okt 09:54 .
dr-xr-xr-x  4 root root 0 21. Okt 09:54 ..
-r--r--r--  1 root root 0 21. Okt 09:54 interface
-r--r--r--  1 root root 0 21. Okt 09:54 route
-r--r--r--  1 root root 0 21. Okt 09:54 socket

I hope i could help.

Josef Kovacs
Comment 4 SpanKY gentoo-dev 2004-10-28 17:38:35 UTC
haha yeah, i'm an idiot :)

try 1.1-r2