Topic: Problems compiling snapshot

I'm trying to build a set of PHP RPMs on CentOS 5.5 using the latest (201009151630) snapshot tarball from php.net (in the hope that the snapshot will fix a vexing error we've encountered in PHP 5.3.2 and 5.3.3).  The SRPM built fine, but the compile process fails with this error:

rpmbuild --rebuild --define "rhel 5" --define "snapdate 201009151630" php-5.3.4-1.src.rpm

(snip)

cc: /usr/lib64/mysql/libmysqlclient.so: No such file or directory
make: *** [ext/mysqli/mysqli.la] Error 1
make: *** Waiting for unfinished jobs....
error: Bad exit status from /var/tmp/rpm-tmp.16514 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.16514 (%build)

I'm using the Percona fork of MySQL:
Percona-Server-client-51-5.1.49-rel11.3.110.rhel5
Percona-Server-server-51-5.1.49-rel11.3.110.rhel5
Percona-Server-shared-compat-5.1.48-6
Percona-Server-devel-51-5.1.49-rel11.3.110.rhel5

Suggestions on how to get the compile to work?

Re: Problems compiling snapshot

I have never try Percona, so I don't know what is the content of their RPM.

Don't know if I can help... but what is the result of

mysql_config
rpm -ql Percona-Server-devel

I think percona is compatible with mysql protocol, so, you can probably connect to the percona server using the standard mysql client.

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Problems compiling snapshot

# rpm -ql Percona-Server-devel-51

/usr/bin/mysql_config
/usr/include/mysql
/usr/include/mysql/decimal.h
/usr/include/mysql/errmsg.h
/usr/include/mysql/keycache.h
/usr/include/mysql/m_ctype.h
/usr/include/mysql/m_string.h
/usr/include/mysql/my_alloc.h
/usr/include/mysql/my_attribute.h
/usr/include/mysql/my_config.h
/usr/include/mysql/my_dbug.h
/usr/include/mysql/my_dir.h
/usr/include/mysql/my_getopt.h
/usr/include/mysql/my_global.h
/usr/include/mysql/my_list.h
/usr/include/mysql/my_net.h
/usr/include/mysql/my_no_pthread.h
/usr/include/mysql/my_pthread.h
/usr/include/mysql/my_sys.h
/usr/include/mysql/my_xml.h
/usr/include/mysql/mysql.h
/usr/include/mysql/mysql_com.h
/usr/include/mysql/mysql_embed.h
/usr/include/mysql/mysql_time.h
/usr/include/mysql/mysql_version.h
/usr/include/mysql/mysqld_ername.h
/usr/include/mysql/mysqld_error.h
/usr/include/mysql/plugin.h
/usr/include/mysql/sql_common.h
/usr/include/mysql/sql_state.h
/usr/include/mysql/sslopt-case.h
/usr/include/mysql/sslopt-longopts.h
/usr/include/mysql/sslopt-vars.h
/usr/include/mysql/typelib.h
/usr/lib64/mysql
/usr/lib64/mysql/libdbug.a
/usr/lib64/mysql/libheap.a
/usr/lib64/mysql/libmygcc.a
/usr/lib64/mysql/libmyisam.a
/usr/lib64/mysql/libmyisammrg.a
/usr/lib64/mysql/libmysqlclient.a
/usr/lib64/mysql/libmysqlclient.la
/usr/lib64/mysql/libmysqlclient_r.a
/usr/lib64/mysql/libmysqlclient_r.la
/usr/lib64/mysql/libmystrings.a
/usr/lib64/mysql/libmysys.a
/usr/lib64/mysql/libvio.a
/usr/lib64/mysql/libz.a
/usr/lib64/mysql/libz.la
/usr/share/aclocal/mysql.m4
/usr/share/man/man1/comp_err.1.gz
/usr/share/man/man1/mysql_config.1.gz

# mysql_config

Usage: /usr/bin/mysql_config [OPTIONS]
Options:
        --cflags         [-I/usr/include/mysql  -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -static-libgcc   -DUNIV_LINUX]
        --include        [-I/usr/include/mysql]
        --libs           [-rdynamic -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lrt -lmygcc]
        --libs_r         [-rdynamic -L/usr/lib64/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lrt -lpthread -lmygcc]
        --plugindir      [/usr/lib64/mysql/plugin]
        --socket         [/var/lib/mysql/mysql.sock]
        --port           [0]
        --version        [5.1.49]
        --libmysqld-libs [-rdynamic -L/usr/lib64/mysql -lmysqld -ldl -lz -lpthread -lcrypt -lnsl -lm -lrt -lpthread -lmygcc]

Percona is compatible with the mysql protocol.  The only issue I'm having is that the machine where I'm trying to compile the PHP snapshot already has the Percona stuff installed (and has some of my development databases on it, so I can't very well switch it out for stock MySQL on that machine).  I tried compiling last night on a VMWare instance running a clean CentOS install, and that seems to have worked.