I was able to compile php with Apache as a DSO module in HP 11.00 WITHOUT
mysql support.
When I tried to compile with-mysql (Mysql 4.0.13), I am getting some
configure time messages if I use Mysql supplied binary file
This is the config time message
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
infor
mation.
*******************
Last 30 lines of config.log
configure:49332: checking for mysql_error in -lmysqlclient
configure:49351: gcc -o conftest -g -O2
-L/usr/local/lib -L/usr/local/mysql/lib
-L/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2.3 -L/usr/local/lib/gcc-li
b/hppa2.0n-hp-hpux11.00/3.2.3 -L/usr/local/lib -L/usr
/local/lib -L/usr/local -L/usr/local
conftest.c -lmysqlclient -lz -lz -lm -lnsl -lgcc 1>&5
/usr/ccs/bin/ld: Unsatisfied symbols:
gethostbyname_r (first referenced in
/usr/local/mysql/lib/libmysqlclient.a(my_gethostbyname.o)) (code)
collect2: ld returned 1 exit status
configure: failed program was:
#line 49340 "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; }
Then I created my own mysql binary
Then configure part was OK. While making gmake , I am getting this error
message.
I used the configure options which mysql has recommended to compile mysql
(CFLAGS="-fomit-frame-pointer -O3 -fpic"
CXX=gcc
CXXLFAGS="-felide-constructors -fno-exceptions -fno-rtti -O3"
./configure --prefix=/usr/local/mysql --disable-shared)
/usr/ccs/bin/ld: DP relative code in file
.libs/libphp4.lax/libmysqlclient.a/libmysql.o - shared
library must be position independent. Use +z or +Z to recompile.
gmake: *** [libphp4.la] Error 1
Any idea. Did you tried compiling with Mysql 4 version.?
Thanks in advance
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php