From: SourceForge.net <no...@so...> - 2009-12-01 18:26:40
|
Bugs item #2905995, was opened at 2009-11-30 14:50 Message generated for change (Comment added) made by fabiankeil You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=111118&aid=2905995&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: unix-specific Group: version 3.0.15 beta Status: Closed Resolution: Invalid Priority: 5 Private: No Submitted By: Stephan (stephan79) Assigned to: Fabian Keil (fabiankeil) Summary: getaddrinfo() fails with uClibc 0.9.29 Initial Comment: Compiling Privoxy 3.0.15 for an embedded system (AVM FritzBox router using freetz), Privoxy gives the following error message when a client tries to connect to the internet over Privoxy: Nov 30 12:04:31.625 00000402 Info: Can not resolve www.google.de: Bad value for ai_flags The problem is related to the getaddrinfo() function, but I couldn't figure out why it fails. Please find attached the "debug 4096" output and an strace. ---------------------------------------------------------------------- >Comment By: Fabian Keil (fabiankeil) Date: 2009-12-01 18:26 Message: Thanks for the confirmation. ---------------------------------------------------------------------- Comment By: Stephan (stephan79) Date: 2009-11-30 16:42 Message: You're right. AI_NUMERICSERV is defined, but not supported. This bug is fixed in uClibc 0.9.30. The patch is at http://www.mail-archive.com/uc...@uc.../msg01285.html I will add a backported patch to our uClibc to fix that bug. I'm not sure if anything in privoxy should be changed as it does the right thing. ---------------------------------------------------------------------- Comment By: Fabian Keil (fabiankeil) Date: 2009-11-30 15:38 Message: Thanks for the report. It seems that one or both of the flags AI_NUMERICSERV and AI_ADDRCONFIG is/are defined but not actually supported. To work around the problem you could try adding: #undef AI_NUMERICSERV #define AI_NUMERICSERV 0 below the line "#define MAX_LISTEN_BACKLOG 128" in jbsockets.c. If it still doesn't work, add: #undef AI_ADDRCONFIG #define AI_ADDRCONFIG 0 and if it still fails use all four lines. Note that these flags have a purpose, so it might be worth investigating why they are defined but useless in your environment. It could be that you are unintentionally mixing uClibc header files with glibc header files. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=111118&aid=2905995&group_id=11118 |