pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/41746: Compilation of ispell-base failed because of conflict with getline in stdio.h



>Number:         41746
>Category:       pkg
>Synopsis:       Compilation of ispell-base failed because of conflict with 
>getline in stdio.h
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 17 06:15:01 +0000 2009
>Originator:     Tom Stejskal
>Release:        current
>Organization:
>Environment:
NetBSD cx7.lan 5.99.15 NetBSD 5.99.15 (GENERIC) #0: Wed Jul 15 22:44:00 CEST 
2009  tose%cx7.lan@localhost:/home/tose/obj/sys/arch/amd64/compile/GENERIC amd64
>Description:
Compilation of ispell-base failed with following error:

correct.c:248: error: conflicting types for 'getline'
/usr/include/stdio.h:245: error: previous declaration of 'getline' was here

>How-To-Repeat:

>Fix:
--- correct.c.orig      2009-07-16 14:22:14.000000000 +0200
+++ correct.c   2009-07-16 14:22:35.000000000 +0200
@@ -245,7 +245,7 @@
                  struct flagent * sufent,
                  ichar_t savearea[MAX_CAPS][INPUTWORDLEN + MAXAFFIXLEN],
                  int * nsaved));
-static char *  getline P ((char * buf, int bufsize));
+static char *  get_line P ((char * buf, int bufsize));
 void           askmode P ((void));
 void           copyout P ((unsigned char ** cc, int cnt));
 static void    lookharder P ((unsigned char * string));
@@ -571,7 +571,7 @@
 
                imove (li - 1, 0);
                (void) putchar ('!');
-               if (getline ((char *) buf, sizeof buf) == NULL)
+               if (get_line ((char *) buf, sizeof buf) == NULL)
                    {
                    (void) putchar (7);
                    ierase ();
@@ -596,7 +596,7 @@
                    (void) printf ("%s ", CORR_C_READONLY);
                    }
                (void) printf (CORR_C_REPLACE_WITH);
-               if (getline ((char *) ctok, ctokl) == NULL)
+               if (get_line ((char *) ctok, ctokl) == NULL)
                    {
                    (void) putchar (7);
                    /* Put it back */
@@ -664,7 +664,7 @@
                unsigned char   buf[100];
                imove (li - 1, 0);
                (void) printf (CORR_C_LOOKUP_PROMPT);
-               if (getline ((char *) buf, sizeof buf) == NULL)
+               if (get_line ((char *) buf, sizeof buf) == NULL)
                    {
                    (void) putchar (7);
                    ierase ();
@@ -1583,7 +1583,7 @@
     return;
     }
 
-static char * getline (s, len)
+static char * get_line (s, len)
     register char *    s;
     register int       len;
     {



Home | Main Index | Thread Index | Old Index