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

Bug#549401: fails to build with gcc-4.4/newer eglibc



Package: ispell
Version: 3.1.20.0-4.5
Severity: normal
Tags: patch

Hi,

during Ubuntu's rebuild test, ispell failed to build [1]. The reason is
that getline is nowadays provided by eglibc (as it's part of POSIX).

While I'm not sure about the newer versions of ispell, I assume these are
also affected. At least I didn't find a hint in the ChangeLog (however
being conservative and setting the version to a known failing version).

Attached is a patch to fix the build failure.

Cheers,
   Stefan.
[1]:
<http://launchpadlibrarian.net/31764423/buildlog_ubuntu-karmic-amd64.ispell_3.1.20.0-4.5_FAILEDTOBUILD.txt.gz>


-- System Information:
Debian Release: squeeze/sid
  APT prefers karmic-updates
  APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500, 'karmic')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-11-generic (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ispell depends on:
ii  dictionaries-commo 1.2.1ubuntu1          Common utilities for spelling dict
ii  iamerican [ispell- 3.1.20.0-4.5          An American English dictionary for
ii  ibritish [ispell-d 3.1.20.0-4.5          A British English dictionary for i
ii  ingerman [ispell-d 20071211-1ubuntu1     New German orthography dictionary 
ii  iogerman [ispell-d 1:2-25                Old German orthography dictionary 
ii  iswiss [ispell-dic 20071211-1ubuntu1     Swiss (German) orthography diction
ii  libc6              2.10.1-0ubuntu12      GNU C Library: Shared libraries
ii  libncurses5        5.7+20090803-2ubuntu1 shared libraries for terminal hand

Versions of packages ispell recommends:
ii  wamerican [wordlist]   6-3               American English dictionary words 
ii  wbritish [wordlist]    6-3               British English dictionary words f
ii  wngerman [wordlist]    20071211-1ubuntu1 New German orthography wordlist
ii  wogerman [wordlist]    1:2-25            The old German dictionary for /usr
ii  wswiss [wordlist]      20071211-1ubuntu1 Swiss (German) orthography wordlis

Versions of packages ispell suggests:
pn  spell                         <none>     (no description available)

-- no debconf information
--- ispell-3.1.20.0.orig/correct.c
+++ ispell-3.1.20.0/correct.c
@@ -161,7 +161,7 @@
 		  struct flagent * sufent,
 		  ichar_t savearea[MAX_CAPS][INPUTWORDLEN + MAXAFFIXLEN],
 		  int * nsaved));
-static char *	getline P ((char * buf));
+static char *	getline_ispell P ((char * buf));
 void		askmode P ((void));
 void		copyout P ((char ** cc, int cnt));
 static void	lookharder P ((char * string));
@@ -443,7 +443,7 @@
 
 		move (li - 1, 0);
 		(void) putchar ('!');
-		if (getline (buf) == NULL)
+		if (getline_ispell (buf) == NULL)
 		    {
 		    (void) putchar (7);
 		    erase ();
@@ -468,7 +468,7 @@
 		    (void) printf ("%s ", CORR_C_READONLY);
 		    }
 		(void) printf (CORR_C_REPLACE_WITH);
-		if (getline (ctok) == NULL)
+		if (getline_ispell (ctok) == NULL)
 		    {
 		    (void) putchar (7);
 		    /* Put it back */
@@ -530,7 +530,7 @@
 		char	buf[100];
 		move (li - 1, 0);
 		(void) printf (CORR_C_LOOKUP_PROMPT);
-		if (getline (buf) == NULL)
+		if (getline_ispell (buf) == NULL)
 		    {
 		    (void) putchar (7);
 		    erase ();
@@ -1384,7 +1384,7 @@
 #endif /* NO_CAPITALIZATION_SUPPORT */
     }
 
-static char * getline (s)
+static char * getline_ispell (s)
     register char *	s;
     {
     register char *	p;

Reply to: