Hello,
You have added this to youre ./configure command:
--with-libxml-dir=/sw/include/libxml2/
but make is using:
-I/usr/include/libxml2
Did you do your first ./configure before installing the new libxml? If so, you
need to rm config.cache, otherwise PHP will keep trying to compile using the
cached location of the old libxml.
regards,
Peter
--- Søren Neigaard <sneigaard@xxxxxxxxx> wrote:
> Hi
>
> I need your help guys! Im trying to compile PHP5.1.6 on OS X 10.4.8,
> and I run configure with the following options:
>
> sudo ./configure --prefix=/apache2/php --with-zlib
> --with-libxml-dir=/sw/include/libxml2/ --with-ldap=/usr --enable-cli
> --with-zlib-dir=/usr --enable-exif --enable-ftp --enable-mbstring
> --enable-mbregex --enable-dbx --enable-sockets --with-iodbc=/usr
> --with-curl=/usr --with-mysql-dir=/usr/local/mysql
> --with-apxs2=/apache2/bin/apxs
>
> I have installed libxml2 (and also libxml) via fink, and it seems to
> be installed under /sw/innclude. I have tried many versions of the
> path (/sw - /sw/include - /sw/include/ - and so on), but when I run
> make I get this:
>
> /bin/sh /Users/sorenneigaard/dev/php-5.1.6/libtool --silent
> --preserve-dup-deps --mode=compile gcc -Iext/libxml/
> -I/Users/sorenneigaard/dev/php-5.1.6/ext/libxml/ -DPHP_ATOM_INC
> -I/Users/sorenneigaard/dev/php-5.1.6/include
> -I/Users/sorenneigaard/dev/php-5.1.6/main
> -I/Users/sorenneigaard/dev/php-5.1.6 -I/usr/include/libxml2
> -I/Users/sorenneigaard/dev/php-5.1.6/ext/date/lib
> -I/Users/sorenneigaard/dev/php-5.1.6/ext/mbstring/oniguruma
> -I/Users/sorenneigaard/dev/php-5.1.6/ext/mbstring/libmbfl
> -I/Users/sorenneigaard/dev/php-5.1.6/ext/mbstring/libmbfl/mbfl
> -I/Users/sorenneigaard/dev/php-5.1.6/TSRM
> -I/Users/sorenneigaard/dev/php-5.1.6/Zend -no-cpp-precomp
> -I/usr/include -g -O2 -c
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c -o
> ext/libxml/libxml.lo
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:43:28:
> libxml/xmlsave.h: No such file or directory
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:407: error:
> parse error before "error"
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c: In function
> `_php_libxml_free_error':
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:409: error:
> `error' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:409: error:
> (Each undeclared identifier is reported only once
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:409: error: for
> each function it appears in.)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c: At top level:
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:413: error:
> parse error before "error"
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c: In function
> `_php_list_set_error_structure':
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:415: error:
> `xmlError' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:415: error:
> parse error before "error_copy"
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:420: error:
> `error_copy' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:422: error:
> `error' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:427: error:
> `XML_ERR_ERROR' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:433: error:
> `msg' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c: At top level:
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:525: error:
> parse error before "xmlErrorPtr"
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c: In function
> `php_libxml_structured_error_handler':
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:527: error:
> `error' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c: In function
> `zm_startup_libxml':
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:590: error:
> `XML_PARSE_NOENT' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:591: error:
> `XML_PARSE_DTDLOAD' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:592: error:
> `XML_PARSE_DTDATTR' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:593: error:
> `XML_PARSE_DTDVALID' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:594: error:
> `XML_PARSE_NOERROR' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:595: error:
> `XML_PARSE_NOWARNING' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:596: error:
> `XML_PARSE_NOBLANKS' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:597: error:
> `XML_PARSE_XINCLUDE' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:598: error:
> `XML_PARSE_NSCLEAN' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:599: error:
> `XML_PARSE_NOCDATA' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:600: error:
> `XML_PARSE_NONET' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:608: error:
> `XML_ERR_NONE' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:609: error:
> `XML_ERR_WARNING' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:610: error:
> `XML_ERR_ERROR' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:611: error:
> `XML_ERR_FATAL' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c: In function
> `zif_libxml_use_internal_errors':
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:690: error:
> `xmlStructuredErrorFunc' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:690: error:
> parse error before "current_handler"
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:697: error:
> `current_handler' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:697: error:
> `xmlStructuredError' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:719: error:
> `xmlError' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c: In function
> `zif_libxml_get_last_error':
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:730: error:
> `xmlErrorPtr' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:730: error:
> parse error before "error"
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:732: error:
> `error' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c: In function
> `zif_libxml_get_errors':
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:761: error:
> `xmlErrorPtr' undeclared (first use in this function)
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:761: error:
> parse error before "error"
> /Users/sorenneigaard/dev/php-5.1.6/ext/libxml/libxml.c:769: error:
> `error' undeclared (first use in this function)
> make: *** [ext/libxml/libxml.lo] Error 1
>
> Please help, Im lost here :(
>
> Best regards
> Søren
>
____________________________________________________
On Yahoo!7
Caller tones: Replace your ring tone with your favourite sound clip!
http://callertones.yahoo7.mnetcorporation.com/ctonesmailtag
[Index of Archives]
[PHP Users]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[Postgresql]
[PHP Books]
[PHP Databases]
[PHP SOAP]