我正在尝试在Linux Ubuntu 10.x计算机上构建fastcgi。
我运行以下命令:
。/配置
使
我收到以下错误:
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] Error 1
make[2]: Leaving directory `/somepath/fcgi-2.4.0/libfcgi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/somepath/fcgi-2.4.0'
make: *** [all] Error 2
我注意到其他人也遇到了同样的问题,并在各种论坛等中提出了这个问题-但是,我还没有看到对此问题/问题的答案。
有没有人设法在Linux上构建fastcgi?
我该如何解决这个问题?
最佳答案
EOF是一个C宏,似乎您没有在fcgio.cpp中定义它,或者某些东西未定义它。我首先尝试将#include <stdio.h>
添加到fcgio.cpp的开始。