error: implicit declaration of function 'memmem' is invalid in C99
cairo 1.17.6 does not build (with autotools) on Mac OS X 10.6. The error is:
pdf-tagged-text.c:466:9: error: implicit declaration of function 'memmem' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (memmem(hay, size, needle, strlen(needle)))
^
pdf-tagged-text.c:466:9: note: did you mean 'memset'?
/usr/include/string.h:85:7: note: 'memset' declared here
void *memset(void *, int, size_t);
^
1 error generated.
Here is a log: https://build.macports.org/builders/ports-10.6_x86_64-builder/builds/142929/steps/install-port/logs/stdio
See also #455.
The problem does not occur on Mac OS X 10.7 or later.
cairo 1.17.4 did not have this bug. I haven't tested cairo 1.17.8.