config error

This is a discussion on config error within the PHP General forums, part of the PHP Programming Forums category; Hi I'm trying to get PHP to build and keep on getting an error: configure: error: mysql configure failed. ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-18-2006
Simon Forster
 
Posts: n/a
Default config error

Hi

I'm trying to get PHP to build and keep on getting an error:

configure: error: mysql configure failed. Please check config.log for
more information.

FWIW, I'm trying to install on Mac OS Server 10.3.9 with the
following options:

../configure --prefix=/usr/local/php5 --with-apxs --with-config-file-
scan-dir=/sw --with-iconv --with-zlib=/usr --with-zlib-dir=/usr --
with-gd --with-iconv-dir=/usr --with-snmp=/usr --enable-exif --enable-
wddx --enable-soap --enable-sqlite-utf8 --enable-ftp --enable-sockets
--enable-dbx --enable-dbase --enable-mbstring --enable-memory-limit --
enable-calendar --enable-bcmath --with-bz2=/usr --with-mysql=shared,/
sw --with-mysqli=shared,/sw --with-pdo-mysql=shared,/sw --with-libxml-
dir=shared,/sw --with-xsl=shared,/sw --with-pdflib=shared,/sw --with-
jpeg-dir=/sw --with-png-dir=/sw --enable-gd-native-ttf --with-
json=shared --enable-memcache

I've installed various libraries (using fink, as you can see) but I'm
using the packaged version of MySQL available from mysql.com. The
tail end of the error log is included below the sig.

I've been mucking with this, on and off, for a couple of days now and
have pretty much exhausted efforts to install a pre-compiled version
of PHP (preferred route as I'm lazy). Also, I've tweaked the config
options which, at times, has added a new missing dependency but I
always come back to this MySQL issue.

If anyone's got any ideas, please let me know as I'm starting to run
out of things to try.

Many thanks

Simon Forster
__________________________________________________ _____
LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
Tel: +44 (0)20 8133 0528 Fax: +44 (0)70 9230 5247
__________________________________________________ _____



int main() {
mysql_close()
; return 0; }
configure:58254: checking for mysql_error in -lmysqlclient
configure:58273: gcc -o conftest -I/usr/include -g -O2 -no-cpp-
precomp -L/usr/lib/mysql -L/usr/lib/mysql -liconv -L/usr/lib -L/sw/
lib -L/sw/lib -L/usr/local/lib -L/usr/local/lib conftest.c -
lmysqlclient -liconv -lpng -lz -ljpeg -lbz2 -lz -lm -lxml2 -lz -
liconv -lm -lxml2 -lz -liconv -lm 1>&5
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 53 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (54) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 55 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (56) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 57 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (58) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 59 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (60) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 61 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (62) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 63 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (64) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 65 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (66) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 67 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (68) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 69 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (70) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 71 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (72) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 73 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (74) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 75 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (76) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 77 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (78) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 79 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (80) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 81 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (82) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 83 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (84) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 85 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (86) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 87 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (88) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 89 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (90) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 91 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (92) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 93 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (94) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 95 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (96) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 97 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (98) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 99 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (100) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 101 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (102) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 103 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (104) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 105 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (106) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 107 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (108) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 338 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (339) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 340 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (341) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 342 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (343) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 344 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (345) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 346 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (347) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 348 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (349) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 350 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (351) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 352 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (353) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 354 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (355) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 754 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (755) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 756 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (757) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 758 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (759) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 760 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (761) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 762 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (763) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 764 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (765) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 766 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (767) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 768 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (769) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 770 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (771) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 772 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (773) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 774 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (775) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 776 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (777) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 778 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (779) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 780 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (781) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 782 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (783) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 784 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (785) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 786 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (787) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 788 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (789) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 790 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (791) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 792 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (793) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 794 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (795) in section (__TEXT,__text)
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; }
Reply With Quote
  #2 (permalink)  
Old 12-18-2006
Jochem Maas
 
Posts: n/a
Default Re: [PHP] config error

Simon Forster wrote:
> Hi
>
> I'm trying to get PHP to build and keep on getting an error:
>
> configure: error: mysql configure failed. Please check config.log for
> more information.
>
> FWIW, I'm trying to install on Mac OS Server 10.3.9 with the following
> options:
>
> ./configure --prefix=/usr/local/php5 --with-apxs
> --with-config-file-scan-dir=/sw --with-iconv --with-zlib=/usr
> --with-zlib-dir=/usr --with-gd --with-iconv-dir=/usr --with-snmp=/usr
> --enable-exif --enable-wddx --enable-soap --enable-sqlite-utf8
> --enable-ftp --enable-sockets --enable-dbx --enable-dbase
> --enable-mbstring --enable-memory-limit --enable-calendar
> --enable-bcmath --with-bz2=/usr --with-mysql=shared,/sw
> --with-mysqli=shared,/sw --with-pdo-mysql=shared,/sw



do you need mysql and mysqli? have you tried the configure line wirth the following?:

--with-mysql --with-mysqli

what version of mysql do you have intalled? mysqli may not compile because
your mysql server is too old.


> --with-libxml-dir=shared,/sw --with-xsl=shared,/sw
> --with-pdflib=shared,/sw --with-jpeg-dir=/sw --with-png-dir=/sw
> --enable-gd-native-ttf --with-json=shared --enable-memcache


try compiling wqith only the mysql configure options to see what happens?

>
> I've installed various libraries (using fink, as you can see) but I'm
> using the packaged version of MySQL available from mysql.com. The tail
> end of the error log is included below the sig.
>
> I've been mucking with this, on and off, for a couple of days now and
> have pretty much exhausted efforts to install a pre-compiled version of
> PHP (preferred route as I'm lazy). Also, I've tweaked the config options
> which, at times, has added a new missing dependency but I always come
> back to this MySQL issue.
>
> If anyone's got any ideas, please let me know as I'm starting to run out
> of things to try.
>
> Many thanks
>
> Simon Forster
> __________________________________________________ _____
> LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
> Tel: +44 (0)20 8133 0528 Fax: +44 (0)70 9230 5247
> __________________________________________________ _____
>
>
>
> int main() {
> mysql_close()
> ; return 0; }
> configure:58254: checking for mysql_error in -lmysqlclient
> configure:58273: gcc -o conftest -I/usr/include -g -O2 -no-cpp-precomp
> -L/usr/lib/mysql -L/usr/lib/mysql -liconv -L/usr/lib -L/sw/lib
> -L/sw/lib -L/usr/local/lib -L/usr/local/lib conftest.c -lmysqlclient
> -liconv -lpng -lz -ljpeg -lbz2 -lz -lm -lxml2 -lz -liconv -lm -lxml2
> -lz -liconv -lm 1>&5
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 53 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (54) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 55 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (56) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 57 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (58) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 59 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (60) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 61 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (62) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 63 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (64) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 65 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (66) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 67 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (68) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 69 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (70) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 71 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (72) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 73 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (74) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 75 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (76) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 77 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (78) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 79 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (80) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 81 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (82) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 83 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (84) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 85 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (86) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 87 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (88) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 89 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (90) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 91 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (92) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 93 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (94) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 95 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (96) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 97 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (98) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 99 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (100) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 101 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (102) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 103 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (104) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 105 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (106) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 107 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (108) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 338 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (339) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 340 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (341) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 342 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (343) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 344 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (345) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 346 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (347) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 348 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (349) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 350 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (351) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 352 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (353) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 354 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (355) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 754 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (755) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 756 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (757) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 758 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (759) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 760 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (761) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 762 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (763) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 764 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (765) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 766 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (767) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 768 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (769) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 770 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (771) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 772 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (773) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 774 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (775) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 776 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (777) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 778 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (779) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 780 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (781) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 782 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (783) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 784 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (785) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 786 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (787) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 788 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (789) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 790 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (791) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 792 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (793) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 794 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (795) in section (__TEXT,__text)
> 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; }
>
> --PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

Reply With Quote
  #3 (permalink)  
Old 12-18-2006
Simon Forster
 
Posts: n/a
Default Re: [PHP] config error


On 18 Dec 2006, at 11:05, Jochem Maas wrote:

> do you need mysql and mysqli? have you tried the configure line
> wirth the following?:
>
> --with-mysql --with-mysqli
>
> what version of mysql do you have intalled? mysqli may not compile
> because
> your mysql server is too old.


Thanks for the suggestions. Stripped back the configure options, made
a couple of other tweaks and got it to compile. Then it failed on make.

<sigh />

Happily, someone pointed me to <http://www.mamp.info/en/index.php>.
As this is meant to be a simple installer package, I hope this'll
work. Downloading as I type.

All the best

Simon
Reply With Quote
  #4 (permalink)  
Old 12-18-2006
Jochem Maas
 
Posts: n/a
Default Re: [PHP] config error

Simon Forster wrote:
>
> On 18 Dec 2006, at 11:05, Jochem Maas wrote:
>
>> do you need mysql and mysqli? have you tried the configure line wirth
>> the following?:
>>
>> --with-mysql --with-mysqli
>>
>> what version of mysql do you have intalled? mysqli may not compile
>> because
>> your mysql server is too old.

>
> Thanks for the suggestions. Stripped back the configure options, made a
> couple of other tweaks and got it to compile.


you mean you got it to configure, right?

> Then it failed on make.


what was the error?

>
> <sigh />
>
> Happily, someone pointed me to <http://www.mamp.info/en/index.php>. As
> this is meant to be a simple installer package, I hope this'll work.
> Downloading as I type.
>
> All the best
>
> Simon

Reply With Quote
  #5 (permalink)  
Old 12-18-2006
Simon Forster
 
Posts: n/a
Default Re: [PHP] config error


On 18 Dec 2006, at 14:00, Jochem Maas wrote:

>> Thanks for the suggestions. Stripped back the configure options,
>> made a
>> couple of other tweaks and got it to compile.

>
> you mean you got it to configure, right?


Oops. Sloppy. You're right of course. Got it to configure.

>> Then it failed on make.

>
> what was the error?


Whole host of 'em. Hold on, I'll clean and run again to see what pops
up...

See below sig. Seems to be referencing a lot of XML stuff but I'm not
trying to include any XML / XSL bits:

ATB

Simon Forster
__________________________________________________ _____
LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
Tel: +44 (0)20 8133 0528 Fax: +44 (0)70 9230 5247
__________________________________________________ _____

../configure --prefix=/usr/local/php5 --with-apxs --with-config-file-
scan-dir=/sw --with-iconv --with-zlib=/usr --with-zlib-dir=/usr --
with-gd --with-iconv-dir=/usr --enable-exif --enable-sqlite-utf8 --
enable-ftp --enable-sockets --enable-mbstring --enable-memory-limit --
enable-calendar --enable-bcmath --with-bz2=/usr --with-mysql=/usr/
local/mysql --with-pdflib=shared,/sw --with-jpeg-dir=/sw --with-png-
dir=/sw --enable-gd-native-ttf --enable-memcache


make
/bin/sh /Users/steve/Desktop/php-5.2.0/libtool --silent --preserve-
dup-deps --mode=compile gcc -Iext/libxml/ -I/Users/steve/Desktop/
php-5.2.0/ext/libxml/ -DPHP_ATOM_INC -I/Users/steve/Desktop/php-5.2.0/
include -I/Users/steve/Desktop/php-5.2.0/main -I/Users/steve/Desktop/
php-5.2.0 -I/usr/include/libxml2 -I/Users/steve/Desktop/php-5.2.0/ext/
date/lib -I/sw/include -I/usr/local/include -I/Users/steve/Desktop/
php-5.2.0/ext/mbstring/oniguruma -I/Users/steve/Desktop/php-5.2.0/ext/
mbstring/libmbfl -I/Users/steve/Desktop/php-5.2.0/ext/mbstring/
libmbfl/mbfl -I/usr/local/mysql/include -I/Users/steve/Desktop/
php-5.2.0/TSRM -I/Users/steve/Desktop/php-5.2.0/Zend -no-cpp-
precomp -I/usr/include -g -O2 -c /Users/steve/Desktop/php-5.2.0/ext/
libxml/libxml.c -o ext/libxml/libxml.lo
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:43:28: libxml/
xmlsave.h: No such file or directory
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:428: error: parse
error before "error"
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
`_php_libxml_free_error':
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:430: error:
`error' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:430: error: (Each
undeclared identifier is reported only once
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:430: error: for
each function it appears in.)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: At top level:
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:434: error: parse
error before "error"
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
`_php_list_set_error_structure':
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:436: error:
`xmlError' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:436: error: parse
error before "error_copy"
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:441: error:
`error_copy' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:443: error:
`error' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:448: error:
`XML_ERR_ERROR' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:454: error: `msg'
undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: At top level:
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:546: error: parse
error before "xmlErrorPtr"
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
`php_libxml_structured_error_handler':
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:548: error:
`error' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
`zm_startup_libxml':
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:603: error:
`XML_PARSE_NOENT' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:604: error:
`XML_PARSE_DTDLOAD' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:605: error:
`XML_PARSE_DTDATTR' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:606: error:
`XML_PARSE_DTDVALID' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:607: error:
`XML_PARSE_NOERROR' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:608: error:
`XML_PARSE_NOWARNING' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:609: error:
`XML_PARSE_NOBLANKS' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:610: error:
`XML_PARSE_XINCLUDE' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:611: error:
`XML_PARSE_NSCLEAN' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:612: error:
`XML_PARSE_NOCDATA' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:613: error:
`XML_PARSE_NONET' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:621: error:
`XML_ERR_NONE' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:622: error:
`XML_ERR_WARNING' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:623: error:
`XML_ERR_ERROR' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:624: error:
`XML_ERR_FATAL' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
`zif_libxml_use_internal_errors':
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:707: error:
`xmlStructuredErrorFunc' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:707: error: parse
error before "current_handler"
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:714: error:
`current_handler' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:714: error:
`xmlStructuredError' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:736: error:
`xmlError' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
`zif_libxml_get_last_error':
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:747: error:
`xmlErrorPtr' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:747: error: parse
error before "error"
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:749: error:
`error' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
`zif_libxml_get_errors':
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:778: error:
`xmlErrorPtr' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:778: error: parse
error before "error"
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:786: error:
`error' undeclared (first use in this function)
make: *** [ext/libxml/libxml.lo] Error 1
Reply With Quote
  #6 (permalink)  
Old 12-18-2006
Jochem Maas
 
Posts: n/a
Default Re: [PHP] config error

Simon Forster wrote:
>
> On 18 Dec 2006, at 14:00, Jochem Maas wrote:
>
>>> Thanks for the suggestions. Stripped back the configure options, made a
>>> couple of other tweaks and got it to compile.

>>
>> you mean you got it to configure, right?

>
> Oops. Sloppy. You're right of course. Got it to configure.
>
>>> Then it failed on make.

>>
>> what was the error?

>
> Whole host of 'em. Hold on, I'll clean and run again to see what pops up...
>
> See below sig. Seems to be referencing a lot of XML stuff but I'm not
> trying to include any XML / XSL bits:


that there by default, check these 2 configure options to see if that gets you past
this hurdle:


--disable-libxml Disable new LIBXML support
--with-libxml-dir[=DIR] libxml2 install prefix


>
> ATB
>
> Simon Forster
> __________________________________________________ _____
> LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
> Tel: +44 (0)20 8133 0528 Fax: +44 (0)70 9230 5247
> __________________________________________________ _____
>
> ./configure --prefix=/usr/local/php5 --with-apxs
> --with-config-file-scan-dir=/sw --with-iconv --with-zlib=/usr
> --with-zlib-dir=/usr --with-gd --with-iconv-dir=/usr --enable-exif
> --enable-sqlite-utf8 --enable-ftp --enable-sockets --enable-mbstring
> --enable-memory-limit --enable-calendar --enable-bcmath --with-bz2=/usr
> --with-mysql=/usr/local/mysql --with-pdflib=shared,/sw
> --with-jpeg-dir=/sw --with-png-dir=/sw --enable-gd-native-ttf
> --enable-memcache
>
>
> make
> /bin/sh /Users/steve/Desktop/php-5.2.0/libtool --silent
> --preserve-dup-deps --mode=compile gcc -Iext/libxml/
> -I/Users/steve/Desktop/php-5.2.0/ext/libxml/ -DPHP_ATOM_INC
> -I/Users/steve/Desktop/php-5.2.0/include
> -I/Users/steve/Desktop/php-5.2.0/main -I/Users/steve/Desktop/php-5.2.0
> -I/usr/include/libxml2 -I/Users/steve/Desktop/php-5.2.0/ext/date/lib
> -I/sw/include -I/usr/local/include
> -I/Users/steve/Desktop/php-5.2.0/ext/mbstring/oniguruma
> -I/Users/steve/Desktop/php-5.2.0/ext/mbstring/libmbfl
> -I/Users/steve/Desktop/php-5.2.0/ext/mbstring/libmbfl/mbfl
> -I/usr/local/mysql/include -I/Users/steve/Desktop/php-5.2.0/TSRM
> -I/Users/steve/Desktop/php-5.2.0/Zend -no-cpp-precomp -I/usr/include
> -g -O2 -c /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c -o
> ext/libxml/libxml.lo
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:43:28:
> libxml/xmlsave.h: No such file or directory
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:428: error: parse
> error before "error"
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
> `_php_libxml_free_error':
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:430: error: `error'
> undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:430: error: (Each
> undeclared identifier is reported only once
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:430: error: for each
> function it appears in.)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: At top level:
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:434: error: parse
> error before "error"
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
> `_php_list_set_error_structure':
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:436: error:
> `xmlError' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:436: error: parse
> error before "error_copy"
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:441: error:
> `error_copy' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:443: error: `error'
> undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:448: error:
> `XML_ERR_ERROR' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:454: error: `msg'
> undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: At top level:
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:546: error: parse
> error before "xmlErrorPtr"
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
> `php_libxml_structured_error_handler':
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:548: error: `error'
> undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
> `zm_startup_libxml':
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:603: error:
> `XML_PARSE_NOENT' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:604: error:
> `XML_PARSE_DTDLOAD' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:605: error:
> `XML_PARSE_DTDATTR' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:606: error:
> `XML_PARSE_DTDVALID' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:607: error:
> `XML_PARSE_NOERROR' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:608: error:
> `XML_PARSE_NOWARNING' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:609: error:
> `XML_PARSE_NOBLANKS' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:610: error:
> `XML_PARSE_XINCLUDE' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:611: error:
> `XML_PARSE_NSCLEAN' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:612: error:
> `XML_PARSE_NOCDATA' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:613: error:
> `XML_PARSE_NONET' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:621: error:
> `XML_ERR_NONE' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:622: error:
> `XML_ERR_WARNING' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:623: error:
> `XML_ERR_ERROR' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:624: error:
> `XML_ERR_FATAL' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
> `zif_libxml_use_internal_errors':
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:707: error:
> `xmlStructuredErrorFunc' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:707: error: parse
> error before "current_handler"
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:714: error:
> `current_handler' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:714: error:
> `xmlStructuredError' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:736: error:
> `xmlError' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
> `zif_libxml_get_last_error':
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:747: error:
> `xmlErrorPtr' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:747: error: parse
> error before "error"
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:749: error: `error'
> undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
> `zif_libxml_get_errors':
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:778: error:
> `xmlErrorPtr' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:778: error: parse
> error before "error"
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:786: error: `error'
> undeclared (first use in this function)
> make: *** [ext/libxml/libxml.lo] Error 1
>
>

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:14 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0