php 4.3.10 and mysql 4.1.9-1

Support/Development for PHP
alitvak
Forum User
Forum User
Posts: 5
Joined: Wed Jan 19, 2005 2:11 am

php 4.3.10 and mysql 4.1.9-1

Unread post by alitvak »

Has anybody successfully built php-4.3.10 against mysql 4.1.9-1 rpms from art ?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post 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.
superbock
Forum User
Forum User
Posts: 9
Joined: Sun Feb 06, 2005 10:32 pm

Unread post 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
superbock
Forum User
Forum User
Posts: 9
Joined: Sun Feb 06, 2005 10:32 pm

Unread post 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
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post 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)
Post Reply