LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 04-22-2009, 12:09 PM   #1
Thom_Redhat
Member
 
Registered: May 2003
Location: England
Distribution: Redhat9 Windows XP
Posts: 41

Rep: Reputation: 15
recompiling php5


Hi,

Im having issues recompiling PHP5 with an unmodified php5.spec file. In summary I downloaded the SRPM unpacked it, tried to recreate a RPM from this & it fails. I've included all my steps upto when I have issues with the RPM Build.

#uname -a Linux localhost.localdomain 2.6.18-128.1.6.el5 #1 SMP Wed Apr 1 09:10:25 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

I installed rpmbuild.

I downloaded "php-5.1.6-23.el5.src.rpm" from mirrors.centos.org. I then ran #rpm -Uvh php-5.1.6-23.el5.src.rpm which unpacked all the files into /usr/src/redhat/{BUILD},{SPECS},{RPMS},{SRPMS}.

cd /usr/src/redhat/specs

#rpmbuild -bb /usr/src/redhat/SPECS/php.spec

This at first gave me alot of dependency errors, which I resolved by installing the *-devel packages that was required by the compiler.

After running rpmbuild again, it gives me this error:
configure: error: There is something wrong. Please check config.log for more information.
error: Bad exit status from /var/tmp/rpm-tmp.63218 (%build)

I checked config.log which is about 300K in size & I'm unable to see why its failing.

I don't think anyone wants me to upload the entire 300K log file, but I do see alot of the following messages in my config.log or is there anything I should be looking for within this config.log.

191.configure: failed program was:
192.| /* confdefs.h. */


Many thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installing src php5 or tar php5 step by step jatender Linux - Software 2 06-28-2007 10:29 AM
application recompiling aral Programming 1 07-07-2006 08:46 AM
Help Recompiling the Kernel dedric Linux - Newbie 4 09-13-2004 01:23 AM
Is recompiling helpfull? ShadeX Linux - General 1 06-01-2004 05:39 PM
recompiling freetype eel Red Hat 1 11-10-2003 10:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration