Subject: Re: "syntax" error at startup with route/ifconfig binaries.
To: None <email@example.com>
From: Shiva Shenoy <firstname.lastname@example.org>
Date: 03/14/2001 14:08:44
Thanks! Bill. That was it. Statically linking
solved the problem for me.
# file /sbin/route
/sbin/route: ELF 32-bit LSB executable, Intel 80386,
version 1, dynamically linked (uses shared libs), not
# file /sbin/route.orig
/sbin/route.orig: ELF 32-bit LSB executable, Intel
80386, version 1, statically linked, stripped
--- Bill Sommerfeld
> > I have made some changes to the /sbin/ifconfig and
> > /sbin/route sources and replaced the binaries.
> > Now when I reboot, I get these synatx errors at
> > startup:
> > ifconfig: 1: Syntax error: "(" unexpected
> > However if I do a manual "dhclient" after booting
> > dhclient works fine. route and the ifconfig
> > work just fine after the bootup.
> > Any ideas on what is casuing the "syntax" errors?
> An exec() of these files failed, so the shell is
> falling back to
> interpreting the file contents as if they were a
> shell script.
> I'm not sure what might cause these exact symptoms;
> one (off the wall)
> guess is that you didn't statically link the new
> binaries. Everything
> in src/sbin/* is statically linked due to a
> directive in
> src/sbin/Makefile.inc; if you just checked out route
> and ifconfig and
> not sbin/Makefile.inc you'll miss the LDSTATIC?=
> -static declaration.
> - Bill
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.