NetBSD Problem Report #46091

From  Fri Feb 24 18:46:55 2012
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id E44DB63DE43
	for <>; Fri, 24 Feb 2012 18:46:54 +0000 (UTC)
Message-Id: <>
Date: Fri, 24 Feb 2012 18:46:54 +0000 (UTC)
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:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 24 18:50:00 +0000 2012
>Originator:     Litvinov Sergey
>Release:        Ubuntu Linux
Linux vital303-desktop 3.0.0-15-generic #26-Ubuntu SMP Fri Jan 20 15:59:53 UTC 2012 i686 athlon i386 GNU/Linux
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
Fixed here;a=commitdiff;h=714766;hp=c7404eceab4d308c67130f43e9a4d4c0b58cd73c

bmake install
on Linux
To compile I add 

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.