Ticket #1610 (closed defect: worksforme)

Opened 4 months ago

Last modified 4 months ago

mod_extforward.c fails to compile with gcc

Reported by: anonymous Assigned to: glen
Priority: normal Milestone: 1.5.0
Component: mod_extforward Version: 1.4.19
Severity: normal Keywords:
Cc: Blocking:
Need Feedback: 0

Description

mod_extforward.c: In function `ipstr_to_sockaddr':
mod_extforward.c:299: error: storage size of 'hints' isn't known
mod_extforward.c:313: error: `AI_NUMERICHOST' undeclared (first use in this func
tion)
mod_extforward.c:313: error: (Each undeclared identifier is reported only once
mod_extforward.c:313: error: for each function it appears in.)
mod_extforward.c:315: warning: implicit declaration of function `getaddrinfo'
mod_extforward.c:318: warning: implicit declaration of function `gai_strerror'
mod_extforward.c:318: warning: format argument is not a pointer (arg 4)
mod_extforward.c:318: warning: format argument is not a pointer (arg 4)
mod_extforward.c:319: error: `EAI_SYSTEM' undeclared (first use in this function
)
mod_extforward.c:299: warning: unused variable `hints'
mod_extforward.c: In function `mod_extforward_uri_handler':
mod_extforward.c:396: warning: unused variable `addrs_left'
make[2]: *** [mod_extforward.lo] Error 1
make[2]: Leaving directory `/cygdrive/c/lighttpd-1.4.19/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/lighttpd-1.4.19'
make: *** [all] Error 2

Attachments

Change History

03/26/2008 02:05:46 PM changed by stbuehler

You could try the following patch (save in a file and do patch -p1 < thefilename in the source directory):

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"

But i guess your glibc could just be too old; what version do you have?

04/04/2008 08:48:33 PM changed by stbuehler

  • status changed from new to closed.
  • resolution set to worksforme.

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?...)


Add/Change #1610 (mod_extforward.c fails to compile with gcc)




Change Properties
Action