> rpm --rebuild --target=athlon ftp-0.17-4mdk.src.rpm
> rpm --rebuild --target=k7 ftp-0.17-4mdk.src.rpm
OK drop the '--target=athlon" part and see what happens. Do you
get the same output as before?
AFAIK Mandrake 8 uses a higher version of RPM than does 7.2. That
may be a factor, too. I don't know if the '--target=athlon" is
supported in the RPM in Mandrake 7.2. And I'm still curious as
to what commands that transmits to gcc and the Makefile(s).
I seem to remember there's a way (maybe rpm -bt or rpm -bi) to
build with a specific spec file. But you have to put the .src.rpm
in a special place (/usr/src/RPM) and there are several directories
underneath there for various things like source rpms, binary rpms,
spec files, sources, etc. Underneath RPMS are several directories that
correspond, I would think, to --target (i386,i486,i586) but on my system
K7 or Athlon are not listed.
after looking at an 8.0 mirror and downloading a sample small source
rpm to experiment with (I chose gnu bc) just doing an 'rpm --rebuild
--target=athlon" appears to simply pass the 'athlon' part to the
gcc so it compiles with the -mcpu=athlon flag. That's the part I wasn't
clear about. I guess experimentation is the key :).
Consequenty, that build fails in the .configure script run as part as
the rebuild, saying my C compiler can't generate executables. That's to
be expected, since the compiler flag doesn't work. Of course, when I
substitute --target=i686, it works, and adds flags in the Makefile that
(probably) make sense for Pentium Pro systems.
> /var/tmp/rpm-tmp.87677: fg: no job control
> Bad exit status from /var/tmp/rpm-tmp.87677 (%build)
Strange. What shell are you running? fg is bash / sh job control, it
should be built in. Why a script would want to play with that, I'm not
sure.
By the way, I just checked ftp.gnu.org today - the latest gcc is still
2.95.3, which is what I'm running.
> Abe
------------------------------------------------------------------------
David E. Fox Thanks for letting me
[EMAIL PROTECTED] change magnetic patterns
[EMAIL PROTECTED] on your hard disk.
-----------------------------------------------------------------------