[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: gai strerror?

At 11:15 PM 10/15/00 +0200, Stig Venås wrote:
>On Sun, Oct 15, 2000 at 01:31:05PM -0700, Kurt D. Zeilenga wrote:
>> At 03:32 AM 10/14/00 -0700, Howard Chu wrote:
>> >I just tried to build from the HEAD branch, got an undefined symbol in
>> >daemon.c
>> >that looks like it wants to be a "get addr info strerror". What is this?
>> Basically, yes.  getaddrinfo() returns EAI codes which need special
>> handling.  If gai_strerror() is not available everywhere getaddrinfo()
>> is, we need to add detection and appropriate conditional usage.
>> (I suggest we add replacement function when defined( HAVE_GETADDRINFO )
>> && !defined( HAVE_GAI_STRERROR ).
>I must confess I'm not all that surprised this was a problem. We could
>just skip it and not give that specific error messages, that's what we
>did before. I'll write the replacement function if you want me to.

I personally don't mind just reporting the ecode, but I suspect
others would prefer the strerror.