[ ijbswa-Bugs-3481523 ] can't support ipv6 when compile with mingw

SourceForge.net <[email protected]>
Newsgroups gmane.comp.web.privoxy.devel
Message-ID <[email protected]>
Bugs item #3481523, was opened at 2012-01-29 21:31
Message generated for change (Comment added) made by fabiankeil
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=111118&aid=3481523&group_id=11118

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: build process
Group: version 3.0.19
>Status: Pending
Resolution: None
Priority: 5
Private: No
Submitted By: ir193 (ir193)
Assigned to: Nobody/Anonymous (nobody)
Summary: can't support ipv6 when compile with mingw

Initial Comment:
hi,
apologize if i post duplicate. I'm new to sf.net


I'm using mingw32(gcc 4.3.3) and windows7sp1 to compile privoxy. have two problem:
1. got an error

jbsockets.c: In function ‘get_host_information’:
jbsockets.c:979:22: error: ‘NI_MAXSERV’ undeclared (first use in this function)
jbsockets.c:979:22: note: each undeclared identifier is reported only once for e
ach function it appears in
make: *** [jbsockets.o] Error 1

2. after edit the source: 
 #define NI_MAXSERV    32
i compile successfully. But it didin't support IPV6.

I wonder whether it a bug of configure or I miss some package


----------------------------------------------------------------------

>Comment By: Fabian Keil (fabiankeil)
Date: 2012-02-19 04:19

Message:
Strange. In the past setting WINVER seems to have been sufficient. Can you
try adding _WIN32_WINNT?

--- configure.in
+++ configure.in
@@ -299,7 +299,7 @@ fi])

 if test $target_type = mingw; then
   WIN_ONLY=
-  CFLAGS="$CFLAGS -DWINVER=0x501"
+  CFLAGS="$CFLAGS -DWINVER=0x501 -D_WIN32_WINNT=0x501"
   SPECIAL_CFLAGS="-mwindows -mno-cygwin"
   PTHREAD_LIB=-lpthreadGC
   echo "Using mingw32 (Win32 GUI)"

Is this the workaround you were thinking of?

----------------------------------------------------------------------

Comment By: ir193 (ir193)
Date: 2012-02-15 00:55

Message:
I think it's because getaddrinfo need _WIN32_WINNT >= 0x0501
and there is no _WIN32_WINNT defined when configure 
you can work around this.

----------------------------------------------------------------------

Comment By: Fabian Keil (fabiankeil)
Date: 2012-02-02 02:42

Message:
The missing NI_MAXSERV definition is a bug that is already worked around in
CVS. Unfortunately it wasn't discovered until after the 3.0.19 release.

This should only be a problem when Privoxy is compiled on Windows without
IPv6 support, though.

Are you configuring with --enable-mingw32?
Can you attach the configure output?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=111118&aid=3481523&group_id=11118

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Ijbswa-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ijbswa-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.