[cups.bugs] [HIGH] STR #1419: "gv" does not work when ESP GhostScript is compiled with shared libgs

Till Kamppeter till.kamppeter at gmx.net
Tue Feb 14 08:48:00 PST 2006


[STR New]

If I compile ESP GhostScript with "make so" to have the core part of
GhostScript in libgs and the /usr/bin/gs* linking to libgs, ESP
GhostScript does not work with gv (http://www.gnu.org/software/gv/) any
more. gv reports in an error message window (using gsx):

ESP Ghostscript 815.01: Cannot get ghostview property.
**** Unable to open the initial device, quitting.

If I let gv use the statically linked GhostScript (gs, compiled with a
simple "make") then all works fine. Note that you have to quit and restart
gv after changing and saving the "Interpreter" field in "State" ->
"GhostScript Options".

Note that to make "make so" working at all I had to "$(ACDEFS)" to the
"make" command line in the "so" target of src/unix-dll.mak (see attached
patch) otherwise the compiling would stop with the following error:

i586-mandriva-linux-gnu-gcc  -DHAVE_MKSTEMP -DHAVE_HYPOT -fPIC -O2 -Wall
-Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes
-Wcast-qual -Wwrite-strings -fno-builtin -fno-common -DHAVE_STDINT_H
-DGX_COLOR_INDEX_TYPE="unsigned long long"  -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fomit-frame-pointer -march=i586
-mtune=pentiumpro -fasynchronous-unwind-tables -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -DGS_DEVS_SHARED
-DGS_DEVS_SHARED_DIR=\"/usr/lib/ghostscript/8.15\" -I./obj/../soobj
-I./src  -fPIC -O2 -Wall -Wstrict-prototypes -Wmissing-declarations
-Wmissing-prototypes -Wcast-qual -Wwrite-strings -fno-builtin -fno-common
-DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long long"  -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fomit-frame-pointer -march=i586
-mtune=pentiumpro -fasynchronous-unwind-tables -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -DGS_DEVS_SHARED
-DGS_DEVS_SHARED_DIR=\"/usr/lib/ghostscript/8.15\" -o
../obj/../soobj/gp_unix.o -c ./src/gp_unix.c
In file included from ./src/gp_unix.c:19:
../src/pipe_.h:42: warning: function declaration isn't a prototype
In file included from ./src/gp_unix.c:21:
../src/time_.h:43: error: redefinition of 'struct timeval'
../src/gp_unix.c: In function 'gp_get_realtime':
../src/gp_unix.c:147: warning: implicit declaration of function
'gettimeofday'
make[1]: *** [obj/../soobj/gp_unix.o] Error 1
make[1]: Leaving directory `/home/tkamppeter/rpm/BUILD/espgs'
make: *** [so] Error 2

See also Mandriva bug report

http://qa.mandriva.com/show_bug.cgi?id=21131

Link: http://www.cups.org/str.php?L1419
Version: 8.15-current
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ghostscript-8.15-sharedlib.patch
URL: <https://lists.cups.org/pipermail/cups/attachments/20060214/0fbdfc09/attachment.ksh>


More information about the cups mailing list