error while giving make in ISC DHCP-4.2.3??????
sar at isc.org
Fri Dec 9 17:43:49 UTC 2011
On Dec 8, 2011, at 12:49 AM, <ameen.shajahan at wipro.com> <ameen.shajahan at wipro.com> wrote:
> Hi all,
> I want to cross compile the ISC DHCP-4.2.3 to armv5b compiler type.
> Command 1:
> [user at nemo dhcp-4.2.3]$./configure --prefix=/home/ameen/dhcp-4.2.3/output CC=/opt/crosstool/armv5b-linux/bin/armv5b-linux-gcc --enable-debug --with-srv6-lease-file=/var/db/dhcpd6.leases --with-cli6-lease-file=/var/db/dhclient6.leases --with-srv6-pid-file=/var/run/dhcpd6.pid --with-cli6-pid-file=/var/run/dhclient6.pid --with-relay-pid-file=/var/run/dhcrelay.pid --cache-file=config.cache
> ./configure command running successfully.
> Command 2:
> While issuing make command , its throwing an error which I mentioned below.
> [user at nemo dhcp-4.2.3]$ make
> Making all in bind
> make: Entering directory `/home/user/dhcp-4.2.3/bind'
> Configuring BIND Export libraries for DHCP.
> configure: WARNING: if you wanted to set the --build type, don't use --host.
> If a cross compiler is detected then cross compile mode will be used
> configure: WARNING: using cross tools not prefixed with host triplet
> Building BIND Export libraries - this takes some time.
> building in /home/user/dhcp-4.2.3/bind/bind-9.8.1/lib/export
> /bin/sh: ./gen: cannot execute binary file
> gmake: *** [include/dns/enumtype.h] Error 126
> gmake: *** [subdirs] Error 1
> make: *** [all] Error 2
> make: Leaving directory `/home/user/dhcp-4.2.3/bind'
> make: *** [all-recursive] Error 1
> I would like to know what would be the reason for this error.I am using ISC DHCP-4.2.3 package.
> Please let me know is there any procedure available for cross compiling ISC DHCP-4.2.3.
> Ameen S
I suspect that you are running into the fact that some of the configuration is not shared
between the DHCP code and the included BIND code, in particular the CC information.
If you look in the README file there is a workaround for this described for SOLARIS.
It amounts to restating the CC option on the make line. In your case that might be:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dhcp-users