Bug 5306

Summary: pdf2png won't build
Product: cairo Reporter: Dom Lachowicz <domlachowicz>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: high Keywords: patch
Version: 1.1.1   
Hardware: x86 (IA32)   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Dom Lachowicz 2005-12-10 05:21:30 UTC
because stdio.h isn't included, it thinks that fprintf is an extern.

pdf2png.c: In function `main':
pdf2png.c:47: warning: implicit declaration of function `fprintf'
pdf2png.c:47: warning: nested extern declaration of `fprintf'
pdf2png.c:47: error: `stderr' undeclared (first use in this function)
pdf2png.c:47: error: (Each undeclared identifier is reported only once
pdf2png.c:47: error: for each function it appears in.)
pdf2png.c:64: warning: nested extern declaration of `fprintf'
pdf2png.c:68: warning: nested extern declaration of `fprintf'
pdf2png.c:72: warning: nested extern declaration of `fprintf'
pdf2png.c:85: warning: nested extern declaration of `fprintf'

Index: test/pdf2png.c
===================================================================
RCS file: /cvs/cairo/cairo/test/pdf2png.c,v
retrieving revision 1.1
diff -u -p -u -r1.1 pdf2png.c
--- test/pdf2png.c      8 Dec 2005 00:06:12 -0000       1.1
+++ test/pdf2png.c      9 Dec 2005 18:22:37 -0000
@@ -24,6 +24,7 @@
  */

 #include <stdlib.h>
+#include <stdio.h>
 #include <poppler.h>

 #define FAIL(msg)                                                      \
Comment 1 Behdad Esfahbod 2006-06-14 00:30:24 UTC
Carl, trivial change.
Comment 2 Carl Worth 2006-06-14 04:37:45 UTC
Thanks,

Pushing this fix out now.

-Carl

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.