Bug 692751 - FTBFS on Debian testing amd64
Summary: FTBFS on Debian testing amd64
Status: RESOLVED DUPLICATE of bug 692426
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Build Process (show other bugs)
Version: master
Hardware: PC Linux
: P4 major
Assignee: Chris Liddell (chrisl)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-19 08:34 UTC by Joshua Beck
Modified: 2011-12-20 08:18 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
Patch to fix build errors (2.28 KB, patch)
2011-12-19 08:35 UTC, Joshua Beck
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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