Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jul 2008 06:07:47 +0900
From:      Hirohisa Yamaguchi <umq@ueo.co.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/125841: [patch] textproc/ispell 3.3.02_1 build error
Message-ID:  <86d4l7aqu4.wl%umq@ueo.co.jp>
Resent-Message-ID: <200807212110.m6LLA4c1086176@freefall.freebsd.org>

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

>Number:         125841
>Category:       ports
>Synopsis:       [patch] textproc/ispell 3.3.02_1 build error
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 21 21:10:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Hirohisa Yamaguchi
>Release:        FreeBSD 8.0-CURRENT amd64
>Organization:
<organization of PR author (multiple lines)>
>Environment:
System: FreeBSD calliope.****.org 8.0-CURRENT FreeBSD 8.0-CURRENT #17: Thu Jul 10 06:27:38 JST 2008 root@calliope.****.org:/usr/obj/usr/src/sys/CALLIOPE64 amd64

>Description:
	While I build textproc/ispell, I got following:

cc -O2 -pipe -march=athlon64 -fno-strict-aliasing -c term.c
In file included from term.c:97:
/usr/include/sgtty.h:2:2: error: #error "The sgtty interface has been replaced by termios(4)"
/usr/include/sgtty.h:3:2: error: #error "Try to use <sys/ioctl.h> or migrate to <termios.h>"
term.c: In function 'terminit':
term.c:327: error: 'TIOCGETP' undeclared (first use in this function)
term.c:327: error: (Each undeclared identifier is reported only once
term.c:327: error: for each function it appears in.)
term.c:333: error: 'sbuf' has an incomplete type
term.c:334: error: invalid use of undefined type 'struct sgttyb'
term.c:334: error: 'ECHO' undeclared (first use in this function)
term.c:335: error: invalid use of undefined type 'struct sgttyb'
term.c:335: error: 'CBREAK' undeclared (first use in this function)
term.c:336: error: 'TIOCSETP' undeclared (first use in this function)
term.c:338: error: invalid use of undefined type 'struct sgttyb'
term.c:339: error: invalid use of undefined type 'struct sgttyb'
term.c: In function 'done':
term.c:382: error: 'TIOCSETP' undeclared (first use in this function)
term.c: In function 'onstop':
term.c:403: error: 'TIOCSETP' undeclared (first use in this function)
term.c: In function 'shellescape':
term.c:490: error: 'TIOCSETP' undeclared (first use in this function)
term.c wouldn't compile.  Try inverting USG in local.h
*** Error code 1

Stop in /usr/ports/textproc/ispell/work/ispell-3.3.02.
*** Error code 1

Stop in /usr/ports/textproc/ispell.

>How-To-Repeat:
	# cd ports/textproc/ispell
	# make build
>Fix:

	The patch follows

cvs diff: Diffing .
Index: patch-ispell.c
===================================================================
RCS file: /home/ncvs/ports/textproc/ispell/files/patch-ispell.c,v
retrieving revision 1.3
diff -p -u -r1.3 patch-ispell.c
--- patch-ispell.c	21 Jul 2008 11:54:12 -0000	1.3
+++ patch-ispell.c	21 Jul 2008 20:55:56 -0000
@@ -63,10 +63,10 @@
  	}
  
 -#ifndef __bsdi__
-+#ifndef BSD_4_4
++#ifndef BSD4_4
      setbuf (stdout, outbuf);
 -#endif /* __bsdi__ */
-+#endif /* BSD_4_4 */
++#endif /* BSD4_4 */
      if (lflag)
  	{
  	infile = setupdefmt(NULL, NULL);
Index: patch-term.c
===================================================================
RCS file: /home/ncvs/ports/textproc/ispell/files/patch-term.c,v
retrieving revision 1.2
diff -p -u -r1.2 patch-term.c
--- patch-term.c	21 Jul 2008 11:54:12 -0000	1.2
+++ patch-term.c	21 Jul 2008 20:55:57 -0000
@@ -4,7 +4,7 @@
  #include "ispell.h"
  #include "proto.h"
  #include "msgs.h"
-+#ifdef BSD_4_4
++#ifdef BSD4_4
 +#define USG
 +#endif
  #ifdef USG

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86d4l7aqu4.wl%umq>