[cairo] 'implicit declaration of function' error during compilation

Victor Engmark victor.engmark at gmail.com
Tue Feb 8 03:09:04 PST 2011


Hi all,

I have tried for some time now to compile Cairo, but I always run into
the same problem:

  CC     cairo-bentley-ottmann.lo
In file included from cairo-bentley-ottmann.c:42:
cairo-freelist-private.h: In function '_cairo_freepool_alloc_from_pool':
cairo-freelist-private.h:104: error: implicit declaration of function
'VALGRIND_MAKE_MEM_UNDEFINED'
cairo-freelist-private.h:104: warning: nested extern declaration of
'VALGRIND_MAKE_MEM_UNDEFINED'
cairo-freelist-private.h: In function '_cairo_freepool_alloc':
cairo-freelist-private.h:117: error: implicit declaration of function
'VALGRIND_MAKE_MEM_DEFINED'
cairo-freelist-private.h:117: warning: nested extern declaration of
'VALGRIND_MAKE_MEM_DEFINED'
cairo-freelist-private.h: In function '_cairo_freepool_free':
cairo-freelist-private.h:136: error: implicit declaration of function
'VALGRIND_MAKE_MEM_NOACCESS'
cairo-freelist-private.h:136: warning: nested extern declaration of
'VALGRIND_MAKE_MEM_NOACCESS'
make[5]: *** [cairo-bentley-ottmann.lo] Error 1

This seems to be independent of configuration options - It happens
both with no options and with the full Monty:
PKG_CONFIG_PATH=$(PKGTOP)$(MY_OPT_DIR)/lib/pkgconfig ./configure \
                --prefix=$(MY_OPT_DIR) \
                --sysconfdir=$(ETC_DIR) \
                --disable-shared \
                --enable-static \
                --enable-xlib=no \
                --enable-xlib-xrender=no \
                --enable-win32=no

I'm rather new to the intricacies of make, so this is probably my own
fault. Any tips?

$ uname -a
Linux machine 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21 17:40:44 UTC
2011 x86_64 GNU/Linux

Compiling on a Mac Mini 4,1.

Cheers,
-- 
Victor Engmark


More information about the cairo mailing list