NetBSD Problem Report #46091
From www@NetBSD.org Fri Feb 24 18:46:55 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id E44DB63DE43
for <gnats-bugs@gnats.NetBSD.org>; Fri, 24 Feb 2012 18:46:54 +0000 (UTC)
Message-Id: <20120224184654.01D8863BCEF@www.NetBSD.org>
Date: Fri, 24 Feb 2012 18:46:54 +0000 (UTC)
From: slitvinov@gmail.com
Reply-To: slitvinov@gmail.com
To: gnats-bugs@NetBSD.org
Subject: [Linux] print/ghostscript fails to build because of location of time.h
X-Send-Pr-Version: www-1.0
>Number: 46091
>Category: pkg
>Synopsis: [Linux] print/ghostscript fails to build because of location of time.h
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Feb 24 18:50:00 +0000 2012
>Closed-Date: Thu Sep 05 10:08:22 +0000 2019
>Last-Modified: Thu Sep 05 10:08:22 +0000 2019
>Originator: Litvinov Sergey
>Release: Ubuntu Linux
>Organization:
>Environment:
Linux vital303-desktop 3.0.0-15-generic #26-Ubuntu SMP Fri Jan 20 15:59:53 UTC 2012 i686 athlon i386 GNU/Linux
>Description:
print/ghostscript fails to build with the following error:
gcc -DHAVE_MKSTEMP -DHAVE_HYPOT -DHAVE_FILE64 -DHAVE_MKSTEMP64 -DHAVE_FONTCONFIG -O2 -Ijpeg -I/home/vital303/netbsd/include -I/usr/include -I/home/vital303/netbsd/include/freetype2 -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long long" -O2 -Wno-error -DA4 -fPIC -I/home/vital303/netbsd/include -I/usr/include -I/home/vital303/netbsd/include/freetype2 -DUSE_LIBPAPER -I./obj/../soobj -I./base -O2 -Wno-error -DA4 -fPIC -I/home/vital303/netbsd/include -I/usr/include -I/home/vital303/netbsd/include/freetype2 -I/home/vital303/netbsd/include -o ./obj/../soobj/gp_unix.o -c ./base/gp_unix.c
In file included from ./base/gp_unix.c:17:0:
./base/pipe_.h:39:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
In file included from ./base/gp_unix.c:19:0:
./base/time_.h:49:8: error: redefinition of 'struct timeval'
/usr/include/i386-linux-gnu/bits/time.h:75:8: note: originally defined here
./base/gp_unix.c: In function 'gp_get_realtime':
./base/gp_unix.c:148:2: warning: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration]
make[1]: *** [obj/../soobj/gp_unix.o] Error 1
make[1]: Leaving directory `/media/sdb2/src/pkgsrc/print/ghostscript/work/ghostscript-8.71'
It seems like this problem
http://bugs.ghostscript.com/show_bug.cgi?id=692443
Fixed here
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=714766;hp=c7404eceab4d308c67130f43e9a4d4c0b58cd73c
>How-To-Repeat:
bmake install
in
print/ghostscript
on Linux
>Fix:
To compile I add
CFLAGS+= -DHAVE_SYS_TIME_H=1
to
print/ghostscript/Makefile
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Thu, 05 Sep 2019 10:08:22 +0000
State-Changed-Why:
We got the fix through upstream and updating the version. re-tested with recent debian. thanks for the report!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.