ports/187839: port audio/ncmpcpp error: 'timeval' does not name a type
Adrià Garriga
adria.garriga at gmail.com
Sat Mar 22 12:10:01 UTC 2014
>Number: 187839
>Category: ports
>Synopsis: port audio/ncmpcpp error: 'timeval' does not name a type
>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: Sat Mar 22 12:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Adrià Garriga
>Release: 10.0-RELEASE
>Organization:
>Environment:
FreeBSD stone.info.gf 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root at snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
The port audio/ncmpcpp does not build, and it's not available as a binary over pkg either (it used to be).
The error message is as follows:
visualizer.h:76:3: error: 'timeval' does not name a type
--- ncmpcpp.o ---
mv -f .deps/ncmpcpp.Tpo .deps/ncmpcpp.Po
--- visualizer.o ---
visualizer.cpp: In member function 'virtual void Visualizer::SwitchTo()':
visualizer.cpp:86:2: error: 'itsTimer' was not declared in this scope
visualizer.cpp: In member function 'virtual void Visualizer::Update()':
visualizer.cpp:119:50: error: 'itsTimer' was not declared in this scope
*** [visualizer.o] Error code 1
>How-To-Repeat:
cd /usr/ports/audio/ncmpcpp
make
>Fix:
add
#include <sys/_timeval.h>
to src/visualizer.h in the ncmpcpp source
Patch attached with submission follows:
*** vosualizer.h 2014-03-22 12:58:49.681146655 +0100
--- visualizer.h 2014-03-22 12:59:02.457146793 +0100
***************
*** 34,39 ****
--- 34,41 ----
# include <fftw3.h>
#endif
+ #include <sys/_timeval.h>
+
class Visualizer : public Screen<Window>
{
public:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list