Page 1 of 1

php 4.3.10 and mysql 4.1.9-1

Posted: Wed Jan 19, 2005 2:13 am
by alitvak
Has anybody successfully built php-4.3.10 against mysql 4.1.9-1 rpms from art ?

Posted: Wed Jan 19, 2005 2:43 pm
by scott
Yep! :P Theres nothing special about it (unless you're dealing with mysqli). Its just a licensing issue, its not exactly clear that I can distribute php rpms built against mysql4 and up.

Posted: Wed Feb 16, 2005 4:31 pm
by superbock
I'm trying to build 4.3.10 against 4.1.9, both with Scott's SRPMS. MySQL built and installed fine. But i can't build PHP now:

checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.
error: Bad exit status from /var/tmp/rpm-tmp.85662 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.85662 (%build)
[root@web2 SPECS]# rpm -qa | grep mysql
mysql-devel-4.1.9-1.rhfc1.art
mysql-compat-4.1.9-1.rhfc1.art
mysql-server-4.1.9-1.rhfc1.art
mysql-4.1.9-1.rhfc1.art

All files seem to be on the correct place.

I'm using this to build: rpmbuild -ba --with mhash --with mcrypt --define 'rhfc1 1' php-4.3.10-art.spec

Any hints?

Tks,
r

Posted: Wed Feb 16, 2005 7:15 pm
by superbock
update on this.. i found the problem.

I edited the spec file and removed ",{%prefix}" in front of --with-mysql=shared. It is now compiling.

But i reverted MySQL to 4.0.23a, because i read around here that PSA is not compatible with 4.1.x. Correct?

BR,
r

Posted: Thu Feb 17, 2005 9:50 am
by scott
that is correct, there are a number of compatibility issues with PSA and other web applications. (Timestamp fields, and the way passwords are handled for starters)