[patch] fix libgnomeprint build when cups 1.5.0 is installed
John Hein
jhein at symmetricom.com
Thu Oct 13 14:32:53 UTC 2011
With the new cups (1.5.0), libgnomeprint fails to build...
gnome-print-cups-transport.c:59: error: expected specifier-qualifier-list before 'FILE'
The path through the cups include files that
gnome-print-cups-transport.c includes no longer gets stdio.h
See also
https://bugzilla.gnome.org/show_bug.cgi?id=653388
and the upstream commit to fix it...
=========================
commit 9b82b7e75b83395e7c5692085e1934202cf7f65f
Author: Jeremy Huddleston <jeremyhu at freedesktop.org>
Date: Wed Oct 12 17:08:59 2011 +0200
Add missing include
https://bugzilla.gnome.org/show_bug.cgi?id=653388
diff --git a/libgnomeprint/modules/cups/gnome-print-cups-transport.c b/libgnomeprint/modules/cups/gnome-print-cups-transport.c
index aeb7111..85de91b 100644
--- a/libgnomeprint/modules/cups/gnome-print-cups-transport.c
+++ b/libgnomeprint/modules/cups/gnome-print-cups-transport.c
@@ -34,6 +34,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <stdio.h>
#include <unistd.h>
#include <locale.h>
=========================
-------------- next part --------------
Fix compile error when cups 1.5.0 is installed ...
gnome-print-cups-transport.c:59: error: expected specifier-qualifier-list before 'FILE'
See also...
https://bugzilla.gnome.org/show_bug.cgi?id=653388
upstream commit...
=========================
commit 9b82b7e75b83395e7c5692085e1934202cf7f65f
Author: Jeremy Huddleston <jeremyhu at freedesktop.org>
Date: Wed Oct 12 17:08:59 2011 +0200
Add missing include
https://bugzilla.gnome.org/show_bug.cgi?id=653388
=========================
--- libgnomeprint-2.18.8/libgnomeprint/modules/cups/gnome-print-cups-transport.c.orig 2010-02-09 05:32:51.000000000 -0700
+++ libgnomeprint-2.18.8/libgnomeprint/modules/cups/gnome-print-cups-transport.c 2011-10-13 08:27:55.000000000 -0600
@@ -34,6 +34,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <stdio.h>
#include <unistd.h>
#include <locale.h>
More information about the freebsd-gnome
mailing list