[ELDK] pcap library and tcpdump in ELDK
Dave Rensberger
David.Rensberger at ambientcorp.com
Wed Oct 29 22:52:13 CET 2008
Stefan,
I tried modifying the specfile for tcpdump in a way that looked
analogous to the modifications you guys had made for other ELDK
packages. So I changed the build section to look like:
%build
pushd %tcpslice_dir
#%configure
ac_cv_linux_vers=2
%configure \
--host=powerpc-linux --build=i386-pc-linux-gnu --with-pcap=linux
make %{?_smp_mflags}
popd
#%configure --with-user=tcpdump
ac_cv_linux_vers=2
%configure \
--host=powerpc-linux --build=i386-pc-linux-gnu --with-pcap=linux
make %{?_smp_mflags}
When I run ${CROSS_COMPILE}rpmbuild on this spec file, it still wants to
run configure with "--host=i386-pc-linux-gnu". Any ideas why?
--Dave
-----Original Message-----
From: stefano babic [mailto:stefano.babic at babic.homelinux.org]
Sent: Monday, October 20, 2008 3:53 PM
To: Dave Rensberger
Cc: Wolfgang Denk; eldk at lists.denx.de
Subject: Re: [ELDK] pcap library and tcpdump in ELDK
Dave Rensberger wrote:
> Even after getting the path right, I still have problems rebuilding
the
> pcap SRPM. It seems that the configure script still tries to do the
> "build a test program and run it" test, which should only work if
you're
> not cross-compiling (see output below).
Please take care that you are not using a source rpm from ELDK
distribution. In most cases the .spec in ELDK is modified, for example
to remove all conditions when a test program is executed, not possible
when cross-compiling.
>
> --Dave
>
> + ./configure --host=i386-pc-linux-gnu --build=i386-pc-linux-gnu
^^^
You are compiling for i386, not for powerpc. Try with
--host=powerpc-linux --build=i386-pc-linux-gnu.
Indeed, for libpcap/tcpdump, you will get other errors. You have to run
configure (for both libpcap/tcpdump) with:
ac_cv_linux_vers=2 ./configure --host=powerpc-linux
--build=i386-pc-linux-gnu --with-pcap=linux
Best regards,
Stefano Babic
--
stefano <stefano.babic at babic.homelinux.org>
GPG Key: 0x55814DDE
Fingerprint 4E85 2A66 4CBA 497A 2A7B D3BF 5973 F216 5581 4DDE
More information about the eldk
mailing list