Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Mar 2014 12:01:31 GMT
From:      Adrià Garriga <adria.garriga@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/187839: port audio/ncmpcpp error: 'timeval' does not name a type
Message-ID:  <201403221201.s2MC1VOX045241@cgiserv.freebsd.org>
Resent-Message-ID: <201403221210.s2MCA07r088776@freefall.freebsd.org>

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

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403221201.s2MC1VOX045241>