Problem z kompilacją rpm

Michal Kochanowicz michal w michal.waw.pl
Czw, 5 Lip 2001, 15:46:34 CEST


Cześć

Chcę skompilować rpm'a bez patcha fast-alAddPackage, bo potrzebuję
*działającego* rpm. Robię to na i686 a pakiet docelowo ma być
zainstalowany na i586. Robię więc:
# rpm -bb --target=i586 rpm.spec
./configure wywala się z takim komunikatem:

Building target platforms: i586
Building for target i586
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.96634
Patch #0 (rpm-rpmrc.patch):
Patch #1 (rpm-macros.patch):
Patch #2 (rpm-arch.patch):
Patch #3 (rpm-rpmpopt.patch):
Patch #4 (rpm-perl-macros.patch):
Patch #5 (rpm-db3.patch):
Patch #6 (rpm-segv.patch):
Patch #7 (rpm-am_fix.patch):
Patch #8 (rpm-perl-req-perlfile.patch):
Patch #9 (rpm-installplatform.patch):
Patch #10 (rpm-cache.patch):
Patch #11 (rpm-suggestions.patch):
Patch #12 (rpm-rh-lame.patch):
Patch #13 (rpm-glob.patch):
Patch #14 (rpm-header_h.patch):
Patch #16 (rpm-byKey.patch):
Patch #17 (rpm-perlprov.patch):
Patch #18 (rpm-noperldir.patch):
Patch #19 (popt-cvs20010530.patch):
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.29200
+ umask 022
+ cd /home/misiek/CVS/pld/BUILD
+ cd rpm-4.0.2
+ cd popt
+ autoupdate
+ libtoolize --force --copy
You should update your `aclocal.m4' by running aclocal.
+ aclocal
+ autoheader
+ autoconf
+ automake -a -c
automake: configure.in: installing `./depcomp'
+ cd ..
+ autoupdate
+ libtoolize --force --copy
You should update your `aclocal.m4' by running aclocal.
+ gettextize --copy --force
Wiping out intl/ subdirectory
Copying file ABOUT-NLS
Copying file intl/ChangeLog
Copying file intl/Makefile.in
Copying file intl/VERSION
Copying file intl/bindtextdom.c
Copying file intl/config.charset
Copying file intl/dcgettext.c
Copying file intl/dcigettext.c
Copying file intl/dcngettext.c
Copying file intl/dgettext.c
Copying file intl/dngettext.c
Copying file intl/explodename.c
Copying file intl/finddomain.c
Copying file intl/gettext.c
Copying file intl/gettext.h
Copying file intl/gettextP.h
Copying file intl/hash-string.h
Copying file intl/intl-compat.c
Copying file intl/l10nflist.c
Copying file intl/libgettext.h
Copying file intl/libgnuintl.h
Copying file intl/loadinfo.h
Copying file intl/loadmsgcat.c
Copying file intl/localcharset.c
Copying file intl/locale.alias
Copying file intl/localealias.c
Copying file intl/ngettext.c
Copying file intl/plural.c
Copying file intl/plural.y
Copying file intl/ref-add.sin
Copying file intl/ref-del.sin
Copying file intl/textdomain.c
Copying file po/Makefile.in.in
Removing po/cat-id-tbl.c
Removing po/stamp-cat-id
Creating po/ChangeLog

Please add the files
  codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
  progtest.m4
from the /usr/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

+ aclocal
+ autoheader
+ autoconf
+ sed -e s#cpio.c $(DBLIBOBJS) depends.c#cpio.c depends.c#g lib/Makefile.am
+ > lib/Makefile.am.new 
+ mv -f lib/Makefile.am.new lib/Makefile.am
+ automake -a -c
automake: configure.in: installing `./depcomp'
+ sed -e s#cpio.c depends.c#cpio.c $(DBLIBOBJS) depends.c#g lib/Makefile.in
+ > lib/Makefile.in.new 
+ mv -f lib/Makefile.in.new lib/Makefile.in
+ ./configure LDFLAGS=-s CFLAGS=-O2 -march=i586 CXXFLAGS=-O2 -march=i586 FFLAGS=-O2 -march=i586 CC=gcc --build=i586-pld-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-v1-packages
configure: WARNING: LDFLAGS=-s: invalid host type
configure: WARNING: CFLAGS=-O2 -march=i586: invalid host type
configure: error: can only configure for one host and one target at a time
error: Bad exit status from /var/tmp/rpm-tmp.29200 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.29200 (%build)

Wyrzuciłem z /etc/rpmrc wszystko ale efekt ten sam.
-- 
--= Michal Kochanowicz==--==--==BOFH==--==--==michal w michal.waw.pl =--
--= finger me for PGP public key or visit http://michal.waw.pl/PGP =--
--==--==--==--==--==-- Vodka. Connecting people.--==--==--==--==--==--



Więcej informacji o liście dyskusyjnej pld-devel-pl