[PHP-users 9951] Re: Call to undefined function: xslt_create()

ITO Akihiro php-users@php.gr.jp
Tue, 10 Sep 2002 12:24:42 +0900


伊藤です.
やはりかいつまんで説明してしまおうとするといけませんね.

> akit> やはりコンパイルエラーでした.
> akit> 
> akit> ./.libs/libphp4.a(main.o): In function `php_hash_environment':
> akit> /usr/local/src/php-4.2.2/main/main.c:1149: undefined reference to `mbstr_treat_data'
> akit> /usr/local/src/php-4.2.2/main/main.c:1156: undefined reference to `mbstr_treat_data'
> akit> /usr/local/src/php-4.2.2/main/main.c:1163: undefined reference to `mbstr_treat_data'
> akit> /usr/local/lib/libsablot.so: undefined reference to `libiconv_open'
> akit> /usr/local/lib/libsablot.so: undefined reference to `libiconv_close'
> akit> /usr/local/lib/libsablot.so: undefined reference to `libiconv'
> akit> collect2: ld returned 1 exit status
> akit> make[1]: *** [php] Error 1
> akit> make[1]: Leaving directory `/usr/local/src/php-4.2.2'
> akit> 
> 
> --enable-mbstringをつけたらどうなりますか?
>
php-4.2.2のconfigure時の指定は,

'./configure
--with-apxs=/usr/local/apache/bin/apxs
--enable-mbstring
--enable-mbstr-enc-trans
--with-pgsql=/usr/local/pgsql/
--enable-trans-sid
--enable-memory-limit
--with-db
--enable-iconv

です.最後の,--enable-iconv は最初無しでやってましたが,足してみて
も変わらず,コンパイルエラーでした.
--
ITO Akihiro / Nagoya Japan
akit@d-tv.co.jp
http://www.d-tv.co.jp/
http://www.d-tv.co.jp/~akit/seven/