[ELDK] Rebuilding target package httpd-2.2.4-4.1.src.rpm with ELDK-4.2 (ppc_85xxDP-)

Wolfgang Denk wd at denx.de
Mon Nov 17 17:25:38 CET 2008


Dear Christoph,

In message <20081114103502.16830 at gmx.net> you wrote:
> I am trying to rebuild httpd-2.2.4-4.1.src.rpm with ELDK-4.2 (ppc_85xxDP-)
> 
> I cannot compile apache 2.2.4 with ELDK-4.2, I get this error:

It seems you did not follow the instructions.

> export CROSS_COMPILE=ppc_85xxDP-
> export PATH=/home/user/ELDK-4.2/usr/bin:/home/user/ELDK-4.2/bin:/home/user/ELDK-4.2/usr/ppc-linux/bin:$PATH

This is nt correct. Please mind bullet # 2 in section "3.7.2.
Rebuilding Target Packages" - see
http://www.denx.de/wiki/view/DULG/ELDKRebuildingComponents#Section_3.7.2.
:

	The <ELDK_root>/usr/ppc-linux/bin  directory must be in PATH
	before the /usr/bin directory. This is to make sure that the
	command gcc results in the fact that the ELDK cross compiler
	is invoked, rather than the host gcc. 

I just tried this out, using the following commands:

$ eldk-switch 85xxDP
$ mkdir tmp
$ cd tmp
$ mkdir BUILD SOURCES SPECS SRPMS RPMS{,noarch,athlon,i386,i486,i586,i686,ppc}
$ ${CROSS_COMPILE}rpm --define="_topdir `pwd`" -iv httpd-2.2.4-4.1.src.rpm
$ PATH=/opt/eldk-4.2/usr/ppc-linux/bin:$PATH
$ ${CROSS_COMPILE}rpmbuild --define="_topdir `pwd`" -ba SPECS/httpd.spec 
...
Processing files: httpd-debuginfo-2.2.4-4.1
Checking for unpackaged file(s): /opt/eldk-4.2-2008-04-01/usr/lib/rpm/check-files /opt/eldk-4.2-2008-04-01/var/tmp/httpd-2.2.4-4.1-root
Wrote: /work/tmp/SRPMS/httpd-2.2.4-4.1.src.rpm
Wrote: /work/tmp/RPMS/ppc/httpd-ppc_85xxDP-2.2.4-4.1.ppc.rpm
Wrote: /work/tmp/RPMS/ppc/httpd-devel-ppc_85xxDP-2.2.4-4.1.ppc.rpm
Wrote: /work/tmp/RPMS/ppc/httpd-manual-ppc_85xxDP-2.2.4-4.1.ppc.rpm
Wrote: /work/tmp/RPMS/ppc/mod_ssl-ppc_85xxDP-2.2.4-4.1.ppc.rpm
Wrote: /work/tmp/RPMS/ppc/httpd-debuginfo-ppc_85xxDP-2.2.4-4.1.ppc.rpm
Executing(%clean): /bin/sh -e /opt/eldk-4.2-2008-04-01/var/tmp/rpm-tmp.41224
+ umask 022
+ cd /work/tmp/BUILD
+ cd httpd-2.2.4
/work/tmp/BUILD/httpd-2.2.4
+ rm -rf /opt/eldk-4.2-2008-04-01/var/tmp/httpd-2.2.4-4.1-root
+ exit 0
$ 

As you can see, it works like a charm :-)

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
The universe does not have laws - it has habits, and  habits  can  be
broken.


More information about the eldk mailing list