Re: [PHP] config error

2006-12-18 Thread Jochem Maas
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 15
 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 

Re: [PHP] config error

2006-12-18 Thread Simon Forster


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

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



Re: [PHP] config error

2006-12-18 Thread Jochem Maas
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

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



Re: [PHP] config error

2006-12-18 Thread Simon Forster


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' 

Re: [PHP] config error

2006-12-18 Thread Jochem Maas
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-libxmlDisable 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