Re: config error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
> 

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux