Bug 13023

Summary: Compilation problem in AIX 5.2
Product: cairo Reporter: Raj <rajnaran_amb>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED WORKSFORME QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: blocker    
Priority: highest    
Version: 1.4.10   
Hardware: PowerPC   
OS: AIX   
Whiteboard:
i915 platform: i915 features:

Description Raj 2007-10-31 05:58:54 UTC
When compiling 1.4.10 in AIX (gcc 3.3), I am getting below error

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../pixman/src -I/usr/local/include/freetype2 -I/usr/local/include -I/opt/freeware/include -I/opt/freeware/include/libpng12 -DXTHREADS -I/opt/freeware/include -I/gestconf/project/GNOME_ACL/GNOME/build/sh_build_GNOME/export/power_510_32/usr/include/X11/extensions/ -Wall -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wno-unused-parameter -fno-strict-aliasing -I/opt/freeware/include -g -O2 -MT cairo-png.lo -MD -MP -MF .deps/cairo-png.Tpo -c cairo-png.c  -DPIC -o .libs/cairo-png.o
cairo-png.c: In function `png_simple_error_callback':
cairo-png.c:95: error: structure has no member named `__jmpbuf'
make[2]: *** [cairo-png.lo] Error 1
make[2]: Leaving directory `/vignette_temp/Wireshark_src/Dependent/temp/cairo-1.4.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/vignette_temp/Wireshark_src/Dependent/temp/cairo-1.4.8'
make: *** [all] Error 2
Comment 1 Raj 2007-11-01 02:11:14 UTC
The fix is to modify any ->jmpbufreferences within cairo-png.c to be ->PNG_jmpbuf

(In reply to comment #0)
> When compiling 1.4.10 in AIX (gcc 3.3), I am getting below error
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../pixman/src
> -I/usr/local/include/freetype2 -I/usr/local/include -I/opt/freeware/include
> -I/opt/freeware/include/libpng12 -DXTHREADS -I/opt/freeware/include
> -I/gestconf/project/GNOME_ACL/GNOME/build/sh_build_GNOME/export/power_510_32/usr/include/X11/extensions/
> -Wall -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith
> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
> -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute
> -Wno-unused-parameter -fno-strict-aliasing -I/opt/freeware/include -g -O2 -MT
> cairo-png.lo -MD -MP -MF .deps/cairo-png.Tpo -c cairo-png.c  -DPIC -o
> .libs/cairo-png.o
> cairo-png.c: In function `png_simple_error_callback':
> cairo-png.c:95: error: structure has no member named `__jmpbuf'
> make[2]: *** [cairo-png.lo] Error 1
> make[2]: Leaving directory
> `/vignette_temp/Wireshark_src/Dependent/temp/cairo-1.4.8/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/vignette_temp/Wireshark_src/Dependent/temp/cairo-1.4.8'
> make: *** [all] Error 2

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.