On 2/21/06, djh <[EMAIL PROTECTED]> wrote:
> Platform: CYGWIN_NT-5.1 1.5.19(0.150/4/2) 2006-01-20 13:28
>
>
> The error returned is:
> --------------------------------------------
> gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I./..   -g -O2  -c tangleboot.c -o
> tangleboot.o
> In file included from tangleboot.c:94:
> tangleboot.h:34: error: conflicting types for 'getline'
> /usr/include/sys/stdio.h:31: error: previous declaration of 'getline'
> was here
> --------------------------------------------
> In tetex-src-3.0/texk/web2c/tangleboot.h is:
>     void getline AA((void));
>
>
> In /usr/include/sys/stdio.h its defined as:
> ssize_t _EXFUN(getline, (char **, size_t *, FILE *));
>
> -----------------------------------------------
>
> Can you think of something I can do to fix this?

Comment out the offending line in stdio.h and file a bug report with
the Cygwin folks.

The Cygwin man page "portability" section says this is a glibc extension.
On my debian linux system, the relevant section of stdio.h is protected:

# ifdef __USE_GNU
/* Like `getdelim', but reads up to a newline.  */
__STDIO_INLINE _IO_ssize_t
getline (char **__lineptr, size_t *__n, FILE *__stream)
{
  return __getdelim (__lineptr, __n, '\n', __stream);
}
# endif /* GNU */

Fedora core 2 stdio.h has the same protection as well as a note that
getline is not in POSIX.  The linux man page for getline has:

SYNOPSIS
       #define _GNU_SOURCE
       #include <stdio.h>


--
George N. White III <[EMAIL PROTECTED]>
Head of St. Margarets Bay, Nova Scotia

Reply via email to