error while giving make in ISC DHCP-4.2.3??????

Shawn Routhier 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[1]: 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[3]: *** [include/dns/enumtype.h] Error 126
> gmake[2]: *** [subdirs] Error 1
> make[1]: *** [all] Error 2
> make[1]: 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.
>  
> Regards,
> 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:

CC=/opt/crosstool/armv5b-linux/bin/armv5b-linux-gcc make

Shawn


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20111209/51aed235/attachment.html>


More information about the dhcp-users mailing list