Date: Sun, 9 Mar 2014 20:39:49 GMT From: Roger Leigh <rleigh@codelibre.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/187401: astro/gpsd fails to include <ncurses/ncurses.h> Message-ID: <201403092039.s29Kdntx042281@cgiserv.freebsd.org> Resent-Message-ID: <201403092040.s29Ke02W048231@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 187401 >Category: ports >Synopsis: astro/gpsd fails to include <ncurses/ncurses.h> >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 09 20:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Roger Leigh >Release: 10.0-RELEASE >Organization: N/A >Environment: FreeBSD sorilea.codelibre.net 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >Description: /usr/local/include/ncurses is on the include path, but *not* /usr/local/include, which may explain the failure. ------------------------------------------------------- cc -o cgps.o -c -D_GNU_SOURCE -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 -I/usr/local/include/ncurses cgps.c 5 warnings generated. cc -o gpxlogger -Wl,-rpath=//usr/local/lib gpxlogger.o -L. -L/usr/local/lib -lrt -lgps -lm In file included from cgps.c:93: In file included from /usr/include/curses.h:141: /usr/local/include/ncurses/unctrl.h:54:10: fatal error: 'ncurses/ncurses.h' file not found #include <ncurses/ncurses.h> ^ cc -o gpspipe -Wl,-rpath=//usr/local/lib gpspipe.o -L. -L/usr/local/lib -lrt -lgps -lm 1 error generated. cc -o gpsdctl -Wl,-rpath=//usr/local/lib gpsdctl.o -L. -L/usr/local/lib -lrt -lgps -lm scons: *** [cgps.o] Error 1 scons: building terminated because of errors. *** Error code 2 ------------------------------------------------------- >How-To-Repeat: I think this should be as simple as running e.g. "portmaster -D astro/gpsd" with ncurses already installed. In my case, ncurses was pulled in by python27 and python33 so was already present. gpsd was pulled in as an x11/kde4 dependency when running "portmaster -D x11/kde4" Regards, Roger >Fix: Possibly this is just the include path not including /usr/local/include. Is having /usr/local/include/ncurses on the include path correct? >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403092039.s29Kdntx042281>