Subject: Re: "syntax" error at startup with route/ifconfig binaries.
To: Jaromír <jdolecek@netbsd.org>
From: Shiva Shenoy <shiva_s@yahoo.com>
List: netbsd-help
Date: 03/14/2001 14:07:19
Turned out to be "statically vs dynamically linked"
thing. The tool chain was slightly different
as I had made some changes to it.
statically linking solved the problem.
# file /sbin/route
/sbin/route: ELF 32-bit LSB executable, Intel 80386,
version 1, dynamically linked (uses shared libs), not
stripped
# file /sbin/route.orig
/sbin/route.orig: ELF 32-bit LSB executable, Intel
80386, version 1, statically linked, stripped
----
Thanks
Shiva
--- Jaromír Dolecek <jdolecek@netbsd.org> wrote:
> Hum, seems like ELF vs. a.out issue. What version of
> system
> and architecture do you use ? What does 'file
> /sbin/ifconfig'
> say ?
>
> Jaromir
>
>
> Shiva Shenoy wrote:
> > 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
> > route: 1: Syntax error: "(" unexpected
> >
> > These seem to be coming from the /etc/rc.d/network
> > script. The lines route -n flush and ifconfig
> lo0...
> > seem to trigger this error.
> >
> > I have tried adding fully path names to these
> lines as
> > /sbin/route and /sbin/ifconfig and I get the same
> > errors.
> >
> > Even DHCP client seems to get the same error:
> > ifconfig: 1: Syntax error: "(" unexpected
> >
> > However if I do a manual "dhclient" after booting
> up,
> > dhclient works fine. route and the ifconfig
> commands
> > work just fine after the bootup.
> >
> > Any ideas on what is casuing the "syntax" errors?
> >
> > Thanks
> > Shiva Shenoy
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Auctions - Buy the things you want at great
> prices.
> > http://auctions.yahoo.com/
> >
>
>
> --
> Jaromir Dolecek <jdolecek@NetBSD.org>
> http://www.ics.muni.cz/~dolecek/
> *** Wanna a real operating system ? Go and get
> NetBSD, dammit! ***
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/