Hi there,
last night I built php4-200107171035 on FreeBSD 4.3RELEASE.
The configure line included --with-iconv (iconv-2.0_1 installed
from package), and configure test for libiconv_open failed
(I've never touched libiconv before, but the page linked from
the PHP manual mentions iconv_open, not libiconv_open):
configure:22870: checking for iconv support
configure:23018: checking for libiconv_open in -liconv
configure:23037: gcc -o conftest -g -O2 -DHARD_SERVER_LIMIT=512
-DDOCUMENT_LOCATION="/usr/local/apache/www/"
-DDEFAULT_PATH="/bin:/usr/bin:/usr/local/apache/bin" -DACCEPT_FILTER_NAME="httpready"
-DUSE_EXPAT -R/usr/local/lib -L/usr/local/lib conftest.c -liconv -liconv -lgmp
-lintl -lbz2 -lz -lcrypt -lm 1>&5
/tmp/ccP0RgHS.o: In function `main':
/usr/local/src/php4-200107171035/configure(.text+0x7): undefined reference to
`libiconv_open'
configure: failed program was:
#line 23026 "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 libiconv_open();
int main() {
libiconv_open()
; return 0; }
the built went on, however, and finished successfully. Apache
failed to start with:
Syntax error on line 234 of /usr/local/etc/apache/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/
libexec/libphp4.so: Undefined symbol "iconv_module_entry"
1) I don't know if these two things are related, but would think so.
Shouldn't the configure process bail out then?
2) If this a certain version of iconv is required, this should be
stated in the iconv section of manual.
The complete configure line was this:
./configure \
--with-mysql=/usr/local \
--with-apxs=/usr/local/apache/sbin/apxs \
--with-config-file-path=/usr/local/etc/apache \
--with-pear=/usr/local/apache/lib/php \
--with-zlib=/usr \
--with-zip \
--with-bz2 \
--with-gettext \
--with-iconv \
--with-gmp \
--enable-bcmath \
--enable-ctype \
--enable-dbx \
--enable-ftp \
--enable-mbstring \
--enable-shmop \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-trans-sid \
--enable-track-vars \
--enable-memory-limit \
--enable-inline-optimization
uname -a:
FreeBSD freepuppy.infosite.cz 4.3-RELEASE FreeBSD 4.3-RELEASE #0:
Sat Apr 21 10:54:49 GMT 2001 [EMAIL PROTECTED]:/usr/src/sy
s/compile/GENERIC i386
[EMAIL PROTECTED]
-------------
And the eyes of them both were opened and they saw that their files
were world readable and writable, so they chmoded 600 their files.
- Book of Installation chapt 3 sec 7
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]