ClosestStorm / v8cgi

Automatically exported from code.google.com/p/v8cgi
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Building fcgi=1 on centos #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Building with fcgi=1 on centos gives these errors:

src/v8cgi.cc: In member function 'virtual size_t v8cgi_CGI::reader(char*, 
size_t)':
src/v8cgi.cc:61: error: cannot convert 'FCGI_FILE*' to 'FILE*' for argument 
'4' to 'size_t fread(void*, size_t, size_t, FILE*)'
src/v8cgi.cc: In member function 'virtual size_t v8cgi_CGI::writer(const 
char*, size_t)':
src/v8cgi.cc:68: error: cannot convert 'FCGI_FILE*' to 'FILE*' for argument 
'4' to 'size_t fwrite(const void*, size_t, size_t, FILE*)'
src/v8cgi.cc: In member function 'virtual void v8cgi_CGI::error(const 
char*, const char*, int)':
src/v8cgi.cc:75: error: cannot convert 'FCGI_FILE*' to 'FILE*' for argument 
'4' to 'size_t fwrite(const void*, size_t, size_t, FILE*)'
src/v8cgi.cc:76: error: cannot convert 'FCGI_FILE*' to 'FILE*' for argument 
'4' to 'size_t fwrite(const void*, size_t, size_t, FILE*)'
scons: *** [src/v8cgi.o] Error 1

Original issue reported on code.google.com by krak...@gmail.com on 16 Dec 2009 at 3:25

GoogleCodeExporter commented 9 years ago
Unfortunately, I have no access to CentOS to debug this. Are you able to 
provide a
patch here? 

Original comment by ondrej.zara on 16 Dec 2009 at 8:07

GoogleCodeExporter commented 9 years ago
I get it to compile when applying the single thing I know about fastcgi and 
that is 
that fcgi_stio.h overwrites the definititons in stdio.h and thus should be 
included 
last. I moved:

#ifdef FASTCGI
 #  include <fcgi_stdio.h>
 #  include <signal.h>
 #endif

Original comment by krak...@gmail.com on 17 Dec 2009 at 1:46

GoogleCodeExporter commented 9 years ago
Fixed in r694.

Original comment by ondrej.zara on 18 Dec 2009 at 8:15