Hi.
I'm having to do a manual install of PHP5 on a OpenSuSE 10.2 box running
Cpanel as they do not seem to support this version properly and the auto
update for PHP does not appear to work properly.
I'm having real issues seemingly down to the fact it is a 64bit version
running.
the configure line:
./configure --prefix=/usr/local/php5 --datadir=/usr/local/share/php5
--with-libdir=lib64 --enable-libxml --enable-session --with-mm
--with-pcre-regex --enable-xml --enable-simplexml --enable-spl
--enable-filter --disable-debug --enable-inline-optimization
--disable-rpath --disable-static --enable-shared --with-pic
--with-apxs=/usr/local/apache/bin/apxs --disable-cli --with-mysql
--with-openssl --without-iconv
It fails just after checking for mysql_errno suggesting I add the line
to specify a path to the zlib dir, however the config.log suggests
something completely different:
configure:59418: checking for MySQL UNIX socket location
configure:59609: checking for mysql_close in -lmysqlclient
configure:59628: gcc -o conftest -g -O2 conftest.c -lmysqlclient
-lxml2 -lz -lm -lssl -lcrypto -ldl -lz -lxml2 -lz -lm 1>&5
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
cannot find -lm
collect2: ld returned 1 exit status
configure: failed program was:
#line 59617 "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:60025: checking for mysql_errno in -lmysqlclient
configure:60044: gcc -o conftest -g -O2 conftest.c -lmysqlclient -lz
-lxml2 -lz -lm -lssl -lcrypto -ldl -lz -lxml2 -lz -lm 1>&5
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
cannot find -lm
collect2: ld returned 1 exit status
configure: failed program was:
#line 60033 "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_errno();
int main() {
mysql_errno()
; return 0; }
I tried other variations, such as adding the zlib support (which I do
need anyway) but it then fails claiming I need zlib>1.0.9, which I do
have (zlib 1.2.3) including all devel files. The thing is, it fails on
another test compile again with the "cannot find -lm". I presume this
is the "libm.so" library, which I have in both /lib64 and /usr/lib64.
I have googled and found others with similar problems trying to compile
PHP on an x64 system, but haven't found an answer for this specific issue.
Any ideas??
Thanks
Daren
[Index of Archives]
[PHP Users]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[Postgresql]
[PHP Books]
[PHP Databases]
[PHP SOAP]