Subject: pkg/18438: gopher won't build
To: None <>
From: None <>
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
>Originator:     David Griffith
>Release:        1.6
NetBSD zaphod 1.6 NetBSD 1.6 (GENERIC) #0: Sun Sep  8 19:43:40 UTC 2002 i386

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
cd /usr/pkgsrc/net/gopher ; make

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

.include "../../devel/ncurses/"

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).