[ 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: Closed Resolution: None Priority: 5 Private: No Submitted By: ir193 (ir193) >Assigned to: Fabian Keil (fabiankeil) 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-21 10:53 Message: No problem. Thanks for letting us know. ---------------------------------------------------------------------- Comment By: ir193 (ir193) Date: 2012-02-20 17:27 Message: I'm really sorry. I installed a latest MSYS. The problem disappeared. It seems the older gcc cause the problem. ---------------------------------------------------------------------- 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 ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Ijbswa-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ijbswa-developers