This is the mail archive of the
libc-alpha@cygnus.com
mailing list for the glibc project.
Re: glibc 2.0.95
- To: Richard Henderson <rth@cygnus.com>
- Subject: Re: glibc 2.0.95
- From: Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
- Date: Sun, 2 Aug 1998 14:44:21 +0200
- Cc: libc-alpha@cygnus.com
- References: <19980801124020.F17647@dot.cygnus.com>
Am Sat, 01 Aug 1998 schrieb Richard Henderson:
>On Sat, Aug 01, 1998 at 01:12:13PM +0200, Franz Sirl wrote:
>> // compile with: g++ -O2 -c -s -pedantic-errors test.C
>> #include <stdlib.h>
>> #include <unistd.>
>>
>> int main()
>> {
>> char buffer[200];
>> gethostname(buffer,200);
>> return 0;
>> }
>
>This is IMO a stupid way to detect a prototype. Have a look at
>egcs' aclocal.m4, GCC_NEED_DECLARATION:
>
> char *(*pfn) = (char *(*)) $1
This looks better sure, but it makes no difference for the problem. With the
current glibc-2.0.95 header files and egcs-1.1 it will still fail if you
compile with g++ -pedantic-errors.
Franz.