Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37678 - init script (/etc/init.d/vpnclient) for cisco-vpnclient-3des-4.0.3-r1 is broken.
Summary: init script (/etc/init.d/vpnclient) for cisco-vpnclient-3des-4.0.3-r1 is broken.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Chris Gianelloni (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-09 04:53 UTC by Alexander Papaspyrou
Modified: 2004-02-14 15:09 UTC (History)
3 users (show)

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


Attachments
Fix for the stated bug (vpnclient.patch,2.76 KB, patch)
2004-01-09 04:58 UTC, Alexander Papaspyrou
Details | Diff
fixed vpnclient file (vpnclient,2.33 KB, text/plain)
2004-01-09 08:21 UTC, FL
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Papaspyrou 2004-01-09 04:53:59 UTC
The modprobe line is invalid (no path to /lib/modules/... allowed, see modprobe(8)); thus, modprobe fails everytime.

Reproducible: Always
Steps to Reproduce:
1. Install cisco-vpnclient-3des-4.0.3-r1
2. Run /etc/init.d/vpnclient

Actual Results:  
--8<-- snip --8<--
[ ~ ]
wallace $ /etc/init.d/vpnclient start
 * Starting Cisco VPN Client: ...
modprobe: Can't locate module
/lib/modules/2.4.22-gentoo-r3/CiscoVPN/cisco_ipsecFailed to load module cisco_ipsec
-->8-- snap -->8--

Expected Results:  
Clean run of /etc/init.d/vpnclient.

[ ~ ]
wallace $ emerge --info
Portage 2.0.49-r16-gpp7 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3,
2.4.22-gentoo-r3)
=================================================================
System uname: 2.4.22-gentoo-r3 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.3.10
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O2 -pipe -fomit-frame-pointer -ffast-math -funroll-loops
-fforce-addr"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon -O2 -pipe -fomit-frame-pointer -ffast-math
-funroll-loops -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs sandbox ccache digest userpriv usersandbox"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://gentoo.linux.no/ http://www.ibiblio.org/pub/Linux/distributions/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PKGUSE="( media-libs/smpeg => -gtk )( net-misc/vnc => -java )(
media-sound/timidity++ => -gtk )( app-crypt/gnupg => caps -X )( net-www/links =>
-X )( app-pda/multisync => evo irmc )( media-video/dvdrip => -gnome )(
media-gfx/imagemagick => -X )( net-www/mozilla => moznoirc moznomail
moznocompose )( media-sound/alsa-driver => oss )( sys-libs/glibc => pic )(
games-strategy/dopewars => -ncurses )( media-sound/lame => -gtk )(
app-cdr/cdrdao => -gnome )( media-sound/rhythmbox => xine )( app-misc/mc => -X )"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 avi crypt cups encode gif jpeg mad mikmod mpeg ncurses nls pdflib png
quicktime spell truetype xml2 xv zlib berkdb readline tetex java guile X sdl
tcpd pam libwww ssl esd imlib oggvorbis gnome gtk motif opengl ldap 3dnow acl
acpi alsa -apm -arts bonobo cdr dvd -foomaticdb -gdbm -gpm gtk2 gtkhtml jikes
-kde -libg++ maildir -mozilla mpi mmx oav odbc -oss pda -perl -python -qt samba
-slang -svga -xmms"
Comment 1 Alexander Papaspyrou 2004-01-09 04:58:19 UTC
Created attachment 23457 [details, diff]
Fix for the stated bug

This is a (the) fix for the stated misbehaviour. Note that I also did some
prettyprinting, message consistency stuff and a nicer "whoami" test.

Please review and commit upstream.
Comment 2 Alexander Papaspyrou 2004-01-09 05:00:07 UTC
ARGH! Wrong click... please reassign to the correct people. Sorry!
Comment 3 FL 2004-01-09 08:21:54 UTC
Created attachment 23471 [details]
fixed vpnclient file 

i am truly sorry, but the patch doesn't solve the problem for me. 
i am running a 2.6 kernel with udev. i don't now if the problem is related to
that, because it is actually the modprobe, which doesn't work for me. so i
changed the modprobe to insmod and rmmod. now the script is working. i
recreated the whole script with your and my changes.
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2004-01-10 06:07:30 UTC
I'll take a look at it when I get a chance.
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2004-01-13 11:02:59 UTC
Fixed in CVS...
Comment 6 FL 2004-02-07 07:38:09 UTC
the script isn't working in course of the /sbin/insmod -qs ${PC}/${VPNMOD} (line 38). remove the -qs and it will work.
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2004-02-07 09:57:15 UTC
Why would I need to remove the quiet and syslog flags?  They work with both modutils and module-init-tools.
Comment 8 SpanKY gentoo-dev 2004-02-12 11:38:58 UTC
root@vapier 0 root # /etc/init.d/vpnclient start
 * Starting Cisco VPN Client...
insmod: can't read '-qs': No such file or directory

if i change the syntax to be 'insmod cisco_ipsec -qs' i then get this:
insmod: error inserting '/lib/modules/2.6.3-rc2/CiscoVPN/cisco_ipsec': -1 Unknown symbol in module

if i remove the '-qs' it works :P
Comment 9 Chris Gianelloni (RETIRED) gentoo-dev 2004-02-12 11:58:18 UTC
That is very strange.  What do you get when you type a insmod --help?

On several of my systems it works perfectly, so I am wondering if it is something with the version of insmod.

Also, what if you remove the path from the insmod line?

I'll change it if it "fixes" the script, but I don't understand why legitimate commandline options are not working, so I would prefer to solve that rather than work around it if possible.
Comment 10 SpanKY gentoo-dev 2004-02-12 17:41:34 UTC
sys-apps/module-init-tools-3.0_pre9

root@vapier 0 root # insmod --help
insmod: can't read '--help': No such file or directory
root@vapier 0 root # insmod cisco_ipsec -qs
insmod: can't read 'cisco_ipsec': No such file or directory
Comment 11 Chris Gianelloni (RETIRED) gentoo-dev 2004-02-14 15:03:22 UTC
I guess I'll be changing it, then... This just pisses me off, because I *liked* being able to force the module load to be quiet and log via syslog.

By the way, sys-apps/module-init-tools-0.9.15_pre4 is what I'm running on, the latest stable x86.
Comment 12 Chris Gianelloni (RETIRED) gentoo-dev 2004-02-14 15:09:31 UTC
Fixed in CVS