Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Nov 2001 12:49:28 GMT
From:      Nicholas Barnes <nb@thrush.ravenbrook.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/31819: ports/ispell install doesn't work
Message-ID:  <200111071249.fA7CnSe76961@thrush.ravenbrook.com>

next in thread | raw e-mail | index | archive | help

>Number:         31819
>Category:       ports
>Synopsis:       ports/ispell install doesn't work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 07 04:50:03 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Nicholas Barnes
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
Ravenbrook Limited
>Environment:
System: FreeBSD thrush.ravenbrook.com 4.4-STABLE FreeBSD 4.4-STABLE #2: Mon Oct 15 10:12:14 BST 2001 nb@thrush.ravenbrook.com:/usr/obj/usr/src/sys/THRUSH-2001-04-17 i386

>Description:
        The ispell port doesn't work.  Installing it generates an ignored error message, and then ispell itself dumps core.

>How-To-Repeat:
  $ cd /usr/ports/textproc/ispell
  $ su
  Password:
  # make FTP_PASSIVE_MODE=YES install
  *********************************************************
  * You can add further dictionaries:                     *
  *                              Use make-flag:           *
  *  - Afrikaans                 ISPELL_AF=yes            *
  *  - British                   ISPELL_BRITISH=yes       *
  *    (replaces the American dictionary)                 *
  *  - Dutch                     ISPELL_NL=yes            *
  *  - Danish                    ISPELL_DA=yes            *
  *  - French                    ISPELL_FR=yes            *
  *  - Brasilian                 ISPELL_BR=yes            *
  *  - German (old spelling)     ISPELL_DEALT=yes         *
  *  - German (new spelling)     ISPELL_DENEU=yes         *
  *  - Swedish                   ISPELL_SE=yes            *
  *  - Norwegian                 ISPELL_NO=yes            *
  * Example: "make ISPELL_FR=yes ISPELL_SE=yes install"   *
  *********************************************************
  >> ispell-3.2.05.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
  >> Attempting to fetch from http://fmg-www.cs.ucla.edu/geoff/tars/.
  
Receiving ispell-3.2.05.tar.gz (579568 bytes): 0%
Receiving ispell-3.2.05.tar.gz (579568 bytes): 0%
Receiving ispell-3.2.05.tar.gz (579568 bytes): 7%
Receiving ispell-3.2.05.tar.gz (579568 bytes): 20%
Receiving ispell-3.2.05.tar.gz (579568 bytes): 32%
Receiving ispell-3.2.05.tar.gz (579568 bytes): 44%
Receiving ispell-3.2.05.tar.gz (579568 bytes): 57%
Receiving ispell-3.2.05.tar.gz (579568 bytes): 69%
Receiving ispell-3.2.05.tar.gz (579568 bytes): 81%
Receiving ispell-3.2.05.tar.gz (579568 bytes): 94%
Receiving ispell-3.2.05.tar.gz (579568 bytes): 100%
  579568 bytes transferred in 8.6 seconds (65.70 kBps)
  ===>  Extracting for ispell-3.2.05_1
  >> Checksum OK for ispell-3.2.05.tar.gz.
  ===>  Patching for ispell-3.2.05_1
  ===>  Applying FreeBSD patches for ispell-3.2.05_1
  ===>  Configuring for ispell-3.2.05_1
  ===>  Building for ispell-3.2.05_1
  set +vx;  for var in BINDIR CC CFLAGS COUNTSUFFIX DEFDICT DEFHASH DEFLANG  HASHSUFFIX INSTALL  LANGUAGES LIBDIR LIBES LINT LINTFLAGS  MAKE_SORTTMP MAN1DIR MAN1EXT MAN4DIR MAN4EXT MASTERHASH  MSGLANG REGLIB STATSUFFIX  TERMLIB YACC  ; do  cat config.X local.h  | sed -n -e "s/^#define[ 	]*$var[ 	]*"'"'"/$var=/p"  | sed -e 's/".*$/'"'/" -e "s/=/='/"  | tail -1;  done > config.sh;  echo 'case "$MAKE_SORTTMP" in "")  SORTTMP="-e /!!SORTTMP!!/s/=.*$/=/";; *) SORTTMP=;; esac'  >> config.sh
  cp config.X config.h
  chmod u+w config.h
  echo '' >> config.h
  echo '/* AUTOMATICALLY-GENERATED SYMBOLS */' >> config.h
  cat local.h config.X  | egrep '^#define[ 	]*SIGNAL_TYPE'  | sed -e 's/TYPE[ 	]*/TYPE_STRING "/' -e 's/$/"/' -e 1q  >> config.h
  cat local.h config.X  | egrep '^#define[ 	]*MASKTYPE'  | sed -e 's/TYPE[ 	]*/TYPE_STRING "/' -e 's/$/"/' -e 1q  >> config.h
  + rm -f msgs.h
  + ln languages/english/msgs.h msgs.h
  + cc -O -pipe -c buildhash.c
  + cc -O -pipe -c hash.c
  + cc -O -pipe -c makedent.c
  + yacc parse.y
  + cc -O -pipe -c y.tab.c
  + mv y.tab.o parse.o
  + rm -f y.tab.c
  + cc -O -pipe -o buildhash buildhash.o hash.o makedent.o parse.o
  . ./config.sh;  sed -e "s@!!LIBDIR!!@$LIBDIR@" -e "s@!!DEFDICT!!@$DEFDICT@"  -e "s@!!DEFHASH!!@$DEFHASH@" -e "s@!!DEFLANG!!@$DEFLANG@"  -e "s@!!COUNTSUFFIX!!@$COUNTSUFFIX@g"  -e "s@!!HASHSUFFIX!!@$HASHSUFFIX@g"  -e "s@!!STATSUFFIX!!@$STATSUFFIX@g"  $SORTTMP < findaffix.X > findaffix
  chmod +x findaffix
  . ./config.sh;  sed -e "s@!!LIBDIR!!@$LIBDIR@" -e "s@!!DEFDICT!!@$DEFDICT@"  -e "s@!!DEFHASH!!@$DEFHASH@" -e "s@!!DEFLANG!!@$DEFLANG@"  -e "s@!!COUNTSUFFIX!!@$COUNTSUFFIX@g"  -e "s@!!HASHSUFFIX!!@$HASHSUFFIX@g"  -e "s@!!STATSUFFIX!!@$STATSUFFIX@g"  $SORTTMP < tryaffix.X > tryaffix
  chmod +x tryaffix
  + cc -O -pipe -c term.c
  + cc -O -pipe -c ispell.c
  + cc -O -pipe -c correct.c
  + cc -O -pipe -c defmt.c
  + cc -O -pipe -c dump.c
  + cc -O -pipe -c good.c
  + cc -O -pipe -c lookup.c
  + cc -O -pipe -c tgood.c
  + cc -O -pipe -c tree.c
  + cc -O -pipe -c xgets.c
  + cc -O -pipe -o ispell term.o ispell.o correct.o defmt.o dump.o good.o lookup.o hash.o makedent.o tgood.o tree.o xgets.o -ltermcap
  + cc -O -pipe -c icombine.c
  . ./config.sh;  set -x;  $CC $CFLAGS -o icombine icombine.o makedent.o parse.o  $LIBES
  + cc -O -pipe -o icombine icombine.o makedent.o parse.o
  + cc -O -pipe -c ijoin.c
  + cc -O -pipe -c fields.c
  + cc -O -pipe -o ijoin ijoin.o fields.o
  . ./config.sh;  sed -e "s@!!LIBDIR!!@$LIBDIR@" -e "s@!!DEFDICT!!@$DEFDICT@"  -e "s@!!DEFHASH!!@$DEFHASH@" -e "s@!!DEFLANG!!@$DEFLANG@"  -e "s@!!COUNTSUFFIX!!@$COUNTSUFFIX@g"  -e "s@!!HASHSUFFIX!!@$HASHSUFFIX@g"  -e "s@!!STATSUFFIX!!@$STATSUFFIX@g"  $SORTTMP < munchlist.X > munchlist
  chmod +x munchlist
  . ./config.sh;  sed -e "s@!!LIBDIR!!@$LIBDIR@" -e "s@!!DEFDICT!!@$DEFDICT@"  -e "s@!!DEFHASH!!@$DEFHASH@" -e "s@!!DEFLANG!!@$DEFLANG@"  -e "s@!!COUNTSUFFIX!!@$COUNTSUFFIX@g"  -e "s@!!HASHSUFFIX!!@$HASHSUFFIX@g"  -e "s@!!STATSUFFIX!!@$STATSUFFIX@g"  $SORTTMP < subset.X > subset
  chmod +x subset
  . ./config.sh;  sed -e "s@!!LIBDIR!!@$LIBDIR@" -e "s@!!DEFDICT!!@$DEFDICT@"  -e "s@!!DEFHASH!!@$DEFHASH@" -e "s@!!DEFLANG!!@$DEFLANG@"  -e "s@!!COUNTSUFFIX!!@$COUNTSUFFIX@g"  -e "s@!!HASHSUFFIX!!@$HASHSUFFIX@g"  -e "s@!!STATSUFFIX!!@$STATSUFFIX@g"  $SORTTMP < zapdups.X > zapdups
  chmod +x zapdups
  cd deformatters; make all
  cc -O -pipe    deformat-c.c  -o deformat-c
  cc -O -pipe    deformat-sh.c  -o deformat-sh
  ./ispell -v | sed 1q
  @(#) International Ispell Version 3.2.05 07/23/01
  . ./config.sh;  sed -e "s@!!LIBDIR!!@$LIBDIR@" -e "s@!!DEFDICT!!@$DEFDICT@"  -e "s@!!DEFHASH!!@$DEFHASH@" -e "s@!!DEFLANG!!@$DEFLANG@"  -e "s@!!COUNTSUFFIX!!@$COUNTSUFFIX@g"  -e "s@!!HASHSUFFIX!!@$HASHSUFFIX@g"  -e "s@!!STATSUFFIX!!@$STATSUFFIX@g"  $SORTTMP < ispell.1X > ispell.1
  make LANGUAGE_TARGET=all SHELLDEBUG=+vx language-subdirs
  + cd languages/american
  + eval make BUILD=build DBUILD=build CBUILD=build SHELLDEBUG=+vx  'MASTERDICTS=american.med+' 'HASHFILES=americanmed+.hash' 'EXTRADICT=/usr/share/dict/words' all
  + make BUILD=build DBUILD=build CBUILD=build SHELLDEBUG=+vx MASTERDICTS=american.med+ HASHFILES=americanmed+.hash EXTRADICT=/usr/share/dict/words all
  rm -f english.[0-3] american.[0-2] altamer.[012] british.[012]
  make -f ../english/Makefile 'DBUILD=' VARIANTS=american  'EXTRADICT=/usr/share/dict/words' 'SHELLDEBUG=+vx'  'AFFIXES=../english/english.aff'  english.med+
  + PATH=../..:/home/nb/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin:/usr/games
  + export PATH
  + munchlist -v -l ../english/english.aff /usr/share/dict/words english.0 english.1 american.0 american.1
  Collecting input.
  
  Word 'Jean-Christophe' contains illegal characters
  
  Word 'Jean-Pierre' contains illegal characters
  Finding flag marker.
  Generating roots and affixes.
  Expanding dictionary into EXPANDEDPAIRS.
  Creating list of legal roots/flags.
  Creating list of flags that participate in cross-products.
  Finding prefix and suffix flags.
  Creating awk script.
  Creating cross expansions (pass 1).
  Finding illegal cross expansions (pass 1).
  Creating cross expansions (pass 2).
  Finding illegal cross expansions (pass 2).
  Creating cross expansions (pass 3).
  Finding illegal cross expansions (pass 3).
  Creating cross expansions (pass 4).
  Finding illegal cross expansions (pass 4).
  Finding roots of cross expansions.
  Eliminating non-optimal affixes.
  Generating output word list.
  test -s english.med+  ||  (echo 'error: zero-length dictionary generated';  rm -f english.med+; exit 1)
  rm -f american.med+
  ln english.med+ american.med+
  make SHELLDEBUG=+vx americanmed+.hash
  rm -f americanmed+.hash
  ../../buildhash american.med+ ../english/english.aff americanmed+.hash
  Counting words in dictionary ...
  1000 2000 3000 4000 5000 6000 7000 8000 9000 10000 11000 12000 13000 14000 15000 16000 17000 18000 19000 20000 21000 22000 23000 24000 25000 26000 27000 28000 29000 30000 31000 32000 33000 34000 35000 36000 37000 38000 39000 40000 41000 42000 43000 44000 45000 46000 47000 48000 49000 50000 51000 52000 53000 54000 55000 56000 57000 58000 59000 60000 61000 62000 63000 64000 65000 66000 67000 68000 69000 70000 71000 72000 73000 74000 75000 76000 77000 78000 79000 80000 81000 82000 83000 84000 85000 86000 87000 88000 89000 90000 91000 92000 93000 94000 95000 96000 97000 98000 99000 100000 101000 102000 103000 104000 105000 106000 107000 108000 109000 110000 111000 112000 113000 114000 115000 116000 117000 118000 119000 120000 121000 122000 123000 124000 125000 126000 127000 128000 129000 130000 131000 132000 133000 134000 135000 136000 137000 138000 139000 140000 141000 142000 143000 144000 145000 146000 147000 148000 149000 150000 151000 152000 153000 154000 155000 156000 157!
 000 158000 159000 160000 161000 162000 163000 164000 165000 166000 167000 168000 169000 170000 171000 172000 173000 174000 175000 176000 177000 178000 179000 180000 181000 182000 183000 184000 185000 186000 187000 188000 189000 190000 191000 192000 193000 194000 195000 196000 197000 198000 199000 200000 201000 202000 203000 204000 205000 206000 207000 
  207481 words
  0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000 11000 12000 13000 14000 15000 16000 17000 18000 19000 20000 21000 22000 23000 24000 25000 26000 27000 28000 29000 30000 31000 32000 33000 34000 35000 36000 37000 38000 39000 40000 41000 42000 43000 44000 45000 46000 47000 48000 49000 50000 51000 52000 53000 54000 55000 56000 57000 58000 59000 60000 61000 62000 63000 64000 65000 66000 67000 68000 69000 70000 71000 72000 73000 74000 75000 76000 77000 78000 79000 80000 81000 82000 83000 84000 85000 86000 87000 88000 89000 90000 91000 92000 93000 94000 95000 96000 97000 98000 99000 100000 101000 102000 103000 104000 105000 106000 107000 108000 109000 110000 111000 112000 113000 114000 115000 116000 117000 118000 119000 120000 121000 122000 123000 124000 125000 126000 127000 128000 129000 130000 131000 132000 133000 134000 135000 136000 137000 138000 139000 140000 141000 142000 143000 144000 145000 146000 147000 148000 149000 150000 151000 152000 153000 154000 155000 156000 1!
 57000 158000 159000 160000 161000 162000 163000 164000 165000 166000 167000 168000 169000 170000 171000 172000 173000 174000 175000 176000 177000 178000 179000 180000 181000 182000 183000 184000 185000 186000 187000 188000 189000 190000 191000 192000 193000 194000 195000 196000 197000 198000 199000 200000 201000 202000 203000 204000 205000 206000 207000 
  ===>  Installing for ispell-3.2.05_1
  ===>  Warning: your umask is "0002".
        If this is not desired, set it to an appropriate value
        and install this port again by ``make reinstall''.
  cd deformatters; make all
  ./ispell -v | sed 1q
  @(#) International Ispell Version 3.2.05 07/23/01
  make LANGUAGE_TARGET=all SHELLDEBUG=+vx language-subdirs
  + cd languages/american
  + eval make BUILD=build DBUILD=build CBUILD=build SHELLDEBUG=+vx  'MASTERDICTS=american.med+' 'HASHFILES=americanmed+.hash' 'EXTRADICT=/usr/share/dict/words' all
  + make BUILD=build DBUILD=build CBUILD=build SHELLDEBUG=+vx MASTERDICTS=american.med+ HASHFILES=americanmed+.hash EXTRADICT=/usr/share/dict/words all
  make SHELLDEBUG=+vx americanmed+.hash
  `americanmed+.hash' is up to date.
  + [ -d /usr/local/bin ]
  + cd /usr/local/bin
  + rm -f ispell
  + cp ispell /usr/local/bin
  + cd /usr/local/bin
  + strip ispell
  + chmod 755 ispell
  + [ -d /usr/local/man/man1 ]
  + [ -d /usr/local/man/man4 ]
  + cd /usr/local/man/man1
  + rm -f ispell.1
  + cd /usr/local/man/man4
  + rm -f ispell.4
  + cp ispell.1 /usr/local/man/man1/ispell.1
  + cp ispell.4 /usr/local/man/man4/ispell.4
  + cd /usr/local/man/man1
  + chmod 644 ispell.1
  + cd /usr/local/man/man4
  + chmod 644 ispell.4
  cd deformatters; make install
  + cp deformat-c deformat-sh /usr/local/bin
  + cd /usr/local/bin
  + strip deformat-c deformat-sh
  + chmod 755 deformat-c deformat-sh
  + [ -d /usr/local/bin ]
  + cd /usr/local/bin
  + rm -f buildhash icombine ijoin munchlist findaffix tryaffix sq unsq
  + rm -f /usr/local/share/ispell/icombine
  + cp buildhash icombine ijoin munchlist findaffix tryaffix /usr/local/bin
  + cd /usr/local/bin
  + strip buildhash icombine ijoin
  + chmod 755 buildhash icombine ijoin munchlist findaffix tryaffix
  + [ -d /usr/local/man/man1 ]
  + [ -d /usr/local/man/man4 ]
  + cd /usr/local/man/man1
  + rm -f sq.1 unsq.1
  + basename /usr/local/man/man1
  + echo .so man1/ispell.1
  + basename /usr/local/man/man1
  + echo .so man1/ispell.1
  + basename /usr/local/man/man1
  + echo .so man1/ispell.1
  + basename /usr/local/man/man1
  + echo .so man1/ispell.1
  + cd /usr/local/man/man1
  + chmod 644 buildhash.1 munchlist.1 findaffix.1 tryaffix.1
  make LANGUAGE_TARGET=install SHELLDEBUG=+vx  language-subdirs
  + cd languages/american
  + eval make BUILD=build DBUILD=build CBUILD=build SHELLDEBUG=+vx  'MASTERDICTS=american.med+' 'HASHFILES=americanmed+.hash' 'EXTRADICT=/usr/share/dict/words' install
  + make BUILD=build DBUILD=build CBUILD=build SHELLDEBUG=+vx MASTERDICTS=american.med+ HASHFILES=americanmed+.hash EXTRADICT=/usr/share/dict/words install
  make SHELLDEBUG=+vx americanmed+.hash
  `americanmed+.hash' is up to date.
  + [ -d /usr/local/share/ispell ]
  + cd /usr/local/share/ispell
  + rm -f english.aff americanmed+.hash american.hash
  + cp ../english/english.aff americanmed+.hash /usr/local/share/ispell
  + cd /usr/local/share/ispell
  + chmod 644 english.aff americanmed+.hash
  + ln americanmed+.hash american.hash
  + break
  + [ -d /usr/local/man/man4 ]
  + cd /usr/local/man/man4
  + rm -f english.4
  + cp ../english/english.4l /usr/local/man/man4/english.4
  + chmod 644 /usr/local/man/man4/english.4
  . ./config.sh;  [ -d $LIBDIR ]  ||  (mkdir $LIBDIR; chmod 755 $LIBDIR);  set -x;  cd $LIBDIR;  if [ $MASTERHASH != $DEFHASH ]; then  rm -f $DEFHASH;  ln $MASTERHASH $DEFHASH;  fi
  + cd /usr/local/share/ispell
  + [ americanmed+.hash != english.hash ]
  + rm -f english.hash
  + ln americanmed+.hash english.hash
  ===>   Generating temporary packing list
  install -c -o root -g wheel -m 444 /usr/ports/textproc/ispell/work/ispell-3.2.05/languages/american/english.med+  /usr/local/share/ispell/english.dict
  install: /usr/ports/textproc/ispell/work/*/*.aff: No such file or directory
  *** Error code 71 (ignored)
  ===>   Compressing manual pages for ispell-3.2.05_1
  ===>   Registering installation for ispell-3.2.05_1

  # ispell Makefile
  Segmentation fault - core dumped

>Fix:

 I don't know.  I tried changing /usr/ports/textproc/ispell/Makefile so that that installer doesn't generate an ignored error, by changing the offending line to this:

	@-${INSTALL_DATA} ${WRKSRC}/languages/*/*.aff ${WRKSRC}/languages/*/*.hash ${DATADIR}

 But I still get a core dump.
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111071249.fA7CnSe76961>