pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/46091: [Linux] print/ghostscript fails to build because of location of time.h



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



Home | Main Index | Thread Index | Old Index