PHP-4.3.9-3 Recompile Fails

Sanders, Christopher Chris.Sanders at morpho.com
Tue Nov 23 16:49:17 UTC 2004


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

...which is successful.

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
--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)


RPM build errors:
    Bad exit status from /home/rpmbuild/rpm/tmp/rpm-tmp.16415 (%build)
-----

The config.log shows:

-----
#define STDC_HEADERS 1
#define WITH_BCMATH 1
#define YYTEXT_POINTER 1
#endif
#ifdef __cplusplus
extern "C" void std::exit (int) throw (); using std::exit;

configure: exit 1
-----

I found this bugzilla result:
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=131054

That appears to be related to my issue, if not it exactly.  No fix, though,
as I guess this was to be patched?

Any assistance would be greatly appreciated.

Thanks,
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20041123/bf45ded6/attachment-0001.htm>


More information about the fedora-list mailing list