On Wed, Mar 07, 2012 at 10:40:40AM -0700, Rick Shelton wrote:
> On Wed, Mar 7, 2012 at 10:19 AM, Dr.-Ing. Edgar Alwers
> <[email protected]> wrote:
> > Hi,
> >
> > I am trying to build Gutenprint under KDE-4.7.4. Neither the book version 
> > 5.2.5 nor 5.2.7 go through the "make" process. A long error shows up, 
> > starting with
> > quote
> > --------------
> > commandtoepson.c: In function 'main':
> > commandtoepson.c:51:3: error: unknown type name 'FILE'
> > commandtoepson.c:68:5: error: implicit declaration of function 'fputs' 
> > [-Werror=implicit-function-declaration]
> > etc....
> > -------------
> > Unquote.
> >
> 
> It looks like that file is missing a call to include stdio.h. That may
> happen because of the house-of-cards nature of include hierarchies.
> The quickest and easiest option might be to manually insert the call
> in that file.
> Open commandtoepson.c in a text editor. At the beginning of the file,
> insert a new line with the following text
> 
>  #include <stdio.h>
> 
> Save and close the file and try again.
> Actually, an easier fix is to avoid building the problem file. If you
> don't need epson drivers, find and use the configure option to disable
> epson drivers.
> 
> hth,
> rick

 Yeah, also applies to commandtocannon.c.  I didn't notice how
unloved gutenprint has become (no recent tags to show people have
built it).  I've been using a patch from Fedora (attached) since
September, containing the upstream fix - I'm sure it can be done with
seds.

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
 Moving to cups-1.5, stdio.h is no longer pulled in.  This is upstream.

diff -up gutenprint-5.2.7/src/cups/commandtocanon.c.build 
gutenprint-5.2.7/src/cups/commandtocanon.c
--- gutenprint-5.2.7/src/cups/commandtocanon.c.build    2011-06-07 
13:32:37.372042304 +0100
+++ gutenprint-5.2.7/src/cups/commandtocanon.c  2011-06-07 13:32:41.270970750 
+0100
@@ -13,6 +13,7 @@
 
 #include <cups/cups.h>
 #include <ctype.h>
+#include <stdio.h>
 #include <stdlib.h>
 
 
diff -up gutenprint-5.2.7/src/cups/commandtoepson.c.build 
gutenprint-5.2.7/src/cups/commandtoepson.c
--- gutenprint-5.2.7/src/cups/commandtoepson.c.build    2007-12-24 
17:19:20.000000000 +0000
+++ gutenprint-5.2.7/src/cups/commandtoepson.c  2011-06-07 13:32:35.656073794 
+0100
@@ -30,6 +30,7 @@
 
 #include <cups/cups.h>
 #include <ctype.h>
+#include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to