cross compiling DHCP
dallas
dallas at commverse.com
Tue Jun 3 16:46:20 UTC 2008
Hi Theo,
Thanks for your response. I did manage to get things to
work after much trial and error. This was one of the more
challenging open source packages I've worked with.
Anyway, I ended up implementing a wrapper Makefile to expand
the source image, configure it, build it, and install it.
Here is what it looks like:
tar zxvf dhcp-$(DHCP_VERSION).tar.gz ;
cd dhcp-$(DHCP_VERSION) && \
./configure \
--prefix=$(ROOT_FS_IMAGE_DIR)/usr \
--exec-prefix=$(ROOT_FS_IMAGE_DIR) \
--build=$(BUILD) \
--host=$(HOST) \
CROSS_COMPILE=$(CROSS_COMPILE) \
CC=$(CROSS_BIN)/$(CROSS_COMPILE)gcc \
"LIBS=-L$(RAC_LIB_DIR) -lcrypto" \
RANLIB=$(RANLIB) \
ac_cv_file__dev_random=no && \
$(MAKE)
I was able to pass in some variables to ./configure that
were defined in a separate mak.inc which happened to be
applicable to other open source packages as well.
Hope this helps anyone struggling with cross-compiling. It
does work just fine for a cross-compiled client. I have not
actually verified that the server daemon is working properly
yet.
Thanks,
Dallas
----- Original Message Follows -----
From: Theo <gjalt006 at chello.nl>
To: dhcp-users at isc.org
Subject: Re: cross compiling DHCP
Date: Sun, 01 Jun 2008 15:33:16 +0200
> Hi Dallas,
>
> We've cross compiled the 4.0 version of DHCP for power-pc
> , if you are in need for the dhcp server I can provide you
> with our settings. The dhcp client does not work on our
> target: the messages generated are rejected by the dhcp
> server (on an 386-linux environment, generated without
> cross-compiling). For the moment I replaced the dhcp
> client with the precompiled version from ELDK.
>
> Succes,
> Theo.
>
>
> dallas schreef:
> > Hi All,
> >
> > Can anyone please give me some pointers on what options
> > to provide the ./configure script to cross-compile DHCP
> 4.1? >
> > I would like to compile DHCP with a ppc-linux-gcc cross
> > compiler from a x86 host.
> >
> > In the past I have been able to use the --target, --host
> > , --build options to enable cross compiling of various
> > other open source packages. I'm not having any luck
> with DHCP. >
> > This is what I've got currently:
> >
> > ./configure
> > --prefix=${RAC_ROOT_DIR}/cmc_image/dell_64/rootfs/usr
> > --exec-prefix=${RAC_ROOT_DIR}/cmc_image/dell_64/rootfs
> > --host=ppc-linux --target=ppc-linux
> >
> --build=${RAC_ROOT_DIR}/../cmc_toolchain/usr/bin/ppc-linux
> > -gcc
> >
> CC=${RAC_ROOT_DIR}/../cmc_toolchain/usr/bin/ppc-linux-gcc
> > "LIBS=-L${RAC_ROOT_DIR}/cmc_open/lib -lcrypto"
> ac_cv_file__dev_random=no >
> > As you can see, I'm getting desparate. Thanks in
> > advance for any help!
> >
> > -Dallas
> >
> >
> >
>
>
>
More information about the dhcp-users
mailing list