- - PR -
RedHat9 にPHP4を xslt対応でインストールする方法
1
投稿者 | 投稿内容 |
---|---|
|
投稿日時: 2004-12-19 16:04
主題のセットアップを行っていますがうまくいきません。行った手順は下記のとおりです。
1.expat-1.95.8 をソースからインストール(コンフィグオプション無し) 2.Sablot-1.0.1 をソースからインストール(コンフィグオプション無し) 3.php-4.3.10 を下記のオプションでインストール # ./configure --enable-mbregex --enable-mbstring --enable-zend-multibyte --with-apxs2=/usr/local/apache2/bin/apxs --with-iconv --with-libmbfl --with-mod_charset --with-mysql=/usr/local/mysql --with-gd --with-jpeg-dir=/usr --with-zlib-dir=/usr --enable-gd-jis-conv --enable-dba --with-db4 --enable-xslt --with-xslt-sablot --with-dom-xslt --with-zlib --with-expat-dir=/usr/local --with-dom --with-dom-xslt 上記オプションで configure は通るのですが、make で下記エラーが報告されます。 /usr/local/lib/libsablot.so: undefined reference to `operator new[](unsigned)' /usr/local/lib/libsablot.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info' /usr/local/lib/libsablot.so: undefined reference to `operator delete(void*)' /usr/local/lib/libsablot.so: undefined reference to `__gxx_personality_v0' /usr/local/lib/libsablot.so: undefined reference to `__cxa_pure_virtual' /usr/local/lib/libsablot.so: undefined reference to `vtable for __cxxabiv1::__class_type_info' /usr/local/lib/libsablot.so: undefined reference to `operator delete[](void*)' /usr/local/lib/libsablot.so: undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info' /usr/local/lib/libsablot.so: undefined reference to `operator new(unsigned)' collect2: ld returned 1 exit status make: *** [sapi/cli/php] エラー 1 /usr/local/lib 配下に libsablot.so は存在しています。 識者の方アドバイスをお願いいたします。 |
|
投稿日時: 2004-12-20 13:36
リンクするライブラリが不足しているのではないでしょうか?
・make時に環境変数LDFLAGSに-lstdc++を追加した状態にしておく ・MakefileのEXTRA_LDFLAGSに-lstdc++を追加する のどちらかで解決できませんか? http://bugs.php.net/bug.php?id=17064 http://bugs.php.net/bug.php?id=26358 |
1