Subject: pkg/18438: gopher won't build
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dgriffi@cs.csubak.edu>
List: netbsd-bugs
Date: 09/27/2002 05:18:21
>Number:         18438
>Category:       pkg
>Synopsis:       gopher won't build
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 27 05:19:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     David Griffith
>Release:        1.6
>Organization:
>Environment:
NetBSD zaphod 1.6 NetBSD 1.6 (GENERIC) #0: Sun Sep  8 19:43:40 UTC 2002     autobuild@tgm.daemon.org:/autobuild/i386/OBJ/autobuild/src/sys/arch/i386/compile/GENERIC i386

>Description:
Gopher build crashes like this:

gcc -g -O2 -Wall  -I.. -I.. -I../object  -DNOBANNER -DCTRLCPROMPTS -DCONTROLX   -DGOPHERLIB=\"//usr/local/etc/gopher\" -DGOPHERHELP=\"//usr/local/etc/gopher/gopher.hlp\" -DGLOBALRC=\"//usr/local/etc/gopher/gopher.rc\" -DREMOTERC=\"//usr/local/etc/gopher/gopherremote.rc\" -c ourutils.c
ourutils.c:354: term.h: No such file or directory
gmake[1]: *** [ourutils.o] Error 1
gmake[1]: Leaving directory `/usr/home/dave/src/gopher-3.0.2/gopher'
gmake: *** [gopher/gopher] Error 2
>How-To-Repeat:
cd /usr/pkgsrc/net/gopher ; make
>Fix:

(Quick and dirty)
Put the following line at the end of /usr/pkgsrc/net/gopher/Makefile just before the include of "../../mk/bsd.pkg.mk":

.include "../../devel/ncurses/buildlink.mk"

Or go in and remove the two instances of "#include <term.h>" and gopher works just fine like that too.  Since NetBSD lacks <term.h> unless ncurses has been installed, I'm a bit miffed as to why simply commenting out the #includes worked (and how gopher managed to compile from pkgsrc in the past).
>Release-Note:
>Audit-Trail:
>Unformatted: