On Thu, Jan 18, 2007 at 05:14:48PM -0800, John Oliver wrote:
> Trying to build a PHP 5 .src.rpm under RHEL 4 Update 4
> 
> [EMAIL PROTECTED] ~]# rpmbuild --rebuild php-5.1.6-3.src.rpm
[Lots of snipping...]

> checking for gcc... gcc
> checking for C compiler default output file name... configure: error: C
> compiler cannot create executables
> See `config.log' for more details.
> error: Bad exit status from /var/tmp/rpm-tmp.67455 (%build)
[More snipping...]

> [EMAIL PROTECTED] ~]# cat
> /usr/src/redhat/BUILD/php-5.1.6/build-cgi/config.log
[Even more...]

> configure:2550: checking for C compiler default output file name
> configure:2553: gcc -O2 -g -pipe -m32 -march=i386 -mtune=pentium4
> -fno-strict-aliasing -Wno-pointer-sign -DLDAP_DEPRECATED=1  conftest.c
> >&5
> cc1: error: unrecognized command line option "-Wno-pointer-sign"
> configure:2556: $? = 1

The gcc that comes with RHEL 4.4 is 3.4.6.  According to my brief
googling, it doesn't support the -W[no-]pointer-sign option (4.x does).
I don't know where you got the php SRPM, but I imagine it assumes a
certain gcc version without explicitly specifying it (or, rather, the
autoconf stuff was generated with a later version -- I'm not really all
that familiar with it).

The fix could be to rebuild the SRPM itself after re-running autoconf.

-chris

Attachment: pgpOWtMrX4qcH.pgp
Description: PGP signature

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to