[uClibc]Compiling uDHCP

Geoffrey Espin espin at idiom.com
Fri Feb 1 17:54:41 UTC 2002


On Sat Jan 26, 2002 at 02:04:14PM -0500, Thomas Cameron wrote:
> 	I am compiling the uDHCP package (both client and server as
> combined binary) against uClibc.  I have had a few problems, however,
> when actually attempting to run the executable in my target system.  I
> am using the stable uClibc-0.9.8, and compiling for x86.
> 	The error message I receive is as follows:
> udhcpc: File not found
> -or-
> udhcpd: File not found
> 	All of the libraries are present (that I can think of), and
> doing a `strings udhcpd |more` would confirm that theory.  What else
> generates this error?  Additionally, I changed the default location for
> the default script in the source before compiling.  All script files are
> present (AFAIK).  Any ideas?  Thanks in advance!

With this amount of info, your $PATH could be wrong. :-/

Did you cd to the directory and try ./udhcpd ?
Using strings is not as foolproof :-) as using "ldd udhcpd".
You should also try compiling them with -static.
Also explicit specifiy the path with "udhcpd -d /etc/udhcpc -p sample."
Check read permissions of the files /etc/udhcpc/sample.{bound,renew,deconfig}.

Geoff
-- 
Geoffrey Espin
espin at idiom.com



More information about the uClibc mailing list