For fcgi, whether I use the regular version 2.4.0 or the latest 2.4.1 (released in October 09), the following error occurred:
root@localhost:~/downloads/fcgi-2.4.1-snap-0910052249#./configure--prefix=/usr/local/fcgi-2.4.1
There is no problem with this step.
Next
root@localhost:~/downloads/fcgi-2.4.1-snap-0910052249# make
Make All-recursive
MAKE[1]: Entering directory '/root/downloads/fcgi-2.4.1-snap-0910052249 '
Making all in libfcgi
MAKE[2]: Entering directory '/root/downloads/fcgi-2.4.1-snap-0910052249/libfcgi '
If/bin/bash.. /libtool--tag=cxx--mode=compile g++-dhave_config_h-i. I.-I.. -I.. /include-g-o2-mt fcgio.lo-md-mp-mf ". Deps/fcgio. Tpo "-c-o Fcgio.lo fcgio.cpp;
Then Mv-f ". Deps/fcgio. Tpo "". Deps/fcgio. Plo "; Else Rm-f ". Deps/fcgio. Tpo "; Exit 1; Fi
g++-dhave_config_h-i. I.-I.. -I.. /include-g-o2-mt FCGIO.LO-MD-MP-MF. Deps/fcgio. Tpo-c Fcgio.cpp-fpic-dpic-o. libs/fcgio.o
Fcgio.cpp:In destructor ' virtual fcgi_streambuf::~fcgi_streambuf () ':
Fcgio.cpp:50:error: ' EOF ' wasn't declared in this scope
Fcgio.cpp:In member function ' virtual int fcgi_streambuf::overflow (int) ':
Fcgio.cpp:70:error: ' EOF ' wasn't declared in this scope
Fcgio.cpp:75:error: ' EOF ' wasn't declared in this scope
Fcgio.cpp:In member function ' virtual int fcgi_streambuf::sync () ':
Fcgio.cpp:86:error: ' EOF ' wasn't declared in this scope
Fcgio.cpp:87:error: ' EOF ' wasn't declared in this scope
Fcgio.cpp:In member function ' virtual int fcgi_streambuf::underflow () ':
Fcgio.cpp:113:error: ' EOF ' wasn't declared in this scope
MAKE[2]: * * * [Fcgio.lo] Error 1
MAKE[2]: Leaving directory '/root/downloads/fcgi-2.4.1-snap-0910052249/libfcgi '
MAKE[1]: * * * [all-recursive] Error 1
MAKE[1]: Leaving directory '/root/downloads/fcgi-2.4.1-snap-0910052249 '
Make: * * * [ALL] Error 2
root@localhost:~/downloads/fcgi-2.4.1-snap-0910052249#
My version of GCC is as follows:
root@localhost:~/downloads/fcgi-2.4.1-snap-0910052249/include# gcc-v
Using built-in specs.
Target:x86_64-linux-gnu
Configured with:. /src/configure-v--with-pkgversion= ' Ubuntu 4.4.1-4ubuntu8 '--with-bugurl=file:///usr/share/doc/gcc-4.4/readme. Bugs--enable-languages=c,c++,fortran,objc,obj-c++--prefix=/usr--enable-shared--enable-multiarch-- Enable-linker-build-id--with-system-zlib--libexecdir=/usr/lib--without-included-gettext--enable-threads=posix- -with-gxx-include-dir=/usr/include/c++/4.4--program-suffix=-4.4--enable-nls--enable-clocale=gnu-- Enable-libstdcxx-debug--enable-objc-gc--disable-werror--with-arch-32=i486--with-tune=generic--enable-checking= Release--build=x86_64-linux-gnu--host=x86_64-linux-gnu--target=x86_64-linux-gnu
Thread Model:posix
GCC version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)
root@localhost:~/downloads/fcgi-2.4.1-snap-0910052249/include#
I think this fcgi development is not active at all, and the latest version of GCC continues to come out, most likely because of this reason, I have adjusted the keyword
GCC compile fcgi, (previous search without direction). Finally found the reason in the first result:http://bugs.gentoo.org/256654
--------------------------------------------------------------------
build of dev-libs/fcgi-2.4.1_pre0311112127 fails with the following Errors:fcgio.cpp:In D Estructor ' virtual fcgi_streambuf::~fcgi_streambuf () ': fcgio.cpp:50:error: ' EOF ' is not declared in this scope fcgio.cpp : In member function ' virtual int fcgi_streambuf::overflow (int) ': fcgio.cpp:70:error: ' EOF ' wasn't declared in this SCOP E fcgio.cpp:75:error: ' EOF ' is not declared in the scope Fcgio.cpp:In member function ' virtual int Fcgi_streambuf::syn
C () ': fcgio.cpp:86:error: ' EOF ' is not declared in this scope Fcgio.cpp:87:error: ' EOF ' is not declared in this scope Fcgio.cpp:In member function ' virtual int fcgi_streambuf::underflow () ': fcgio.cpp:113:error: ' EOF ' wasn't declared in T
His scope is because #include <cstdio> are missing from one of the headers. in view of this: Add header file #include<cstdio> to unpack package include/fcgio.h, then compile will be no problem. compile fastcgi:gcc-lfcgi fcgi1.c-o fcgi1.fcgi