Почитал config.log, примечательные строки:[Charlz_Klug@Meleena /usr/ports/lang/php5]$ sudo make reinstall
[Много букв]
Configuring extensions
checking size of long... (cached) 8
checking size of int... (cached) 4
checking for int32_t... yes
checking for uint32_t... yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strtoll... yes
checking for atoll... yes
checking for strftime... (cached) yes
checking which regex library to use... php
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /usr/local
checking for xml2-config path... /usr/local/bin/xml2-config
checking whether libxml build works... no
configure: error: build test failed. Please check the config.log for details.
===> Script "configure" failed unexpectedly.
Please report the problem to ale@FreeBSD.org [maintainer] and attach the
"/usr/ports/lang/php5/work/php-5.3.9/config.log" including the output of the
failure of your make command. Also, it might be a good idea to provide an
overview of all packages installed on your system (e.g. an `ls /var/db/pkg`).
*** Error code 1
Stop in /usr/ports/lang/php5.
*** Error code 1
Stop in /usr/ports/lang/php5.
*** Error code 1
Stop in /usr/ports/lang/php5.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --with-layout=GNU --localstatedir=/var --with-config-file-scan-dir=/usr/local/etc/php --disable-all --enable-libxml --enable-mysqlnd --with-libxml-dir=/usr/local --with-pcre-regex=/usr/local --with-zlib-dir=/usr --program-prefix= --with-apxs2=/usr/local/sbin/apxs --with-regex=php --with-zend-vm=CALL --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ --build=amd64-portbld-freebsd9.0
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:4456: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
Выборка по ошибкам:conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:4753: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
В конце файла:[Charlz_Klug@Meleena /usr/ports/lang/php5]$ cat /usr/ports/lang/php5/work/php-5.3.9/config.log |grep error
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
conftest.c:52:26: error: minix/config.h: No such file or directory
conftest.c:19:26: error: minix/config.h: No such file or directory
conftest.c:62:53: error: ApplicationServices/ApplicationServices.h: No such file or directory
conftest.c:66:20: error: alloca.h: No such file or directory
conftest.c:69:19: error: crypt.h: No such file or directory
conftest.c:69:17: error: dns.h: No such file or directory
conftest.c:94:24: error: sys/statfs.h: No such file or directory
conftest.c:95:21: error: sys/vfs.h: No such file or directory
conftest.c:95:26: error: sys/sysexits.h: No such file or directory
conftest.c:95:25: error: sys/varargs.h: No such file or directory
conftest.c:96:25: error: sys/loadavg.h: No such file or directory
conftest.c:98:18: error: unix.h: No such file or directory
| /* Override any GCC internal prototype to avoid an error.
conftest.c:144: error: expected expression before ')' token
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
configure:19816: checking for gai_strerror
| /* Override any GCC internal prototype to avoid an error.
configure:19816: checking for perror
| /* Override any GCC internal prototype to avoid an error.
configure:19816: checking for strerror
conftest.c:197:20: error: alloca.h: No such file or directory
conftest.c:209: error: too many arguments to function 'asctime_r'
conftest.c:207: error: too many arguments to function 'asctime_r'
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
configure:23683: error: build test failed. Please check the config.log for details.
ac_cv_func_gai_strerror=yes
ac_cv_func_perror=yes
ac_cv_func_strerror=yes
Ближе к концу файла нашёл записи в логе:[Charlz_Klug@Meleena /usr/ports/lang/php5]$ tail -n 20 /usr/ports/lang/php5/work/php-5.3.9/config.log
#define MAGIC_QUOTES 0
#define DEFAULT_SHORT_OPEN_TAG "1"
#define HAVE_IPV6 1
#define SIZEOF_LONG 8
#define SIZEOF_INT 4
#define HAVE_INT32_T 1
#define HAVE_UINT32_T 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_STRING_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRTOLL 1
#define HAVE_ATOLL 1
#define HAVE_STRFTIME 1
#define HAVE_REGEX_T_RE_MAGIC 1
#define HSREGEX 1
#define REGEX 1
configure: exit 1
Как починить?configure:23643: checking whether libxml build works
configure:23670: cc -o conftest -O2 -pipe -fno-strict-aliasing -fvisibility=hidden -R/usr/local/lib -L/usr/local/lib confte
-lcrypt -lm -pthread -lcrypt -lxml2 -lz -liconv -lm >&5
/usr/bin/ld: warning: libz.so.5, needed by /usr/local/lib/libxml2.so, not found (try using -rpath or -rpath-link)
configure:23670: $? = 0
configure:23670: ./conftest
Shared object "libz.so.5" not found, required by "libxml2.so.5"configure:23670: $? = 1
configure: program exited with status 1