[gs-devel] problems building libgs.so
Russell Lang
gsview at ghostgum.com.au
Mon Apr 7 14:56:15 PDT 2003
Andreas,
From: Andreas Volz <andreas at brachttal.net>
To: gs-devel at ghostscript.com
Subject: [gs-devel] problems building libgs.so
Date sent: Mon, 7 Apr 2003 11:19:21 +0000
> Hi,
>
> I tried to build libgs.so on a RedHat Linux System, because I'm not able
> to find a precompiled Version somewhere.
>
> What I made:
> - ln -s src/unix-gcc.mak makefile
> - make so
>
> The result:
>
> [...]
> In file included from src/std.h:25,
> from src/memory_.h:26,
> from src/gsfcid.c:21:
> src/stdpre.h:181:4: warning: suggest hiding #pragma from traditional C
> with an indented #./obj/../soobj/echogs -e .dev -w- -l-obj
> ./obj/../soobj/cidlib ./obj/../soobj/gsfcid.o./obj/../soobj/echogs -e
> .dev -w- -l-obj ./obj/../soobj/cmaplib
> ./obj/../soobj/gsfcmap.o./obj/../soobj/echogs -e .dev -a-
> ./obj/../soobj/cmaplib -include
> ./obj/../soobj/cidlib./obj/../soobj/echogs -e .dev -w- -l-obj
> ./obj/../soobj/cmapread ./obj/../soobj/zcid.o
> ./obj/../soobj/zfcmap.o./obj/../soobj/echogs -e .dev -a-
> ./obj/../soobj/cmapread -include ./obj/../soobj/cmaplib
> ./obj/../soobj/psl2int./obj/../soobj/echogs -e .dev -a-
> ./obj/../soobj/cmapread -oper zfcmap./obj/../soobj/echogs -e .dev -a-
> ./obj/../soobj/cmapread -ps gs_cmap gcc `cat ./obj/../soobj/cc.tr`
> -DHAVE_MKSTEMP -O2 -fPIC -Wall -Wstrict-prototypes
> -Wmissing-declarations -Wmissing-prototypes -Wtraditional -fno-builtin
> -fno-common -I./obj/../soobj -I./src -o./obj/../soobj/gschar0.o -c
> ./src/gschar0.c In file included from src/std.h:25,
> from src/memory_.h:26,
> from src/gschar0.c:21:
> [...]
>
> [...]
> make LDFLAGS=' -fPIC -shared -Wl,-soname,libgs.so.7'
> GS_XE=./bin/../sobin/libgs.so.7.06 STDIO_IMPLEMENTATION=c
> DISPLAY_DEV=./obj/../soobj/display.dev BINDIR=./bin/../sobin
> GLGENDIR=./obj/../soobj GLOBJDIR=./obj/../soobj PSGENDIR=./obj/../soobj
> PSOBJDIR=./obj/../soobj CFLAGS='-O2 -fPIC -Wall -Wstrict-prototypes
> -Wmissing-declarations -Wmissing-prototypes -Wtraditional -fno-builtin
> -fno-common ' prefix=/usr/local ./bin/../sobin/gsc ./bin/../sobin/gsx
> make[1]: Entering directory `/usr/local/src/ghostscript-7.06' make[1]:
> *** No rule to make target `jpeg/jpeglib.h', needed by
> `obj/../soobj/jpeglib0.h'. Stop. make[1]: Leaving directory
> `/usr/local/src/ghostscript-7.06' make: *** [so] Error 2
>
>
> Is this a bug or a problem specific to my computer?
You need to get the JPEG, ZLIB and LIBPNG sourcecode and put
them in subdirectories as described in Make.htm.
> I tried also to find libgs.so in Debian with no success. It seems that
> not much applications need libgs at the moment.
I think GSview is the only one. The current GSview is AFPL not
GPL. There are other problems with using ghostscript as a
shared library: someone described it well recently "ghostscript
is a .o masquerading as a .so".
> And why is there no "./configure --with-libgs" Option? It would be very
> comfortable. ;-)
Ask Ralph Giles.
Russell Lang gsview at ghostgum.com.au
Ghostgum Software Pty Ltd http://www.ghostgum.com.au/
More information about the gs-devel
mailing list