https://redmine.lighttpd.net/https://redmine.lighttpd.net/favicon.ico?13667327412007-04-26T11:36:11Zlighty labsLighttpd - Bug #1151: compile error (during compiling mod_fastcgi)https://redmine.lighttpd.net/issues/1151?journal_id=27422007-04-26T11:36:11Zdarix
<ul></ul><p>what os? what gcc version?</p> Lighttpd - Bug #1151: compile error (during compiling mod_fastcgi)https://redmine.lighttpd.net/issues/1151?journal_id=27432007-04-26T11:40:06ZAnonymous
<ul></ul><p>Replying to <a class="wiki-page new" href="https://redmine.lighttpd.net/projects/lighttpd/wiki/Comment1">darix</a>:</p>
<blockquote>
<p>what os? what gcc version?</p>
</blockquote>
<p>gcc -v<br />Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs<br />gcc version 2.95.4 20011002 (Debian prerelease)</p>
<p>if it's imposible with this gcc version - plz explain how I can switch this module off.<br />I am trying to create new module for lighthttpd and I just need to compile my own module. not the whole lighthttpd.<br />and I didn't find any ways to compile my module alone - without recompiling the whole lighthttpd</p> Lighttpd - Bug #1151: compile error (during compiling mod_fastcgi)https://redmine.lighttpd.net/issues/1151?journal_id=27442007-04-26T11:47:16Zdarix
<ul></ul><p>first of all ... why writing your own module?<br />can you join #lighttpd on irc.freenode.net?</p>
<p>thanks in advance</p> Lighttpd - Bug #1151: compile error (during compiling mod_fastcgi)https://redmine.lighttpd.net/issues/1151?journal_id=27452007-04-26T12:01:33ZAnonymous
<ul></ul><p>unfortunetly I am unable to connect to IRC right now.<br />the reason to write our own module: we have File Storage with specific folder architecture. (it's image tiles for maps). so we develop modules for different httpd serevers, such as Apache, lighthttpd, nginx - to find the most productive aplication of all.<br />the module is quite simple - it receive "x" \ "y" \ "zoom" - from request uri, after that it create our object using this variables... something like this: Coords2Tile(long x, long y, int zoom). and after that we can get Coords2Tile->path(). and using linux sendfile send file to user. so your lighthttpd support sendfile kernel feature and also support the full http protocol. so we develop module for lighthttpd too.<br />the main for us is that the server should work proper under havy load.</p>
<p>-- lighttpd</p> Lighttpd - Bug #1151: compile error (during compiling mod_fastcgi)https://redmine.lighttpd.net/issues/1151?journal_id=27462007-04-26T12:06:40Zdarix
<ul></ul><p>please run <br />"gcc -DHAVE_CONFIG_H -DLIBRARY_DIR=\"/home/vgordeenkov/serv_lighthttpd/lib\" -I. -I.. -D_REENTRANT -D+EXTENSIONS_+ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -c mod_fastcgi.c -Wp,-MD,.deps/mod_fastcgi.TPlo -fPIC -DPIC -o .libs/mod_fastcgi.o -savetemps"</p>
<p>and attach the mod_fastcgi.i</p> Lighttpd - Bug #1151: compile error (during compiling mod_fastcgi)https://redmine.lighttpd.net/issues/1151?journal_id=27472007-04-26T12:10:38Zdarix
<ul></ul><p>you can do that easily in a FastCGI application and use X-LIGHTTPD-send-file to tell lighttpd the path it should send via sendfile.</p>
<p>a nice starting point is <a class="external" href="http://trac.lighttpd.net/trac/browser/trunk/src/fcgi-stat-accel.c">http://trac.lighttpd.net/trac/browser/trunk/src/fcgi-stat-accel.c</a> . all you need to add is your resolving logic. of course any script language will work aswell. :)</p> Lighttpd - Bug #1151: compile error (during compiling mod_fastcgi)https://redmine.lighttpd.net/issues/1151?journal_id=27482007-04-26T12:18:00ZAnonymous
<ul></ul><p>the same truble. and no mod_fastcgi.i anywhere</p>
<pre>
vgordeenkov@fireball:~/src/lighttpd-1.4.15/src$ gcc -DHAVE_CONFIG_H -DLIBRARY_DIR="/home/vgordeenkov/serv_lighthttpd/lib" -I. -I.. -D_REENTRANT -DEXTENSIONS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -c mod_fastcgi.c -Wp,-MD,.deps/mod_fastcgi.TPlo -fPIC -DPIC -o .libs/mod_fastcgi.o -savetemps
gcc: unrecognized option `-savetemps'
In file included from server.h:4,
from mod_fastcgi.c:12:
base.h:487: warning: comma at end of enumerator list
mod_fastcgi.c: In function `fcgi_create_env':
mod_fastcgi.c:1896: parse error before `char'
mod_fastcgi.c:1899: `ds' undeclared (first use in this function)
mod_fastcgi.c:1899: (Each undeclared identifier is reported only once
mod_fastcgi.c:1899: for each function it appears in.)
mod_fastcgi.c:1900: `http_authorization' undeclared (first use in this function)
mod_fastcgi.c:2068: warning: ANSI C does not support the `ll' length modifier
mod_fastcgi.c:2068: warning: ANSI C does not support the `ll' length modifier
mod_fastcgi.c:2073: warning: ANSI C does not support the `ll' length modifier
mod_fastcgi.c:2073: warning: ANSI C does not support the `ll' length modifier
mod_fastcgi.c:2088: warning: ANSI C does not support the `ll' length modifier
mod_fastcgi.c:2088: warning: ANSI C does not support the `ll' length modifier
mod_fastcgi.c:2088: warning: ANSI C does not support the `ll' length modifier
mod_fastcgi.c: In function `mod_fastcgi_handle_subrequest':
mod_fastcgi.c:3033: warning: comparison between signed and unsigned
</pre>
<p>-- lighttpd</p> Lighttpd - Bug #1151: compile error (during compiling mod_fastcgi)https://redmine.lighttpd.net/issues/1151?journal_id=27492007-06-13T22:03:29ZAnonymous
<ul></ul><p>i'm having same compile error with mod_fastcgi on my RH system. Using gcc 3.2 the error is evident, but goes away with gcc 3.4.</p> Lighttpd - Bug #1151: compile error (during compiling mod_fastcgi)https://redmine.lighttpd.net/issues/1151?journal_id=27502007-06-15T21:59:11ZAnonymous
<ul></ul><p>Replying to <a class="wiki-page new" href="https://redmine.lighttpd.net/projects/lighttpd/wiki/Comment8"><a class="email" href="mailto:lighttpd@nagash.org">lighttpd@nagash.org</a></a>:</p>
<blockquote>
<p>the same truble. and no mod_fastcgi.i anywhere
{{{<br />vgordeenkov@fireball:~/src/lighttpd-1.4.15/src$ gcc -DHAVE_CONFIG_H -DLIBRARY_DIR="/home/vgordeenkov/serv_lighthttpd/lib" -I. -I.. -D_REENTRANT -DEXTENSIONS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -c mod_fastcgi.c -Wp,-MD,.deps/mod_fastcgi.TPlo -fPIC -DPIC -o .libs/mod_fastcgi.o -savetemps<br />gcc: unrecognized option `-savetemps'<br />In file included from server.h:4,<br />from mod_fastcgi.c:12:<br />base.h:487: warning: comma at end of enumerator list<br />mod_fastcgi.c: In function `fcgi_create_env':<br />mod_fastcgi.c:1896: parse error before `char'<br />mod_fastcgi.c:1899: `ds' undeclared (first use in this function)<br />mod_fastcgi.c:1899: (Each undeclared identifier is reported only once<br />mod_fastcgi.c:1899: for each function it appears in.)<br />mod_fastcgi.c:1900: `http_authorization' undeclared (first use in this function)<br />mod_fastcgi.c:2068: warning: ANSI C does not support the `ll' length modifier<br />mod_fastcgi.c:2068: warning: ANSI C does not support the `ll' length modifier<br />mod_fastcgi.c:2073: warning: ANSI C does not support the `ll' length modifier<br />mod_fastcgi.c:2073: warning: ANSI C does not support the `ll' length modifier<br />mod_fastcgi.c:2088: warning: ANSI C does not support the `ll' length modifier<br />mod_fastcgi.c:2088: warning: ANSI C does not support the `ll' length modifier<br />mod_fastcgi.c:2088: warning: ANSI C does not support the `ll' length modifier<br />mod_fastcgi.c: In function `mod_fastcgi_handle_subrequest':<br />mod_fastcgi.c:3033: warning: comparison between signed and unsigned</p>
<p>}}}</p>
</blockquote>
<p>here is the solution:</p>
<p>put these 2 lines:</p>
<pre><code>data_string *ds;<br /> char *http_authorization = NULL;</code></pre>
<p>at the beginning of the function.</p>
<p>after that it should like this<br />------<br />static int fcgi_create_env(server *srv, handler_ctx *hctx, size_t request_id) {<br /> FCGI_BeginRequestRecord beginRecord;<br /> FCGI_Header header;<br /> buffer *b;<br /> data_string *ds;<br /> char *http_authorization = NULL;<br />---------</p>
<p>thanks for they guys on irc #lighttpd</p> Lighttpd - Bug #1151: compile error (during compiling mod_fastcgi)https://redmine.lighttpd.net/issues/1151?journal_id=27512008-08-03T15:50:32Zstbuehler
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Fixed</i></li><li><strong>Resolution</strong> set to <i>fixed</i></li></ul><p>Fixed in r1787</p>