Bug 7744

Summary: Compile troubles on AIX
Product: cairo Reporter: Christoph Bauer <Christoph.Bauer>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED DUPLICATE QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: high    
Version: 1.2.0   
Hardware: x86 (IA32)   
OS: AIX   
Whiteboard:
i915 platform: i915 features:

Description Christoph Bauer 2006-08-03 01:03:08 UTC
Hi,

I had to modify cairo-1.2.0 to have a successfully compilation on AIX.

cairo-png.c

Here I get an error because a system include defines jmpbuf to
__jmpbuf which is also used (as name in struct) in a macro in png.h.

The solution here is simple: include png.h after cairoint.h. Then
the field in the struct-definition is renamed as well.

Furthermore I had to add "-lz -lpthread" to link options.

make check fails then with

"../../test/cairo-test.c", line 1638.18: 1506-275 (S) Unexpected text 
old_segfault_handler encountered.

Compiler:  VisualAge C++ Professional / C for AIX Compiler, Version 6
Comment 1 Behdad Esfahbod 2006-08-17 19:05:25 UTC
Fixed the png and signal problems.  Remains -lpthread.
Comment 2 Chris Wilson 2008-10-10 13:58:23 UTC
Duping, so that I have the pthread configuring/linking issues in one bug.

*** This bug has been marked as a duplicate of bug 4475 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.