https://redmine.lighttpd.net/https://redmine.lighttpd.net/favicon.ico?13667327412008-03-26T14:05:46Zlighty labsLighttpd - Bug #1610: mod_extforward.c fails to compile with gcchttps://redmine.lighttpd.net/issues/1610?journal_id=39772008-03-26T14:05:46Zstbuehler
<ul></ul><p>You could try the following patch (save in a file and do {{{patch -p1 < thefilename}}} in the source directory):</p>
<pre>
diff a/src/mod_extforward.c b/src/mod_extforward.c
--- a/src/mod_extforward.c
+++ b/src/mod_extforward.c
@@ -7,6 +7,8 @@
#include <string.h>
#include <stdio.h>
#include <netinet/in.h>
+#include <sys/socket.h>
+#include <netdb.h>
#include "base.h"
#include "log.h"
</pre>
<p>But i guess your glibc could just be too old; what version do you have?</p> Lighttpd - Bug #1610: mod_extforward.c fails to compile with gcchttps://redmine.lighttpd.net/issues/1610?journal_id=39782008-04-04T20:48:33Zstbuehler
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Fixed</i></li><li><strong>Resolution</strong> set to <i>worksforme</i></li></ul><p>Closed as feedback is missing. Please reopen if it is really a bug and you can provide more information (OS? version of your libraries? tried patch?...)</p> Lighttpd - Bug #1610: mod_extforward.c fails to compile with gcchttps://redmine.lighttpd.net/issues/1610?journal_id=49622008-10-10T19:10:31Zstbuehler
<ul><li><strong>Status</strong> changed from <i>Fixed</i> to <i>Missing Feedback</i></li></ul> Lighttpd - Bug #1610: mod_extforward.c fails to compile with gcchttps://redmine.lighttpd.net/issues/1610?journal_id=55122009-02-25T21:27:59Zdocwhat
<ul><li><strong>Status</strong> changed from <i>Missing Feedback</i> to <i>Reopened</i></li><li><strong>Assignee</strong> set to <i>stbuehler</i></li></ul><p>I'm not the original reporter, but I'm having the same problem and will happily help trouble shoot it.</p>
<p>I applied the patch in comment <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: broken pipe for writev (Fixed)" href="https://redmine.lighttpd.net/issues/1">#1</a> and it didn't help:</p>
<pre>
gcc -DHAVE_CONFIG_H -DLIBRARY_DIR=\"/usr/local/vivisimo/lib\" -DSBIN_DIR=\"/usr/local/vivisimo/sbin\" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I/cygdrive/c/checkouts/holtje/vivisimo/ext/include -D_REENTRANT -fPIC -DACL_SUPPORT -D_REENTRANT -DACL_SUPPORT -O9 -I/cygdrive/c/checkouts/holtje/vivisimo/ext/include -Wall -W -Wshadow -pedantic -std=gnu99 -MT mod_extforward.lo -MD -MP -MF .deps/mod_extforward.Tpo -c mod_extforward.c -DDLL_EXPORT -DPIC -o .libs/mod_extforward.o
mod_extforward.c:1: warning: -fPIC ignored for target (all code is position independent)
mod_extforward.c: In function `ipstr_to_sockaddr':
mod_extforward.c:301: error: storage size of 'hints' isn't known
mod_extforward.c:315: error: `AI_NUMERICHOST' undeclared (first use in this function)
mod_extforward.c:315: error: (Each undeclared identifier is reported only once
mod_extforward.c:315: error: for each function it appears in.)
mod_extforward.c:317: warning: implicit declaration of function `getaddrinfo'
mod_extforward.c:320: warning: implicit declaration of function `gai_strerror'
mod_extforward.c:320: warning: format argument is not a pointer (arg 4)
mod_extforward.c:320: warning: format argument is not a pointer (arg 4)
mod_extforward.c:321: error: `EAI_SYSTEM' undeclared (first use in this function)
mod_extforward.c:301: warning: unused variable `hints'
mod_extforward.c: In function `mod_extforward_uri_handler':
mod_extforward.c:398: warning: unused variable `addrs_left'
make[3]: *** [mod_extforward.lo] Error 1
</pre>
<p>Like the original author, I'm compiling under cygwin.</p>
Possibly related forum posts:
<ul>
<li><a class="external" href="http://forum.lighttpd.net/topic/34008">http://forum.lighttpd.net/topic/34008</a></li>
<li><a class="external" href="http://forum.lighttpd.net/topic/67760">http://forum.lighttpd.net/topic/67760</a></li>
</ul> Lighttpd - Bug #1610: mod_extforward.c fails to compile with gcchttps://redmine.lighttpd.net/issues/1610?journal_id=57562009-03-26T23:07:20Zstbuehler
<ul><li><strong>Assignee</strong> deleted (<del><i>stbuehler</i></del>)</li><li><strong>Patch available</strong> set to <i>No</i></li></ul> Lighttpd - Bug #1610: mod_extforward.c fails to compile with gcchttps://redmine.lighttpd.net/issues/1610?journal_id=98462016-07-06T03:34:59Zgstrauss
<ul><li><strong>Missing in 1.5.x</strong> set to <i>Yes</i></li></ul><p>FYI: compiles fine under cygwin on lighttpd 1.4.x</p> Lighttpd - Bug #1610: mod_extforward.c fails to compile with gcchttps://redmine.lighttpd.net/issues/1610?journal_id=101732016-07-16T12:39:18Zgstrauss
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Obsolete</i></li></ul>