From Bugzilla Helper: User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.2.19 i586; Nav) Description of problem: The /usr/lib/rpm/rpmrc file of rpm-build-4.02-5x contains the entry optflags: i386 -O2 -march=i386 -mcpu-i686 This results in failure of configure scripts when compiling openssh-2.9p1-1.src.rpm (from www.openssh.com). Gcc burps on the -march and -mcpu options.on a 486 Red Hat 5.2 machine running gcg-2.7.2.3-14.i386.rpm, saying that the options are not found. The problem is solved by commenting out the optflags: i386 and uncommenting the old one: optflags: i386 -O2 -m386 -fno-strength=reduce which, thankfully, is still in the file. How reproducible: Always Steps to Reproduce: 1. wget ftp://ftp.openssh.com/pub/OpenBSD/OpenSSH/portable/rpm/SRPMS/openssh-2.9p1-1.src.rpm 2.rpm -ivh openssh*src.rpm 3.rpmbuild -ba openssh.spec Actual Results: rpm build reports an error from the /tmp script that is used to configure and compile openssh. Expected Results: rpm should build the rpm without Additional info: Additional info seems unnecessary because the fix is provided above.
The other (and possibly better) alternative is to use egcs for compiling, that's the compiler that was used for everything but the kernel in Red Hat 5.2. Meanwhile, rpm tries to distribute a default configuration that is correct for most platforms.