<rdf:RDF
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xml:base='http://bliki.rimuhosting.com/rdf'>
    <s:Snip rdf:about='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications/Build+php+5.1.6+rpm+on+RHEL4'
         s:cUser='zu'
         s:oUser=''
         s:mUser='zu'>
        <s:name>knowledgebase/linux/miscapplications/Build php 5.1.6 rpm on RHEL4</s:name>
        <s:content>Some customers want to use apache2.2+php5 but they do not want to upgrade their RHEL4/CentOS4.&#xD;&#xA;&#xD;&#xA;According to customers&apos; requirements, we can grab SRPMs from CentOS 5 beta and build binary RPMs on RHEL4/CentOS4. Most likely we should get srpm of apr, apr-util, pcre, httpd and php&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;[root@happyrimu ~]# ls&#xD;&#xA;apr-1.2.7-10.src.rpm      httpd-2.2.3-5.el5.centos.1.src.rpm  php-5.1.6-3.src.rpm&#xD;&#xA;apr-util-1.2.7-3.src.rpm  pcre-6.6-1.1.src.rpm&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Then install these SRPMs:&#xD;&#xA;{code:none}&#xD;&#xA;rpm -Uvh *.src.rpm&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Then build RPMS:&#xD;&#xA;{code:none}&#xD;&#xA;cd /usr/src/redhat/SPECS&#xD;&#xA;rpmbuild -ba apr.spec&#xD;&#xA;{code}&#xD;&#xA;Building of httpd and its dependencies should be no problems. But unfortunately the building of php5 is not smooth. Build fails with the following errors:&#xD;&#xA;{code:none}&#xD;&#xA;checking for C compiler default output file name... configure: error: C&#xD;&#xA;compiler cannot create executables&#xD;&#xA;See `config.log&apos; for more details.&#xD;&#xA;error: Bad exit status from /var/tmp/rpm-tmp.21471 (%build)&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;I have tried many ways to resolve this error but all failed. Finally I found http://bugs.php.net/bug.php?id=36419 via search engines. According to this page, I removed &quot;-Wno-pointer-sign&quot; in php.spec, as a result, this error disappeared!&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;</s:content>
        <s:mTime>2007-03-18 01:01:07.0</s:mTime>
        <s:cTime>2007-03-18 00:52:00.0</s:cTime>
        <s:comments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications/Build php 5.1.6 rpm on RHEL4/'/>
                <rdf:li rdf:resource='#snipsnap-search'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications'/>
                <rdf:li rdf:resource='#snipsnap-index'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux'/>
                <rdf:li>
                    <s:Snip rdf:about='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications/Build+php+5.1.6+rpm+on+RHEL4'>
                        <s:attachments
                             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
                    </s:Snip>
                </rdf:li>
                <rdf:li rdf:resource='#knowledgebase'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications/rpm based mysql5 install'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/auto-restart'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/mail/postfix with amavis and mysql'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications/rpm based php5.1 install'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/distros/debian'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#start/2007-04-15/1'/>
            </rdf:Bag>
        </s:snipLinks>
    </s:Snip>
</rdf:RDF>
