I am facing heavy challenges trying to compile php as a DSO module into
apache.
I have a HP 11.00 OS (B2600) system with gcc 3.1 installed. I don't have
installed any new patch bundles on this system.
I am having apache 1.3.26 for HP 11.00 downloaded from HP
Mysql 4.0.12 binary downloaded from mysql (I was not sucessful in compiling
mysql source on this m/c)

The configure options I gave are as follows
$
./configure --with-mysql=/usr/local/mysql  --with-zlib-dir=/usr/local/lib --
with-apxs=/usr/local/apache/bin/apxs

(If I try without zlib path, the configure will complain about -lz option in
gcc)
The configure script fails after displaying this error message

checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... yes
checking for MySQL UNIX socket location... no
checking size of char... 1
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of long long... 8
checking for size_t... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for uid_t in sys/types.h... (cached) yes
checking for type ulong... no
checking for type uchar... no
checking for type uint... yes
checking for type ushort... yes
checking for int8... no
checking base type of last arg to accept... int
checking return type of qsort... void
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.

I am attaching the config.log portion also.
$ tail config.log
#line 48110 "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; }
$ tail -20 config.log
int main() {
mysql_close()
; return 0; }
configure:48102: checking for mysql_error in -lmysqlclient
configure:48121: gcc -o
conftest -g -O2  -DHPUX11 -D_HPUX_SOURCE -DUSE_HSREGEX -DUSE_EXPAT
        -L/usr/local/lib -L/usr/local/mysql/lib
        -L/usr/local/lib -L/usr/local/lib -L/usr/local -L/usr/local
conftest.c -lmysqlclient  -lz -lz -lcrypt -lm -lnsl  -lcrypt 1>&5
/usr/ccs/bin/ld: /usr/local/mysql/lib/libmysqlclient.a: Not a valid library
(invalid magic number). Possibly a 64-bit PA archive library (Mismatched
ABI).
collect2: ld returned 1 exit status
configure: failed program was:
#line 48110 "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; }


Any tips
Madhu



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to