Subject: Re: psi broken
To: Perry E. Metzger <perry@piermont.com>
From: mouss <usebsd@free.fr>
List: tech-pkg
Date: 06/25/2004 03:18:06
Perry E. Metzger wrote:

> BTW, I have confirmed that if I hardcode 
> 
> #define Q_MODERN_RES_API
> 
> in the file, the resulting library (and psi) actually works correctly,
> so this is in fact the source of the problem.
> 
> [snip]
>>
>>#if defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 3)))
>>#define Q_MODERN_RES_API
>>#else
>>#endif
>>
>>This is not a good idea.
>>
>>Unfortunately, I don't speak configure well enough to fix it
>>correctly, nor do I know how to do the test for a modern resolver.

What about defining it in Makefile.common. I mean something like:
CXXFLAGS+=  -DQ_MODERN...
or should it be customizable in mk.conf in case someone uses another 
resolver?


mouss