Date: Mon, 26 Jul 2004 02:37:24 +0200 From: Antoine Jacoutot <ajacoutot@lphp.org> To: freebsd-questions@freebsd.org Subject: error compiling php4-domxml Message-ID: <200407260237.24582.ajacoutot@lphp.org>
next in thread | raw e-mail | index | archive | help
Hi :) I'm trying to compile php4-domxml without success. Here is the output from make install, anybody has an idea on how to fix this ? Thanks in advance. $ pwd /usr/ports/textproc/php4-domxml $ make ===> Vulnerability check disabled ===> Found saved configuration for php4-domxml-4.3.8_1 ===> Extracting for php4-domxml-4.3.8_1 >> Checksum OK for php-4.3.8.tar.bz2. ===> Patching for php4-domxml-4.3.8_1 ===> php4-domxml-4.3.8_1 depends on executable: phpize - found ===> php4-domxml-4.3.8_1 depends on file: /usr/local/bin/automake - found ===> php4-domxml-4.3.8_1 depends on file: /usr/local/bin/autoconf - found ===> php4-domxml-4.3.8_1 depends on file: /usr/local/bin/libtool13 - found ===> php4-domxml-4.3.8_1 depends on executable: pkg-config - found ===> php4-domxml-4.3.8_1 depends on shared library: xml2.5 - found ===> PHPizing for php4-domxml-4.3.8_1 autoheader: `config.h.in' is created Configuring for: PHP Api Version: 20020918 Zend Module Api No: 20020429 Zend Extension Api No: 20021010 ===> Configuring for php4-domxml-4.3.8_1 configure: WARNING: you should use --build, --host, --target checking build system type... i386-portbld-freebsd5.2.1 checking host system type... i386-portbld-freebsd5.2.1 checking for i386-portbld-freebsd5.2.1-gcc... cc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking whether cc understands -c and -o together... yes checking if compiler supports -R... yes checking for PHP prefix... /usr/local checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM checking for PHP extension directory... /usr/local/lib/php/20020429 checking for re2c... exit 0; checking for gawk... no checking for mawk... no checking for nawk... nawk checking for DOM support... yes, shared checking for the location of libz... /usr checking how to run the C preprocessor... cc -E checking for libxml version... >= 2.4.14 checking for DOM XSLT support... no checking for DOM EXSLT support... no checking for i386-portbld-freebsd5.2.1-ranlib... no checking for ranlib... ranlib checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes loading cache /dev/null within ltconfig checking for object suffix... o checking for executable suffix... no checking for cc option to produce PIC... -fPIC checking if cc PIC flag -fPIC works... yes checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.lo... yes checking if cc supports -fno-rtti -fno-exceptions ... no checking if cc static flag -static works... -static checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking command to parse /usr/bin/nm -B output... ok checking how to hardcode library paths into programs... immediate checking for /usr/bin/ld option to reload object files... -r checking dynamic linker characteristics... freebsd5.2.1 ld.so checking if libtool supports shared libraries... yes *** Warning: the command libtool uses to detect shared libraries, *** /usr/bin/file, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org checking whether to build shared libraries... yes checking whether to build static libraries... no checking for objdir... .libs creating libtool updating cache /dev/null configure: creating ./config.status config.status: creating config.h ===> Building for php4-domxml-4.3.8_1 /bin/sh /usr/local/bin/libtool13 --mode=compile cc -I. -I/usr/ports/textproc/php4-domxml/work/php-4.3.8/ext/domxml -DPHP_ATOM_INC -I/usr/ports/textproc/php4-domxml/work/php-4.3.8/ext/domxml/include -I/usr/ports/textproc/php4-domxml/work/php-4.3.8/ext/domxml/main -I/usr/ports/textproc/php4-domxml/work/php-4.3.8/ext/domxml -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -I/usr/local/include/libxml2 -DHAVE_CONFIG_H -O -pipe -march=pentium4 -prefer-pic -c /usr/ports/textproc/php4-domxml/work/php-4.3.8/ext/domxml/php_domxml.c -o php_domxml.lo mkdir .libs cc -I. -I/usr/ports/textproc/php4-domxml/work/php-4.3.8/ext/domxml -DPHP_ATOM_INC -I/usr/ports/textproc/php4-domxml/work/php-4.3.8/ext/domxml/include -I/usr/ports/textproc/php4-domxml/work/php-4.3.8/ext/domxml/main -I/usr/ports/textproc/php4-domxml/work/php-4.3.8/ext/domxml -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -I/usr/local/include/libxml2 -DHAVE_CONFIG_H -O -pipe -march=pentium4 -prefer-pic -c /usr/ports/textproc/php4-domxml/work/php-4.3.8/ext/domxml/php_domxml.c -fPIC -DPIC -o .libs/php_domxml.lo cc: unrecognized option `-prefer-pic' In file included from /usr/local/include/libxml2/libxml/parser.h:796, from /usr/ports/textproc/php4-domxml/work/php-4.3.8/ext/domxml/php_domxml.h:25, from /usr/ports/textproc/php4-domxml/work/php-4.3.8/ext/domxml/php_domxml.c:33: /usr/local/include/libxml2/libxml/encoding.h:28:19: iconv.h: No such file or directory In file included from /usr/local/include/libxml2/libxml/parser.h:796, from /usr/ports/textproc/php4-domxml/work/php-4.3.8/ext/domxml/php_domxml.h:25, from /usr/ports/textproc/php4-domxml/work/php-4.3.8/ext/domxml/php_domxml.c:33: /usr/local/include/libxml2/libxml/encoding.h:136: error: syntax error before "iconv_t" *** Error code 1 Stop in /usr/ports/textproc/php4-domxml/work/php-4.3.8/ext/domxml. *** Error code 1 Stop in /usr/ports/textproc/php4-domxml. Antoine
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407260237.24582.ajacoutot>