NetBSD Problem Report #18076

Received: (qmail 19710 invoked by uid 605); 26 Aug 2002 16:20:24 -0000
Message-Id: <20020826162022.CBC8611124@narn.netbsd.org>
Date: Mon, 26 Aug 2002 09:20:22 -0700 (PDT)
From: dolemite@wuli.nu
Sender: gnats-bugs-owner@netbsd.org
Reply-To: dolemite@wuli.nu
To: gnats-bugs@gnats.netbsd.org
Subject: ispell
X-Send-Pr-Version: www-1.0

>Number:         18076
>Category:       pkg
>Synopsis:       ispell does not build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    cjep
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 26 16:21:00 +0000 2002
>Closed-Date:    Sun Apr 13 20:56:34 +0000 2003
>Last-Modified:  Sun Apr 13 20:56:34 +0000 2003
>Originator:     Alex Newman
>Release:        SunOS 5.8
>Organization:
Psi Upsilon of Troy
>Environment:
SunOS unknown 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-5_10
>Description:
ispell-base does not build:
1) imo we should not require people to have /usr/ucb/cc:
language optional software package not installed
2) + gcc -O2 -DHAVE_INTTYPES_H -c buildhash.c 
In file included from buildhash.c:69:
config.h:111: sys/dir.h: No such file or directory
*** Error code 1
and much more but this is how i first discovered problems which i have described a fix
3) are you sure you want the words going to /usr/share/dict/words and not /usr/pkg/share/dict/words? This seems broken and see next problem
4) make -f ../english/Makefile 'DBUILD=' VARIANTS=american \
  'EXTRADICT=/usr/share/dict/words' 'SHELLDEBUG=+vx' \
  'AFFIXES=../english/english.aff' \
  english.med+
make: Fatal error: Don't know how to make target `/usr/share/dict/words'
Current working directory /usr/pkgsrc/textproc/ispell-base/work/ispell-3.1/languages/american
*** Error code 1
make: Fatal error: Command failed for target `english.med+'
Current working directory /usr/pkgsrc/textproc/ispell-base/work/ispell-3.1/languages/american
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /usr/pkgsrc/textproc/ispell-base/work/ispell-3.1/languages/american
+ exit 1 
*** Error code 1
make: Fatal error: Command failed for target `language-subdirs'
5) PLIST does not have the dict in it

p.s.
I will be glad to test ispell in solaris whenever their is an update.
>How-To-Repeat:
bmake
>Fix:
1) in local.h #define CC "gcc"
2) #define USG
3) not broken so their is no fix
4) start using /usr/pkg/share/dict/words instead

my Makefile's do-configure now looks like this and it works great:
do-configure:
        cd ${WRKSRC};                                                   \
        ${SED} -e 's|/usr/local|${PREFIX}|g' <local.h.samp >local.h;    \
        ${ECHO} "#define CC \"gcc\" " >> local.h ;                      \
        ${ECHO} "#define USG" >> local.h ;                              \
        ${ECHO} "#undef NO8BIT" >> local.h ;                            \
        ${ECHO} "#define LANGUAGES \"{american,MASTERDICTS=american.med+,HASHFIL
ES=americanmed+.hash,EXTRADICT=${PREFIX}/share/dict/words}\""  >>local.h; \
        ${ECHO} "#define MASKBITS 64" >>local.h;                        \
        ${ECHO} "#undef WORDS"  >> local.h ;                            \
        ${ECHO} '#define WORDS   "${PREFIX/share/dict/words"'  >> local.h ;
\
        ${ECHO} '#undef ELISPDIR'  >> local.h;                          \
        ${ECHO} "#define ELISPDIR \"${PREFIX}/share/emacs/site-lisp\"" >> local.
h; \
        ${ECHO} "#define CFLAGS \"${CFLAGS}\"" >> local.h
5) pretty obv
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: cjep 
State-Changed-When: Sun Apr 13 05:02:32 PDT 2003 
State-Changed-Why:  

Hi Alex, 

There have been some changes to the ispell package recently. 

In particular, for SunOS we make some different defines and put the words 
in the standard place for SunOS (/usr/dict/words). The reason we do not 
hardcode gcc is in case someone wants to use a different C compiler. 

The USG problem has been addresses. 

I would like to close this PR, but please let me know what you think. 

best wishes, 
Chris 


Responsible-Changed-From-To: pkg-manager->cjep 
Responsible-Changed-By: cjep 
Responsible-Changed-When: Sun Apr 13 05:02:32 PDT 2003 
Responsible-Changed-Why:  
i'll look after this one. 
State-Changed-From-To: feedback->closed 
State-Changed-By: cjep 
State-Changed-When: Sun Apr 13 13:56:15 PDT 2003 
State-Changed-Why:  
Submitter agrees to closure. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.