problem configuring dhcp-4.0.0 in cross build
Jeff Haran
jharan at Brocade.COM
Fri Dec 5 01:17:35 UTC 2008
> -----Original Message-----
> From: dhcp-users-bounces at lists.isc.org
> [mailto:dhcp-users-bounces at lists.isc.org] On Behalf Of Jeff Haran
> Sent: Thursday, December 04, 2008 12:15 PM
> To: dhcp-users at lists.isc.org
> Subject: problem configuring dhcp-4.0.0 in cross build
>
> Hi,
>
> I am attempting to build dhcp-4.0.0 for a PowerPC target system on a
> linux X86 build system (fairly recent Redhat distro). When I do the
> ./configure it terminates with the following:
>
> checking for library containing inet_ntoa... none required
> checking for library containing inet_aton... none required
> checking for library containing regcomp... none required
> checking for library containing if_nametoindex... none required
> checking for /dev/random... configure: error: cannot check for file
> existence when cross compiling
> make[1]: *** [dhcp-4.0.0/config.h] Error 1
>
> Web references I have found mention the following:
>
> ./configure .... --with-randomdev=
>
> but including --with-randomdev= on the command line to
> configure results
> in the same error.
>
> Any clues to getting past this problem?
>
> Thanks,
>
> Jeff Haran
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
BTW, I figured this out.
For the sake of posterity and other automake-challenged code monkeys
like myself who may run into this, the trick was to create the following
file:
bash-3.00$ cat config.cache
ac_cv_file__dev_random=yes
bash-3.00$
and then configure like so:
./configure --host=powerpc-linux --cache-file=config.cache
Note that this causes your original config.cache to be overwritten, so
keep a copy around.
Jeff Haran
More information about the dhcp-users
mailing list