NetBSD Problem Report #51684
From www@NetBSD.org Sat Dec 3 00:45:21 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id E70FA7A284
for <gnats-bugs@gnats.NetBSD.org>; Sat, 3 Dec 2016 00:45:21 +0000 (UTC)
Message-Id: <20161203004520.D2A967A316@mollari.NetBSD.org>
Date: Sat, 3 Dec 2016 00:45:20 +0000 (UTC)
From: mutek@riseup.net
Reply-To: mutek@riseup.net
To: gnats-bugs@NetBSD.org
Subject: [pkgsrc] [misc/fbreader] ZLUnixTime.cpp:28:26: error: 'gettimeofday' was not declared in this scope gettimeofday(&timeB,NULL);
X-Send-Pr-Version: www-1.0
>Number: 51684
>Category: pkg
>Synopsis: [pkgsrc] [misc/fbreader] ZLUnixTime.cpp:28:26: error: 'gettimeofday' was not declared in this scope gettimeofday(&timeB,NULL);
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: maya
>State: closed
>Class: support
>Submitter-Id: net
>Arrival-Date: Sat Dec 03 00:50:00 +0000 2016
>Closed-Date: Sat Dec 03 16:30:16 +0000 2016
>Last-Modified: Sat Dec 03 16:30:16 +0000 2016
>Originator: mutek
>Release: pkgsrc current 26/11/2016
>Organization:
>Environment:
Linux thinkpad 4.7.0-0.bpo.1-amd64 #1 SMP Debian 4.7.8-1~bpo8+1 (2016-10-19) x86_64 GNU/Linux
>Description:
while trying to bmake install in misc/fbreader:
...
make[2]: Entering directory '/home/pkgsrc-current/pkgsrc-current-26_11_2016/pkgsrc/misc/fbreader/work/fbreader-0.99.4/zlibrary/core/src/unix/time'
Compiling ZLUnixTime.lo ...libtool: compile: gcc -MMD -c -pipe -fno-exceptions -Wall -Wno-ctor-dtor-privacy -W -DLIBICONV_PLUG -I/home/pkgsrc-current/pkgsrc-current-26_11_2016/pkgsrc/misc/fbreader/work/.buildlink/qt4/include -I/home/pkgsrc-current/pkgsrc-current-26_11_2016/pkgsrc/misc/fbreader/work/.buildlink/include -I/home/pkgsrc-current/pkgsrc-current-26_11_2016/pkgsrc/misc/fbreader/work/.buildlink/include/freetype2 -I/home/pkgsrc-current/pkgsrc-current-26_11_2016/pkgsrc/misc/fbreader/work/.buildlink/include/libdrm -DINSTALLDIR=\"/home/pkgsrc-current/pkg\" -DBASEDIR=\"/home/pkgsrc-current/pkg/share\" -DLIBDIR=\"/home/pkgsrc-current/pkg/lib\" -DIMAGEDIR=\"/home/pkgsrc-current/pkg/share/pixmaps\" -DAPPIMAGEDIR=\"/home/pkgsrc-current/pkg/share/pixmaps/%APPLICATION_NAME%\" -DVERSION=\"0.99.4\" -fPIC -DZLSHARED -O3 -I/home/pkgsrc-current/pkgsrc-current-26_11_2016/pkgsrc/misc/fbreader/work/fbreader-0.99.4/zlibrary/core/../../zlibrary/core/include -I/home/pkgsrc-current/pkgsrc-current-2
6_11_2016/pkgsrc/misc/fbreader/work/fbreader-0.99.4/zlibrary/core/../../zlibrary/text/include -I/home/pkgsrc-current/pkgsrc-current-26_11_2016/pkgsrc/misc/fbreader/work/.buildlink/include/fribidi ZLUnixTime.cpp -fPIC -DPIC -o .libs/ZLUnixTime.o
ZLUnixTime.cpp: In member function 'virtual ZLTime ZLUnixTimeManager::currentTime() const':
ZLUnixTime.cpp:28:26: error: 'gettimeofday' was not declared in this scope
gettimeofday(&timeB,NULL);
^
/home/pkgsrc-current/pkgsrc-current-26_11_2016/pkgsrc/misc/fbreader/work/fbreader-0.99.4/zlibrary/core/../../makefiles/subdir.mk:14: recipe for target 'ZLUnixTime.lo' failed
make[2]: *** [ZLUnixTime.lo] Error 1
make[2]: Leaving directory '/home/pkgsrc-current/pkgsrc-current-26_11_2016/pkgsrc/misc/fbreader/work/fbreader-0.99.4/zlibrary/core/src/unix/time'
Makefile:41: recipe for target '.objects' failed
make[1]: *** [.objects] Error 1
make[1]: Leaving directory '/home/pkgsrc-current/pkgsrc-current-26_11_2016/pkgsrc/misc/fbreader/work/fbreader-0.99.4/zlibrary/core'
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 1
*** Error code 2
Stop.
bmake[1]: stopped in /home/pkgsrc-current/pkgsrc-current-26_11_2016/pkgsrc/misc/fbreader
*** Error code 1
Stop.
bmake: stopped in /home/pkgsrc-current/pkgsrc-current-26_11_2016/pkgsrc/misc/fbreader
>How-To-Repeat:
see above
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->linux-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sat, 03 Dec 2016 07:47:01 +0000
Responsible-Changed-Why:
linux pkgsrc problem.
Responsible-Changed-From-To: linux-pkg-people->maya
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Sat, 03 Dec 2016 09:07:40 +0000
Responsible-Changed-Why:
mine
State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sat, 03 Dec 2016 09:07:40 +0000
State-Changed-Why:
I've added a patch to patch-ab to include sys/time.h for getimeofday.
does the build complete now?
From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/51684 CVS commit: pkgsrc/misc/fbreader
Date: Sat, 3 Dec 2016 09:06:37 +0000
Module Name: pkgsrc
Committed By: maya
Date: Sat Dec 3 09:06:37 UTC 2016
Modified Files:
pkgsrc/misc/fbreader: distinfo
pkgsrc/misc/fbreader/patches: patch-ab
Log Message:
fbreader: include <sys/time.h> for gettimeofday. this is needed by
linux.
fix PR pkg/51684
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/misc/fbreader/distinfo
cvs rdiff -u -r1.3 -r1.4 pkgsrc/misc/fbreader/patches/patch-ab
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "mutek@riseup.net" <mutek@riseup.net>
To: gnats-bugs@NetBSD.org, maya@NetBSD.org, linux-pkg-people@netbsd.org,
pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Cc:
Subject: Re: pkg/51684 ([pkgsrc] [misc/fbreader] ZLUnixTime.cpp:28:26: error:
'gettimeofday' was not declared in this scope gettimeofday(&timeB,NULL);)
Date: Sat, 3 Dec 2016 17:18:15 +0100
On 03/12/2016 10:07, maya@NetBSD.org wrote:
> Synopsis: [pkgsrc] [misc/fbreader] ZLUnixTime.cpp:28:26: error: 'gettimeofday' was not declared in this scope gettimeofday(&timeB,NULL);
>
> Responsible-Changed-From-To: linux-pkg-people->maya
> Responsible-Changed-By: maya@NetBSD.org
> Responsible-Changed-When: Sat, 03 Dec 2016 09:07:40 +0000
> Responsible-Changed-Why:
> mine
>
>
> State-Changed-From-To: open->feedback
> State-Changed-By: maya@NetBSD.org
> State-Changed-When: Sat, 03 Dec 2016 09:07:40 +0000
> State-Changed-Why:
> I've added a patch to patch-ab to include sys/time.h for getimeofday.
> does the build complete now?
>
yes fixed
thank you very much
State-Changed-From-To: feedback->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sat, 03 Dec 2016 16:30:16 +0000
State-Changed-Why:
feedback ok, thanks for all the reports
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.