PHP-4.3.9-3 Recompile Fails

Paul Howarth paul at city-fan.org
Tue Nov 23 17:00:13 UTC 2004


Sanders, Christopher wrote:
> I need to add Sybase support to PHP.  Following a couple different pages 
> I found using Google, the process I used to modify the PHP rpm is as 
> follows:
> 
> I created a user called "rpmbuild", with it's own home directory 
> "/home/rpmbuild".
> 
> Everything has been done while logged in as the "rpmbuild" user.
> 
> I installed php-4.3.9-3.src.rpm using the command:
> rpm -ivh --define '_topdir /home/rpmbuild/rpm' php-4.3.9-3.src.rpm

Create a file ~rpmbuild/.rpmmacros with the following line:

%_topdir	%(echo $HOME)/rpm

You can then leave off the --define '_topdir /home/rpmbuild/rpm' when building 
RPMs.

> I created the necessary directories with the command:
> mkdir -p BUILD RPMS/i386 SRPMS
> 
> I then modified "rpm/SPECS/php.spec", adding the line 
> "--with-sybase=/opt/sybase", inserting it between a couple other --with 
> statements:
> 
> --with-kerberos \
> --with-sybase=/opt/sybase

Missing \ at the end of the line.

> --with-ldap=shared \
> --with-mysql=shared,%{_prefix} \
> 
> ...basically, I just picked a spot.  :)
> 
> I then attempt to rebuild the rpm using the command:
> rpmbuild --define '_topdir /home/rpmbuild/rpm' -ba 
> /home/rpmbuild/rpm/SPECS/php.spec
> 
> Eventually, it errors.  The screen output is:
> 
> -----
> checking whether to enable ctype functions... yes
> checking for CURL support... yes
> checking for CURL in default path... found in /usr
> checking for cURL 7.9.8 or greater... libcurl 7.12.1
> checking for curl_easy_perform in -lcurl... no
> configure: error: There is something wrong. Please check config.log for 
> more information.
> error: Bad exit status from /home/rpmbuild/rpm/tmp/rpm-tmp.16415 (%build)

Do you have the curl-devel package installed?

Paul.




More information about the fedora-list mailing list