Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137478 - dhcpcd does not run dhcpcd.exe
Summary: dhcpcd does not run dhcpcd.exe
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-21 04:30 UTC by Dirk
Modified: 2006-06-23 03:41 UTC (History)
2 users (show)

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


Attachments
dhcpcd.exe (dhcpcd.exe,70 bytes, text/plain)
2006-06-21 06:22 UTC, Dirk
Details
Use unsigned ints for lease times (dhcpcd.patch,3.79 KB, patch)
2006-06-21 08:22 UTC, Roy Marples (RETIRED)
Details | Diff
increase arg count (dhcpcd.patch,4.07 KB, patch)
2006-06-21 10:34 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk 2006-06-21 04:30:33 UTC
Hello,

I don't know if i miss something, but in my dhcpcd installation dhcpcd.exe is never run.

The process as "ps aux" reports is :

root     32281  0.0  0.0   1752   284 ?        Ss   11:08   0:00 /sbin/dhcpcd -h willow -c /etc/dhcpc/dhcpcd.exe -G 192.168.0.1 -R -o eth1

And the file "/etc/dhcpc/dhcpcd.exe" definately exists. And even if I change the config to run "/etc/dhcpc/dhcpcd.dumy" (does not exist) I don't get an error message.

Has somebody any idea? (I already tried the reinstallation)

Thanks
Dirk

emerge -pv dhcpcd
[ebuild   R   ] net-misc/dhcpcd-2.0.6  USE="-build -debug -static" 0 kB

emerge --info

Portage 2.1.1_pre1-r1 (default-linux/ppc/ppc32/2006.0/G4, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo ppc)
=================================================================
System uname: 2.6.17-gentoo ppc 7450, altivec supported
Gentoo Base System version 1.12.1
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
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-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="ppc ~ppc"
ACCEPT_LICENSE=""
ARCH="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing"
CHOST="powerpc-unknown-linux-gnu"
CLEAN_DELAY="5"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CVS_RSH="ssh"
CXXFLAGS="-O2 -pipe -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="-v"
EMERGE_WARNING_DELAY="10"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -P ${DISTDIR} ${URI}"
GDK_USE_XFT="1"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://mirror.switch.ch/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo http://gentoo.mirror.solnet.ch http://mir.zyrianes.net/gentoo/ ftp://mir.zyrianes.net/gentoo/"
G_BROKEN_FILENAMES="1"
G_FILENAME_ENCODING="UTF-8"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.16.1/info:/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.1.1/info"
INPUT_DEVICES="keyboard mouse"
KDEDIRS="/usr"
KERNEL="linux"
LAND="de_DE@euro"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LOGNAME="root"
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.flac=01;35:*.mp3=01;35:*.mpc=00;36:*.ogg=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.flac=00;36:*.aac=00;36:"
LS_OPTIONS="--color=auto"
MAIL="/var/mail/root"
MAKEOPTS="-j2"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/powerpc-unknown-linux-gnu/2.16.1/man:/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.1.1/man:/usr/qt/3/doc/man"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc s390 amd64 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha ppc-macos hppa x86"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_CALLER="emerge"
PORTAGE_CONFIGROOT="/"
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_MAILFROM="portage"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORT_LOGDIR="/var/log/portage"
PRELINK_PATH=""
PRELINK_PATH_MASK=""
PWD="/root"
PYTHONPATH="/usr/lib/portage/pym"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -P ${DISTDIR} ${URI}"
ROOT="/"
RPMDIR="/usr/portage/rpm"
SHELL="/bin/bash"
SHLVL="1"
SSH_CLIENT="212.64.224.241 49053 443"
SSH_CONNECTION="212.64.224.241 49053 86.200.106.7 443"
SSH_TTY="/dev/pts/2"
STAGE1_USE="altivec unicode"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="xterm"
USE="ppc X alsa altivec apache2 apm arts berkdb bitmap-fonts bonobo bzip2 cdr cli crypt cups dri dvd eds emboss encode esd fam ffmpeg foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 gtkhtml imap imlib ipv6 isdnlog jpeg libg++ libwww mad maildir matroska mikmod motif mozilla mp3 mpeg mpeg2 mysql ncurses nls nptl nptlonly ogg opengl pam pam-mysql pcre pdflib perl php png pppd python quicktime readline reflection ruby sasl sdl session spell spl ssl tcpd tiff truetype truetype-fonts type1-fonts udev unicode utf8 vhosts vorbis xml xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_vga video_cards_fbdev video_cards_nv"
USER="root"
USERLAND="GNU"
USE_EXPAND="DVB_CARDS ELIBC FCDSL_CARDS FRITZCAPI_CARDS INPUT_DEVICES KERNEL LINGUAS LIRC_DEVICES USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults"
VIDEO_CARDS="vga fbdev nv"
XARGS="xargs -r"
_="/usr/bin/emerge"
Comment 1 Roy Marples (RETIRED) gentoo-dev 2006-06-21 06:04:43 UTC
Please post the output of

ls -l /etc/dhcpc

And attach /etc/dhcpc/dhcpcd.exe to this bug

Thanks
Comment 2 Dirk 2006-06-21 06:22:38 UTC
Created attachment 89714 [details]
dhcpcd.exe
Comment 3 Dirk 2006-06-21 06:27:31 UTC
(In reply to comment #1)

As requested:

ls -l /etc/dhcpc
-rwxr-xr-x 1 root root 225 Jun 21 10:09 dhcpcd.exe
Comment 4 Roy Marples (RETIRED) gentoo-dev 2006-06-21 06:31:37 UTC
Well, that looks ok.

Try putting this before the logger call in dhcpcd.exe
echo $$ > /tmp/dhcpcd.test

restart dhcpcd or net.eth0 and see if it exists or not
Comment 5 Dirk 2006-06-21 06:36:39 UTC
(In reply to comment #4)

No, dhcpcd.test is not created.
Comment 6 Roy Marples (RETIRED) gentoo-dev 2006-06-21 06:41:40 UTC
Does the file get created if you call /etc/dhcpc/dhcpcd.exe by hand?
Does dhcpcd actually configure eth1?

Do earlier versions of dhcpcd work? If so, which? I've got a feeling that dhcpcd-2.0.3 may work for you ....
Comment 7 Dirk 2006-06-21 06:49:20 UTC
(In reply to comment #6)

Yes the call by hand does create dhcpcd.test and Yes dhcpcd does configure the interface.
This is the corresponding line from the system log:

dhcpcd[3804]: your IP address = 86.206.99.10

I did not use dhcpcd for a while. The last time might be 6 month ago. Then it worked. Now I want to restart snort whenever the interface is reconfigured.
I cant use post_up() since an IP change is not causing the interface to go down and up.
Comment 8 Dirk 2006-06-21 06:58:30 UTC
(In reply to comment #6)

> Do earlier versions of dhcpcd work? If so, which? I've got a feeling that
> dhcpcd-2.0.3 may work for you ....

You were right. I installed 2.0.5 ==> no go. And after that 2.0.3 ==> works

So it seams to be clearly linked to 2.05 and 2.06

But am I alone here? Something special on my stystem or something general?
 

Comment 9 Roy Marples (RETIRED) gentoo-dev 2006-06-21 08:22:25 UTC
Created attachment 89728 [details, diff]
Use unsigned ints for lease times

Please try this patch - if it doesn't work it should state what file it will exec when called with the -d option.
Comment 10 Roy Marples (RETIRED) gentoo-dev 2006-06-21 09:21:57 UTC
This seems to be a gcc-4.1.1 bug on ppc - using gcc-3.4.6 fixes the issue.

CC'ing josejx who's looking into it and the ppc herd in general so they are aware of the issue.
Comment 11 Dirk 2006-06-21 09:29:15 UTC
(In reply to comment #9)

> Please try this patch - if it doesn't work it should state what file it will
> exec when called with the -d option.
> 

can you give me a short excurse about how to do that, or a link where it is explained. (extracting the package? applying the patch? manual compile?)
Comment 12 Dirk 2006-06-21 10:03:24 UTC
(In reply to comment #9)

> Please try this patch - if it doesn't work it should state what file it will
> exec when called with the -d option.
> 

I think I figuered it out. (http://gentoo-wiki.com/HOWTO_Create_an_Updated_Ebuild)

After applying the patch dhcpcd.exe is still not called but I get the following error

Error, error executing " /var/lib/dhcpc/dhcpcd-eth1.info new": No such file or directory 

DHCPCD starts and functions nevertheless.

Comment 13 Roy Marples (RETIRED) gentoo-dev 2006-06-21 10:25:00 UTC
(In reply to comment #12)
> Error, error executing " /var/lib/dhcpc/dhcpcd-eth1.info new": No such file or
> directory 
> 
> DHCPCD starts and functions nevertheless.
> 

Yeah, compiling dhcpcd-2.0.{5,6} with gcc-4.1.1 on ppc is trashing the variable that holds the program to run - compiling with gcc-3.4.6 works.
Comment 14 Roy Marples (RETIRED) gentoo-dev 2006-06-21 10:34:39 UTC
Created attachment 89741 [details, diff]
increase arg count

Thanks to JoseJX and lu_zero.

Please test and report back
Comment 15 Dirk 2006-06-21 10:41:55 UTC
(In reply to comment #14)
>
> Please test and report back
> 

Yes now it works. No errors no complains. And dhcpcd.exe is called.

Thanks
Comment 16 Roy Marples (RETIRED) gentoo-dev 2006-06-23 03:41:52 UTC
dhcpcd-2.0.7 is in portage with this fix