espgs shared libraries

Jochen Schroeder jschrod at
Mon Sep 15 12:49:12 PDT 2003

Jochen Schroeder wrote:
> Igor Zivkovic wrote:
>> In article 
>> <mailman.6319.1063502557.8081.blfs-support at>, 
>> Jochen Schroeder wrote:
>>> did anybody of you manage to compile the shared library for 
>>> esp-ghostscript? I'm having a really hard time here. all kinds of 
>>> errors. I post some more details when I have investigated a bit more.
>>> Just wondering if somebody has done it and if it compiled without 
>>> problems.
>> If you didn't unpack the OMNI drivers you must add --without-omni switch
>> to the configure script. Before building the shared library apply this 
>> patch:
>> --- espgs-7.07.1rc2/src/gdevpng.c.orig  2003-09-14 19:06:37.000000000 
>> +0000
>> +++ espgs-7.07.1rc2/src/gdevpng.c       2003-09-14 19:06:48.000000000 
>> +0000
>> @@ -34,6 +34,7 @@
>>  /* lpd (L. Peter Deutsch) 1996-4-7: Modified for libpng 0.88. */
>>  /* Original version by Russell Lang 1995-07-04 */
>> +#include <png.h>
>>  #include "gdevprn.h"
>>  #include "gdevmem.h"
>>  #include "gdevpccm.h"
> Sorry I haven't answered to this thread earlier, I was too busy to work 
> more on this problem. I actually managed to get passes the include png.h 
>  issue, but the make so still barks on me with a bunch of messages about 
> undeclared variables. It all starts of with:
> /bin/sh: line 1: gtk-config: command not found
> /bin/sh: line 1: gtk-config: command not found
> src/dxmain.c:36:21: gtk/gtk.h: No such file or directory
> src/dxmain.c:44: syntax error before "data"
> WTF why does the espgs shared library need gtk1? I sure don't have it, i 
> don't need it either, and I don't want to install it. What I don't 
> understand is why the shared library for ghostscript needs a widget set?
> BTW I configure with:
> ./configure --prefix=/usr --libexecdir=/usr/lib/gs  --enable-shared 
> --enable-static --without-omni
OK I tracked down a bug report which is here:

it's resolved and closed though. Using --without-x didn't have any 
effect for me. Do you guys think that it is a bug in espgs that you need 
gtk for building the shared libraries? Then I will submit a bug report 
upstream. I still recommend a note in the book that you will need gtk 
for the shared library, I could not find it being mentioned anywhere in 
the README files.

More information about the blfs-support mailing list