| LFSトップ | Japanese Only | 2010/01/24 |
FastCGI-2.4.0
はじめに
- CGI プロセスの生成・破棄を都度つど行わないことで高速化を図るライブラリ(説明は適当)。
参考リンク
ビルド
- 単純なビルド(configure; make)ではエラー発生。以下は make 時の最終エラー例:
fcgio.cpp: In destructor 'virtual fcgi_streambuf::~fcgi_streambuf()':
fcgio.cpp:50: error: 'EOF' was not declared in this scope
fcgio.cpp: In member function 'virtual int fcgi_streambuf::overflow(int)':
fcgio.cpp:70: error: 'EOF' was not declared in this scope
fcgio.cpp:75: error: 'EOF' was not declared in this scope
fcgio.cpp: In member function 'virtual int fcgi_streambuf::sync()':
fcgio.cpp:86: error: 'EOF' was not declared in this scope
fcgio.cpp:87: error: 'EOF' was not declared in this scope
fcgio.cpp: In member function 'virtual int fcgi_streambuf::underflow()':
fcgio.cpp:107: error: 'EOF' was not declared in this scope
make[2]: *** [fcgio.lo] エラー 1
make[2]: ディレクトリ `/mnt/lfs/sources/BLFS/fcgi-2.4.0/libfcgi' から出ます
make[1]: *** [all-recursive] エラー 1
make[1]: ディレクトリ `/mnt/lfs/sources/BLFS/fcgi-2.4.0' から出ます
make: *** [all] エラー 2
- どこかで得た情報に基づき、自分でパッチ作成。fcgi-2.4.0.patch.txt (非公式)
- 最近ちょくちょく発生する、gcc 4.X.X(?) 系に起因したエラーであり、「#include <cstdio>」を追加することで対処するもの。
- これを用いてビルド。
patch -Np1 -i ../fcgi-2.4.0.patch.txt
./configure --prefix=/usr
make
make install
ベース環境
cat /etc/lfs-release
SVN-20100109
|
|
| 松 山 道 夫 Michio Matsuyama |
|