[ELDK] Fwd: Re: Rebuilding target package httpd-2.2.4-4.1.src.rpm with ELDK-4.2 (ppc_85xxDP-)
Christoph Maurer
ch.maurer at gmx.de
Fri Nov 28 16:21:10 CET 2008
Hello Wolfgang,
I experimented for a while and I managed to cross-compile like this:
- I installed Fedora 9, and everything cross-compiled with success
- I uninstalled the existing apache which was on my suse linux and then cross-compiling worked, too...
Thank you for helping!
Could you maybe help me with the following:
When compiling httpd on my normal Linux PC with 'configure --prefix=/wwwroot <more options>' and 'make', then a subsequent 'make install' will copy/install all files/dirs into that one directory /wwwroot.
If I want to compile a different module afterwards, I can specify the path to apxs, for example: './configure --with-apx2=/wwwroot/bin/apxs'.
The ELDK httpd.spec file cross-compiles httpd twice, once into directory worker and once into directory prefork. Now afterwards I want to cross-compile a different module and I want to pass in the correct path to apxs. How can I do a 'make install' after the rpmbuild of httpd.spec so that all files end up in one directory such as /wwwroot?
Thank you and regards,
Christoph
-------- Original-Nachricht --------
Datum: Mon, 24 Nov 2008 22:53:38 +0100
Von: Wolfgang Denk <wd at denx.de>
An: "Christoph Maurer" <ch.maurer at gmx.de>
CC: eldk at lists.denx.de
Betreff: Re: [ELDK] Rebuilding target package httpd-2.2.4-4.1.src.rpm with ELDK-4.2 (ppc_85xxDP-)
Dear Christoph,
In message <20081124082147.307250 at gmx.net> you wrote:
>
> Here is what I did:
>
> Linux is:
> openSUSE 11.0 (i586)
Hm... I never trusted SuSE. They always did strange things...
> - downloaded ELDK 4.2 ISO image
> Which one to download? I downloaded
> ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/eldk/4.2/ppc-linux-x86/iso/ppc-2008-04-01.iso
OK.
> - install ELDK
> /media/ppc-2008-04-01> ./install -d /home/christoph/ELDK-4.2 ppc_85xxDP
OK.
> - set environment variables
> export CROSS_COMPILE=ppc_85xxDP-
> export PATH=/home/christoph/ELDK-4.2/usr/ppc-linux/bin:/home/christoph/ELDK-4.2/usr/bin:/home/christoph/ELDK-4.2/bin:$PATH
OK.
> Environment is now set to:
> > set|grep CROSS
> CROSS_COMPILE=ppc_85xxDP-
> > set|grep PATH
> PATH=/home/christoph/ELDK-4.2/usr/ppc-linux/bin:/home/christoph/ELDK-4.2/usr/bin:/home/christoph/ELDK-4.2/bin:/opt/kde3/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:.:/us
> r/lib/qt3/bin
>
> - install apache source rpm
> ${CROSS_COMPILE}rpm is in ~/ELDK-4.2/bin/ppc_85xxDP-rpm, so ~/ELDK-4.2/bin must be in the path
>
> Now I download
> 'ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/eldk/4.2/ppc-linux-x86/sources/target/SRPMS/httpd-2.2.4-4.1.src.rpm'
All OK.
> I copy the 'httpd-2.2.4-4.1.src.rpm' to '~/ELDK-4.2/usr/src/denx/SRPMS/'
Not needed, but doesn't hurt either.
> and cd into that dir and then run
>
> ~/ELDK-4.2/usr/src/denx/SRPMS> ${CROSS_COMPILE}rpm -iv httpd-2.2.4-4.1.src.rpm
> httpd-2.2.4-4.1
> ~/ELDK-4.2/usr/src/denx/SRPMS>
>
> Now I get httpd stuff in ~/ELDK-4.2/usr/src/denx/SOURCES and ~/ELDK-4.2/usr/src/denx/SPECS which were empty before
OK.
> I cd into ~/ELDK-4.2/usr/src/denx/SPECS and rpmbuild:
> ~/ELDK-4.2/usr/src/denx/SPECS> ${CROSS_COMPILE}rpmbuild -ba httpd.spec
That's OK, too.
> config.status: creating include/ap_config_auto.h
> config.status: executing default commands
> + sed -e /LIBTOOL/s/top_builddir/apr_builddir/ srclib/apr/build/apr_rules.mk
> sed: kann srclib/apr/build/apr_rules.mk nicht lesen: Datei oder Verzeichnis nicht gefunden
> error: Bad exit status from /home/christoph/ELDK-4.2/var/tmp/rpm-tmp.16545 (%build)
I can only speculate that something about libtool is behaving funny
(or not so funny in your environment).
Please see attachment for a complete build log on a Fedora 9 box.
[Note that I installed in /home/user/ELDK-4.2/ as you used in the
first examples.]
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
There is enough for the need of everyone in this world,
but not for the greed of everyone. - Mahatma Gandhi
--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
More information about the eldk
mailing list