Subject: pkg/21562: textproc/aspell compilation fails
To: None <>
From: None <>
List: netbsd-bugs
Date: 05/13/2003 06:56:34
>Number:         21562
>Category:       pkg
>Synopsis:       textproc/aspell compilation fails
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 13 06:57:01 UTC 2003
>Originator:     Florence HENRY
>Release:        -current
NetBSD dodo 1.6R NetBSD 1.6R (DODO) #9: Sat May  3 11:36:28 CEST 2003  root@dodo:/usr/src/sys/arch/i386/compile/DODO i386
the textproc/aspell package compilation fails with this error
 c++ -DHAVE_CONFIG_H -I. -I. -I../common -I../common/ -I../interfaces/cc/ -I../modules/speller/default/   -I/usr/pkg/include  -O2 -I/usr/pkg/include -c -o check_funs.o `test -f 'check_funs.cpp' || echo './'`check_funs.cpp
check_funs.cpp: In function `void layout_screen()':
check_funs.cpp:208: implicit declaration of function `int halfdelay(...)'
gmake[1]: *** [check_funs.o] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/textproc/aspell/work/aspell-0.50.3/prog'
gmake: *** [all-recursive] Error 1
*** Error code 2

make clean && make
here is a patch that fixes the problem


--- prog/check_funs.cpp.orig    Tue May 13 08:50:02 2003
+++ prog/check_funs.cpp
@@ -205,7 +205,7 @@ void layout_screen() {
   choice_w = 0;
-  halfdelay(1);
+  int halfdelay(1);
   keypad(stdscr, true);
   int height, width;