pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/44244 (crawl does not compile using GNU/Linux (pkgsrc 20010Q3))
The following reply was made to PR pkg/44244; it has been noted by GNATS.
From: David Holland <dholland-pbugs%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: pkg/44244 (crawl does not compile using GNU/Linux (pkgsrc
20010Q3))
Date: Wed, 29 Dec 2010 05:05:29 +0000
On Wed, Dec 29, 2010 at 04:30:05AM +0000, Ruben Gonzalez Arnau wrote:
> vim workdir/pkgsrc/www/crawl/work/crawl-0.4/dns.c
>
> Line 42,
>
> +#ifdef EAI_NODATA
> if (res != EAI_NODATA)
> return (-1);
> +#endif
That's not the right fix -- at a minimum it ought to be
+#ifdef EAI_NODATA
if (res != EAI_NODATA)
return (-1);
+else
+ return (-1);
+#endif
but I don't think that's right either; EAI_NODATA ought to be defined.
Does
% find /usr/include -name '*.h' -print | xargs grep EAI_NODATA
print anything?
Also, when you compile, does anything like -D_POSIX_SOURCE or
-D_GNU_SOURCE or similar appear on the compilation lines? It doesn't
for me, but the most likely cause of this problem, especially on
Linux, is that glibc is hiding the EAI_* definitions because it thinks
it's been asked to be strictly compliant with some outdated standard.
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index