Bug 692751

Summary: FTBFS on Debian testing amd64
Product: Ghostscript Reporter: Joshua Beck <jxb091000>
Component: Build ProcessAssignee: Chris Liddell (chrisl) <chris.liddell>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: P4    
Version: master   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: Patch to fix build errors

Description Joshua Beck 2011-12-19 08:34:09 UTC
It fails with this error:

In file included from ./psi/zdevcal.c:16:0:
./base/time_.h:49:8: error: redefinition of ‘struct timeval’
/usr/include/x86_64-linux-gnu/bits/time.h:75:8: note: originally defined here

The included patch fixes the error and allows it to build. It's based on Debian's ghostscript patch #2003.
Comment 1 Joshua Beck 2011-12-19 08:35:20 UTC
Created attachment 8229 [details]
Patch to fix build errors
Comment 2 Chris Liddell (chrisl) 2011-12-19 08:47:08 UTC
I fixed this problem some time ago (without resorting to distribution specific variables in a cross platform makefile):

http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=714766fb



I would be obliged if you could test my solution in the Debian build environment, and reopen this bug if you find a problem with it.

Chris

*** This bug has been marked as a duplicate of bug 692426 ***
Comment 3 Joshua Beck 2011-12-20 05:00:58 UTC
Your fix works!

If your most up-to-date repository is in git, you should update your website. The first result that comes up for "ghostscript repository" is this: http://svn.ghostscript.com/ . The first link it gives for ghostscript links to the svn repository.
Comment 4 Chris Liddell (chrisl) 2011-12-20 08:18:35 UTC
Apologies for the website confusion. The link on the main page ( www.ghostscript.com ) have been updated, I hadn't realised the svn page was still accessible. I'll look into it.....


Glad the fix is working okay.

Chris