Bug 29598

Summary: build failure in 1.9.14
Product: cairo Reporter: David Ronis <David.Ronis>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: critical    
Priority: medium    
Version: 1.9.14   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description David Ronis 2010-08-16 19:26:34 UTC
I'm trying to upgrade from version 1.9.12 to 1.9.14 in a garnome build environment.   The build dies almost immediately with:

make[1]: Entering directory `/home/ronis/Project/notar/GNOME/garnome/freedesktop/cairo/work/main.d/cairo-1.9.14'
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/ronis/Project/notar/GNOME/garnome/freedesktop/cairo/work/main.d/cairo-1.9.14/build/missing --run aclocal-1.11 -I build
build/configure.ac.system:19: error: AC_CHECK_SIZEOF: requires literal arguments
../../lib/autoconf/types.m4:765: AC_CHECK_SIZEOF is expanded from...
build/configure.ac.system:19: the top-level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal-1.11: autom4te failed with exit status: 1
make[1]: *** [aclocal.m4] Error 1

Deleting the AC_CHECK_SIZEOF(void *) gets rid of the error.
Comment 1 David Ronis 2010-08-16 19:28:27 UTC
Actually, it's actually worse than I initially reported.  With the void * sizeof check removed, I now die at:

make[4]: Entering directory `/home/ronis/Project/notar/GNOME/garnome/freedesktop/cairo/work/main.d/cairo-1.9.14/src'
  CC     cairo-analysis-surface.lo
In file included from cairo-reference-count-private.h:40:0,
                 from cairo-types-private.h:45,
                 from cairoint.h:242,
                 from cairo-analysis-surface.c:37:
cairo-atomic-private.h:93:2: error: #error No matching integer pointer type
In file included from cairo-reference-count-private.h:40:0,
                 from cairo-types-private.h:45,
                 from cairoint.h:242,
                 from cairo-analysis-surface.c:37:
cairo-atomic-private.h:206:56: error: expected ')' before 'x'
cairo-atomic-private.h: In function '_cairo_atomic_ptr_cmpxchg_return_old_fallback':
cairo-atomic-private.h:230:31: error: 'cairo_atomic_intptr_t' undeclared (first use in this function)
cairo-atomic-private.h:230:31: note: each undeclared identifier is reported only once for each function it appears in
cairo-atomic-private.h:230:31: error: expected expression before ')' token
cairo-atomic-private.h:230:31: error: incompatible type for argument 1 of '__sync_bool_compare_and_swap'
cairo-analysis-surface.c: In function '_cairo_analysis_surface_merge_status':
cairo-analysis-surface.c:69:5: warning: comparison between 'cairo_int_status_t' and 'enum _cairo_status'
cairo-analysis-surface.c:69:5: warning: comparison between 'cairo_int_status_t' and 'enum _cairo_status'
cairo-analysis-surface.c:70:5: warning: comparison between 'cairo_int_status_t' and 'enum _cairo_status'
cairo-analysis-surface.c:70:5: warning: comparison between 'cairo_int_status_t' and 'enum _cairo_status'
cairo-analysis-surface.c:90:5: warning: comparison between 'cairo_int_status_t' and 'enum _cairo_status'
cairo-analysis-surface.c:90:5: warning: comparison between 'cairo_int_status_t' and 'enum _cairo_status'
cairo-analysis-surface.c: In function '_analyze_recording_surface_pattern':
cairo-analysis-surface.c:121:31: warning: comparison between 'cairo_surface_type_t' and 'enum _cairo_internal_surface_type'
cairo-analysis-surface.c: In function '_add_operation':
cairo-analysis-surface.c:146:21: warning: comparison between 'cairo_int_status_t' and 'enum _cairo_status'
cairo-analysis-surface.c:174:22: warning: comparison between 'cairo_int_status_t' and 'enum _cairo_status'
cairo-analysis-surface.c:222:24: warning: comparison between 'cairo_int_status_t' and 'enum _cairo_status'
cairo-analysis-surface.c:243:16: warning: comparison between 'cairo_int_status_t' and 'enum _cairo_status'
cairo-analysis-surface.c: In function '_cairo_analysis_surface_paint':
cairo-analysis-surface.c:326:24: warning: comparison between 'cairo_status_t' and 'enum _cairo_int_status'
cairo-analysis-surface.c: In function '_cairo_analysis_surface_mask':
cairo-analysis-surface.c:354:6: warning: comparison between 'cairo_int_status_t' and 'enum _cairo_status'
cairo-analysis-surface.c:354:6: warning: comparison between 'cairo_int_status_t' and 'enum _cairo_status'
cairo-analysis-surface.c:367:7: warning: comparison between 'cairo_int_status_t' and 'enum _cairo_status'
cairo-analysis-surface.c:367:7: warning: comparison between 'cairo_int_status_t' and 'enum _cairo_status'
cairo-analysis-surface.c:377:7: warning: comparison between 'cairo_int_status_t' and 'enum _cairo_status'
cairo-analysis-surface.c:377:7: warning: comparison between 'cairo_int_status_t' and 'enum _cairo_status'
cairo-analysis-surface.c: In function '_cairo_analysis_surface_stroke':
cairo-analysis-surface.c:432:24: warning: comparison between 'cairo_status_t' and 'enum _cairo_int_status'
cairo-analysis-surface.c: In function '_cairo_analysis_surface_fill':
cairo-analysis-surface.c:496:24: warning: comparison between 'cairo_status_t' and 'enum _cairo_int_status'
cairo-analysis-surface.c: In function '_cairo_analysis_surface_show_glyphs':
cairo-analysis-surface.c:568:24: warning: comparison between 'cairo_status_t' and 'enum _cairo_int_status'
cairo-analysis-surface.c: In function '_cairo_analysis_surface_show_text_glyphs':
cairo-analysis-surface.c:632:24: warning: comparison between 'cairo_status_t' and 'enum _cairo_int_status'
cairo-analysis-surface.c:652:24: warning: comparison between 'cairo_status_t' and 'enum _cairo_int_status'
make[4]: *** [cairo-analysis-surface.lo] Error 1
make[4]: Leaving directory `/home/ronis/Project/notar/GNOME/garnome/freedesktop/cairo/work/main.d/cairo-1.9.14/src'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/ronis/Project/notar/GNOME/garnome/freedesktop/cairo/work/main.d/cairo-1.9.14/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ronis/Project/notar/GNOME/garnome/freedesktop/cairo/work/main.d/cairo-1.9.14'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/ronis/Project/notar/GNOME/garnome/freedesktop/cairo/work/main.d/cairo-1.9.14'
make: *** [build-work/main.d/cairo-1.9.14/Makefile] Error 2
Comment 2 David Ronis 2010-08-17 10:09:38 UTC
Turns out the problem is a too old autoconf.   Upgrading to the latest release (2.67) fixes the problem.

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.