http://sns.kuji-clinic.net/RS_Base/diary/854
Fatal error: Call to undefined function () in /usr/local/www/apache22/data/OpenPNE3/web/index.php on line 11
Apache Error.log
[Sat Sep 01 17:31:52 2012] [info] mod_unique_id: using ip addr 210.255.122.222 [Sat Sep 01 17:31:53 2012] [info] Init: Seeding PRNG with 144 bytes of entropy [Sat Sep 01 17:31:53 2012] [info] Loading certificate & private key of SSL-aware server [Sat Sep 01 17:31:53 2012] [debug] ssl_engine_pphrase.c(470): unencrypted RSA private key - pass phrase not required [Sat Sep 01 17:31:53 2012] [info] Init: Generating temporary RSA private keys (512/1024 bits) [Sat Sep 01 17:31:53 2012] [info] Init: Generating temporary DH parameters (512/1024 bits) [Sat Sep 01 17:31:53 2012] [info] Init: Initializing (virtual) servers for SSL [Sat Sep 01 17:31:53 2012] [info] Configuring server for SSL protocol [Sat Sep 01 17:31:53 2012] [debug] ssl_engine_init.c(465): Creating new SSL context (protocols: SSLv2, SSLv3, TLSv1) [Sat Sep 01 17:31:53 2012] [debug] ssl_engine_init.c(664): Configuring permitted SSL ciphers [ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL] [Sat Sep 01 17:31:53 2012] [debug] ssl_engine_init.c(420): Configuring TLS extension handling [Sat Sep 01 17:31:53 2012] [debug] ssl_engine_init.c(795): Configuring RSA server certificate [Sat Sep 01 17:31:53 2012] [info] RSA server certificate enables Server Gated Cryptography (SGC) [Sat Sep 01 17:31:53 2012] [debug] ssl_engine_init.c(834): Configuring RSA server private key [Sat Sep 01 17:31:53 2012] [info] mod_ssl/2.2.22 compiled against Server: Apache/2.2.22, Library: OpenSSL/1.0.1c [Sat Sep 01 17:31:53 2012] [notice] mod_python: Creating 8 session mutexes based on 256 max processes and 0 max threads. [Sat Sep 01 17:31:53 2012] [notice] mod_python: using mutex_directory /tmp PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/sqlite.so' - Cannot open "/usr/local/lib/php/20100525/sqlite.so" in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/fribidi.so' - Cannot open "/usr/local/lib/php/20100525/fribidi.so" in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/yaz.so' - Cannot open "/usr/local/lib/php/20100525/yaz.so" in Unknown on line 0 [Sat Sep 01 17:31:57 2012] [notice] Digest: generating secret for digest authentication ... [Sat Sep 01 17:31:57 2012] [notice] Digest: done [Sat Sep 01 17:31:57 2012] [info] mod_unique_id: using ip addr 210.255.122.222 [Sat Sep 01 17:31:58 2012] [info] Init: Seeding PRNG with 144 bytes of entropy [Sat Sep 01 17:31:58 2012] [info] Loading certificate & private key of SSL-aware server [Sat Sep 01 17:31:58 2012] [debug] ssl_engine_pphrase.c(470): unencrypted RSA private key - pass phrase not required [Sat Sep 01 17:31:58 2012] [info] Init: Generating temporary RSA private keys (512/1024 bits) [Sat Sep 01 17:31:58 2012] [info] Init: Generating temporary DH parameters (512/1024 bits) [Sat Sep 01 17:31:58 2012] [debug] ssl_scache_shmcb.c(253): shmcb_init allocated 512000 bytes of shared memory [Sat Sep 01 17:31:58 2012] [debug] ssl_scache_shmcb.c(272): for 511920 bytes (512000 including header), recommending 32 subcaches, 133 indexes each [Sat Sep 01 17:31:58 2012] [debug] ssl_scache_shmcb.c(306): shmcb_init_memory choices follow [Sat Sep 01 17:31:58 2012] [debug] ssl_scache_shmcb.c(308): subcache_num = 32 [Sat Sep 01 17:31:58 2012] [debug] ssl_scache_shmcb.c(310): subcache_size = 15992 [Sat Sep 01 17:31:58 2012] [debug] ssl_scache_shmcb.c(312): subcache_data_offset = 3208 [Sat Sep 01 17:31:58 2012] [debug] ssl_scache_shmcb.c(314): subcache_data_size = 12784 [Sat Sep 01 17:31:58 2012] [debug] ssl_scache_shmcb.c(316): index_num = 133 [Sat Sep 01 17:31:58 2012] [info] Shared memory session cache initialised [Sat Sep 01 17:31:58 2012] [info] Init: Initializing (virtual) servers for SSL [Sat Sep 01 17:31:58 2012] [info] Configuring server for SSL protocol [Sat Sep 01 17:31:58 2012] [debug] ssl_engine_init.c(465): Creating new SSL context (protocols: SSLv2, SSLv3, TLSv1) [Sat Sep 01 17:31:58 2012] [debug] ssl_engine_init.c(664): Configuring permitted SSL ciphers [ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL] [Sat Sep 01 17:31:58 2012] [debug] ssl_engine_init.c(420): Configuring TLS extension handling [Sat Sep 01 17:31:58 2012] [debug] ssl_engine_init.c(795): Configuring RSA server certificate [Sat Sep 01 17:31:58 2012] [info] RSA server certificate enables Server Gated Cryptography (SGC) [Sat Sep 01 17:31:58 2012] [debug] ssl_engine_init.c(834): Configuring RSA server private key [Sat Sep 01 17:31:58 2012] [info] mod_ssl/2.2.22 compiled against Server: Apache/2.2.22, Library: OpenSSL/1.0.1c [Sat Sep 01 17:31:58 2012] [notice] Apache/2.2.22 (FreeBSD) mod_python/3.3.1 Python/2.7.3 PHP/5.4.6 SVN/1.7.5 mod_ssl/2.2.22 OpenSSL/1.0.1c DAV/2 configured -- resuming normal operations [Sat Sep 01 17:31:58 2012] [info] Server built: Sep 1 2012 15:54:34 [Sat Sep 01 17:31:58 2012] [debug] prefork.c(1023): AcceptMutex: flock (default: flock) [Sat Sep 01 17:32:41 2012] [info] [client 127.0.0.1] Connection to child 6 established (server k222.kuji-clinic.net:443) [Sat Sep 01 17:32:41 2012] [info] Seeding PRNG with 144 bytes of entropy [Sat Sep 01 17:32:41 2012] [debug] ssl_engine_kernel.c(1866): OpenSSL: Handshake: start [Sat Sep 01 17:32:41 2012] [debug] ssl_engine_kernel.c(1874): OpenSSL: Loop: before/accept initialization [Sat Sep 01 17:32:41 2012] [debug] ssl_engine_io.c(1897): OpenSSL: read 11/11 bytes from BIO#8112960b0 [mem: 8112bf000] (BIO dump follows) [Sat Sep 01 17:32:41 2012] [debug] ssl_engine_io.c(1830): +-------------------------------------------------------------------------+ [Sat Sep 01 17:32:41 2012] [debug] ssl_engine_io.c(1869): | 0000: 4f 50 54 49 4f 4e 53 20-2a 20 48 OPTIONS * H | [Sat Sep 01 17:32:41 2012] [debug] ssl_engine_io.c(1875): +-------------------------------------------------------------------------+ [Sat Sep 01 17:32:41 2012] [debug] ssl_engine_kernel.c(1903): OpenSSL: Exit: error in SSLv2/v3 read client hello A [Sat Sep 01 17:32:41 2012] [info] [client 127.0.0.1] SSL library error 1 in handshake (server k222.kuji-clinic.net:443) [Sat Sep 01 17:32:41 2012] [info] SSL Library Error: 336027900 error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol speaking not SSL to HTTPS port!? [Sat Sep 01 17:32:41 2012] [info] [client 127.0.0.1] Connection closed to child 6 with abortive shutdown (server k222.kuji-clinic.net:443) [Sat Sep 01 17:33:29 2012] [notice] child pid 1432 exit signal Segmentation fault (11) [Sat Sep 01 17:33:30 2012] [notice] child pid 1435 exit signal Segmentation fault (11) [Sat Sep 01 17:33:30 2012] [notice] child pid 1434 exit signal Segmentation fault (11) [Sat Sep 01 17:33:30 2012] [notice] child pid 1433 exit signal Segmentation fault (11) [Sat Sep 01 17:33:30 2012] [notice] child pid 1430 exit signal Segmentation fault (11) [Sat Sep 01 17:33:30 2012] [notice] child pid 1419 exit signal Segmentation fault (11) [Sat Sep 01 17:33:30 2012] [notice] child pid 1418 exit signal Segmentation fault (11) [Sat Sep 01 17:33:34 2012] [notice] child pid 1421 exit signal Segmentation fault (11) [Sat Sep 01 17:33:34 2012] [notice] child pid 1420 exit signal Segmentation fault (11) [Sat Sep 01 17:33:37 2012] [notice] child pid 1459 exit signal Segmentation fault (11) [Sat Sep 01 17:33:37 2012] [notice] child pid 1417 exit signal Segmentation fault (11) [Sat Sep 01 17:33:46 2012] [notice] child pid 1461 exit signal Segmentation fault (11) [Sat Sep 01 17:33:46 2012] [notice] child pid 1458 exit signal Segmentation fault (11) [Sat Sep 01 17:33:51 2012] [notice] child pid 1463 exit signal Segmentation fault (11) [Sat Sep 01 17:33:51 2012] [notice] child pid 1460 exit signal Segmentation fault (11) [Sat Sep 01 17:33:53 2012] [notice] child pid 1465 exit signal Segmentation fault (11) [Sat Sep 01 17:33:53 2012] [notice] child pid 1464 exit signal Segmentation fault (11) [Sat Sep 01 17:33:53 2012] [notice] child pid 1462 exit signal Segmentation fault (11) [Sat Sep 01 17:33:54 2012] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 4 idle, and 8 total children [Sat Sep 01 17:33:54 2012] [notice] child pid 1469 exit signal Segmentation fault (11)
config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting config.status: creating config.h . . \`-"'"-'/ } 6 6 { ==. Y ,== /^^^\ . / \ ) Ncat: A modern interpretation of classic Netcat ( )-( )/ -""---""--- / / Ncat \_/ ( ____ \_.=|____E Configuration complete. ( ) /\ _ ( \ | ( \ ( \.( ) _____ \ \ \ ` ` ) \ ( ___ / _ \ (_` \+ . x ( .\ \/ \____-----------/ (o) \_ - .- \+ ; ( O \____ (__ +- .( -'.- <. \_____________ ` \ / (_____ ._._: <_ - <- _- _ VVVVVVV VV V\ \/ . /./.+- . .- / +-- - . (--_AAAAAAA__A_/ | (__ ' /x / x _/ ( \______________//_ \_______ , x / ( ' . / . / \___' \ / / / _/ / + | \ / ' (__/ / \/ / \ NMAP IS A POWERFUL TOOL -- USE CAREFULLY AND RESPONSIBLY Configuration complete. Type make (or gmake on some *BSD machines) to compile.
k222 2012/09/01 やっと出来た ( ´▽`)ノ
portupgrade -rf pcre
===> Cleaning for pulseaudio-0.9.23_2 ---> Cleaning out obsolete shared libraries [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 668 packages found (-0 +1) . done] ** Listing the failed packages (-:ignored / *:skipped / !:failed) - net/pecl-yaz (pecl-yaz-1.0.14_1) - converters/pecl-fribidi (pecl-fribidi-1.0_1) - sysutils/pecl-fileinfo (pecl-fileinfo-1.0.4)
k222#
k222# sh # ldd /usr/local/bin/* 2> /dev/null | fgrep "pcre.so.0" | wc -l 0 # find /usr/local/lib -name "*so" -exec ldd '{}' 2> /dev/null ';' | fgrep "pcre.so.0" | wc -l 0
http://gihyo.jp/admin/clip/01/fdt/201202/17
2012年2月17日
後藤大地
FreeBSD, PCRE, 正規表現, ライブラリ
この記事を読むのに必要な時間:およそ 1 分
portupgrade(8)やportmaster(8)を使って「libpcre.so.0」を「/usr/local/lib/compat/pkg/」に退避させた場合,すでにインストールされているライブラリやアプリケーションはこの古いライブラリを参照し続けることになります。こうしたソフトウェアのライブラリ参照先を新しい「/usr/local/lib/libpcre.so.1」に向けるには,依存しているソフトウェアをすべて再構築する必要があります。
portupgrade(8)を使っている場合,次の操作で実施できます。
portupgrade -rf pcre
portmaster(8)を使っている場合には次の操作で同様の効果が得られます。
env LOCALBASE=/usr/local portmaster -w -D -G --no-confirm -r pcre
確認しながら確実に作業したいということであれば,次のように一旦手動で「libpcre.so.0」ファイルを「/usr/local/lib/compat/pkg/」へコピーしてからportmaster(8)を実行すれば良いでしょう。
mkdir -p /usr/local/lib/compat/pkg cp /usr/local/lib/libpcre.so.0 /usr/local/lib/compat/pkg/ portmaster -D -G --no-confirm -r pcre
システムにインストールされているサードパーティ製アプリケーションやライブラリが「libpcre.so.0」へ依存しているかどうかは,例えば次のようなワンライナーで確認できます。報告される数が0以外であれば,その数だけまだ依存するアプリケーションやライブラリが残っていることになります。その場合,fgrep以降のコマンドをlessなどに置き換えて,依存しているアプリケーションやライブラリを特定して,個別にアップデートを実施します(以下のワンライナーはsh,bash,zshなどsh系の文法を採用しているシェルを想定しています。cshやtcshを使っている場合には一旦shを起動するなどして作業してみてください)。
# sh ldd /usr/local/bin/* 2> /dev/null | fgrep "pcre.so.0" | wc -l find /usr/local/lib -name "*so" -exec ldd '{}' 2> /dev/null ';' | fgrep "pcre.so.0" | wc -l
ただし一点上記ワンライナーには注意が必要です。Flashプラグインをインストールしてある場合,この方法ではldd(1)経由でFlashの設定ダイアログが起動してきます。これはldd(1)のバグではなくこのような動作をすることになっているためです。その場合,一旦バイナリを別の場所に移動させるなどして回避してみてください。
「libpcre.so.0」へ依存するアプリケーションやライブラリがひとつもなくなったら,「/usr/local/lib/compat/pkg/libpcre.so.0」を削除しても問題ありません。portupgrade(8)やportmaster(8)を使っている場合「/usr/local/lib/compat/pkg/」に互換性確保のためのライブラリがたまっていきますので,それが嫌な場合には,ここで紹介したような方法で既存のアプリケーションやライブラリが新しいバージョンを使用するようにしてみてください。