netBSD4.0にPHP
wget http://jp2.php.net/get/php-5.2.6.tar.bz2/from/jp.php.net/mirror tar zvxf php-5.2.6.tar.bz2 cd php-5.2.6 ./configure --with-mysql=/usr/local/mysql --with-gd --with-zlib --with-apxs2=/usr/local/apache2/bin/apxs --enable-mbstring --enable-mbregx
libxml2がなかったので./configureオプションなしでインストール
Configuring extensions 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.
config.logの一番下。
configure:19161: checking whether libxml build works configure:19188: gcc -o conftest -g -O2 -I/usr/pkg/include -L/usr/pkg/lib -R/usr/loc al/lib -L/usr/local/lib conftest.c -lm -lxml2 -lz -lm 1>&5 configure: failed program was: #line 19177 "configure" #include "confdefs.h" char xmlInitParser(); int main() { xmlInitParser(); return 0; }
なんかだめだったので、ググるとlibxml2をthreadオプション有りでビルドすると発生する模様。
で、libxml2を--disable-threadでビルド。phpのビルドしたが効果無し。
libxmlの2最新2.6.30で--enable-threads=offでビルド。さっきとオプションが違う?知るか。でもphpのビルドしたら同様のエラーが出た。
バージョン下げたphp5.2.0でビルド。同じエラーで止まる。
libxml2だけpkg_addしてみるか。
書きかけ。