Perhaps somebody can help?
I'm trying to build PHP 5.1.5 (also tried 5.2.0 with same result) and the configure is bombing on the MySQL stuff.
I have MySQL 4 built exactly like the mips4 neko package.
Here's all the info.
The MySQL sock is in the proper location, as is MySQL itself (/usr/nekoware/mysql4). Maybe someone can explain the problem?
Environment variables I'm using:
Code:
export CC=c99
export CFLAGS='-O3 -mips3 -I/usr/nekoware/include -OPT:Olimit=0:roundoff=3'
export CXXFLAGS=$CFLAGS
export CPPFLAGS='-I/usr/nekoware/include'
export CXX=CC
export F77=f77
export LDFLAGS='-L/usr/nekoware/lib -rpath /usr/nekoware/lib'
export PKG_CONFIG=/usr/nekoware/bin/pkg-config
export PKG_CONFIG_PATH='/usr/nekoware/lib/pkgconfig'
export PKG_CONFIG_LIBDIR='/usr/nekoware/lib'
export LD_LIBRARY_PATH='/usr/nekoware/lib'
export LD_LIBRARYN32_PATH='/usr/nekoware/lib'
export LD_LIBRARY64_PATH='/usr/nekoware/lib64'
export GNOME2_DIR='/usr/nekoware'
export GNUMAKE='/usr/nekoware/bin/make'
export PATH=/usr/nekoware/bin:$PATH
export PYTHONHOME=/usr/nekoware
export PYTHONPATH=/usr/nekoware/lib/python2.4
export PERL=/usr/nekoware/bin/perl
export QTDIR=/usr/nekoware/qt4
Configure flags:
Code:
--prefix=/usr/nekoware/php5 \
--with-apxs2=/usr/nekoware/apache2/bin/apxs \
--disable-cgi \
--enable-tokenizer \
--enable-dio \
--enable-aggregate \
--enable-memory-limit \
--enable-dba=shared \
--enable-dbx \
--with-inifile \
--with-flatfile \
--enable-calendar \
--enable-bcmath \
--enable-shmop \
--enable-sysvshm=yes \
--enable-sysvsem=yes \
--enable-track-vars=yes \
--enable-url-includes \
--enable-memory-limit \
--enable-wddx \
--enable-soap=shared \
--with-config-file-path=/usr/nekoware/etc/php5 \
--with-libxml-dir=/usr/nekoware \
--with-expat-dir=/usr/nekoware \
--with-png-dir=/usr/nekoware \
--with-jpeg-dir=/usr/nekoware \
--with-freetype-dir=/usr/nekoware \
--with-zlib-dir=/usr/nekoware \
--with-zlib \
--with-curlwrappers \
--with-curl=shared,/usr/nekoware \
--with-openssl=shared,/usr/nekoware \
--with-mysql=shared,/usr/nekoware/mysql4 \
--with-mysql-sock=/usr/nekoware/var/run/mysql4 \
--enable-embedded-mysqli=shared \
--with-mysqli=shared,/usr/nekoware/mysql4/bin/mysql_config \
--with-pdo-mysql=shared,/usr/nekoware/mysql4 \
--with-bz2=shared,/usr/nekoware \
--with-iconv-dir=/usr/nekoware \
--enable-ftp=shared \
--enable-sockets=shared \
--with-gd=shared \
--enable-sqlite-utf8 \
--with-sqlite=shared \
--enable-exif=shared \
--enable-dbase=shared \
--enable-pcntl=shared \
--enable-mbstring=shared \
--with-gmp=shared,/usr/nekoware \
--with-db4=/usr/nekoware \
--with-gettext=shared,/usr/nekoware \
--with-ncurses=shared,/usr/nekoware \
--disable-xmlreader \
--disable-xmlwriter \
--with-xsl=shared,/usr/nekoware \
--enable-sigchild
The relevent configure output:
Code:
checking for MySQL support... yes, shared
checking for specified location of the MySQL UNIX socket... /usr/nekoware/var/run/mysql4
checking for MySQL UNIX socket location... /usr/nekoware/var/run/mysql4
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.
The error in the configure.log:
Code:
configure:57767: checking for specified location of the MySQL UNIX socket
configure:57824: checking for MySQL UNIX socket location
configure:58014: checking for mysql_close in -lmysqlclient
configure:58033: c99 -o conftest -I/usr/include -O3 -mips3 -I/usr/nekoware/include -OPT:Olimit=0:roundoff=3 -I/usr/nekoware/include -D_XPG_IV -Wl,-rpath,/usr/nekoware/mysql4/lib/mysql -L/usr/nekoware/mysql4/lib/mysql -L/usr/lib -L/usr/nekoware/lib -L/usr/nekoware/lib -rpath /usr/nekoware/lib -Wl,-rpath,/usr/nekoware/lib -L/usr/nekoware/lib conftest.c -lmysqlclient -ldb-4.3 -lz -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm 1>&5
ld32: FATAL 12 : Expecting n32 objects: /usr/lib/crt1.o is o32.
configure: failed program was:
#line 58022 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_close();
int main() {
mysql_close()
; return 0; }
configure:58254: checking for mysql_error in -lmysqlclient
configure:58273: c99 -o conftest -I/usr/include -O3 -mips3 -I/usr/nekoware/include -OPT:Olimit=0:roundoff=3 -I/usr/nekoware/include -D_XPG_IV -Wl,-rpath,/usr/nekoware/mysql4/lib/mysql -L/usr/nekoware/mysql4/lib/mysql -Wl,-rpath,/usr/nekoware/lib -L/usr/nekoware/lib -L/usr/lib -L/usr/nekoware/lib -L/usr/nekoware/lib -rpath /usr/nekoware/lib -Wl,-rpath,/usr/nekoware/lib -L/usr/nekoware/lib conftest.c -lmysqlclient -ldb-4.3 -lz -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm 1>&5
ld32: FATAL 12 : Expecting n32 objects: /usr/lib/crt1.o is o32.
configure: failed program was:
#line 58262 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_error();
int main() {
mysql_error()
; return 0; }