Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Compile problems with gnu-ghostscript-8.60.0

72 views
Skip to first unread message

Mike Dowling

unread,
Sep 19, 2007, 6:10:25 AM9/19/07
to gnu-ghost...@gnu.org
Hello shostscript developers,

I experienced a number of difficulties when trying to compile
gnu-ghostscript-8.60.0. Most of the problems I could solve, but in the
end, I had to give up. Here is a list of my problems with solutions
where p[ossible.

PROBLEM 1:

In file included from ./src/stdio_.h:30,
from ./src/gx.h:26,
from ./contrib/lips4/gdevlips.c:24:
./src/standard.h:29:18: error: arch.h: No such file or directory
make: *** [obj/gdevlips.o] Error 1

SOLUTION:
Doesn't matter as content depends on ARCH_H being set, and it never is.

Strangely, make can be restarted again with no changes made, and the
compilation continues!


PROBLEM 2:

gcc -Wall -Wstrict-prototypes -Wmissing-declarations
-Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing
-fno-builtin -fno-common -DHAVE_STDINT_H
-DGX_COLOR_INDEX_TYPE="unsigned long long" -g -O -I./src
-I./obj/ -Isrc ./src/mkromfs.c -o ./obj/mkromfs ./obj/gscdefs.o
./obj/gsmisc.o ./obj/gpmisc.o ./obj/gslibctx.o ./obj/gp_getnv.o
./obj/gp_unix.o ./obj/gp_unifs.o ./obj/gp_unifn.o
./obj/gp_stdia.o ./obj/gsutil.o -lm -ldl -lm -lstdc++
-lfontconfig
./src/mkromfs.c: In function 'inode_write':
./src/mkromfs.c:287: warning: pointer targets in passing argument 2 of
'put_bytes_padded' differ in signedness
/tmp/ccQm0lqy.o: In function `process_path':
/usr/src/gnu-ghostscript-8.60.0/./src/mkromfs.c:391: undefined reference
to `compress'
collect2: ld returned 1 exit status


SOLUTION:

Here simply ad '-tz' to the gcc command above.


PROBLEM 3:

if [ x != x ]; then LD_RUN_PATH=; export LD_RUN_PATH; fi; \
XCFLAGS= XINCLUDE= XLDFLAGS= XLIBDIRS= XLIBS= \
FEATURE_DEVS= DEVICE_DEVS= DEVICE_DEVS1= DEVICE_DEVS2=DEVICE_DEVS3= \
DEVICE_DEVS4= DEVICE_DEVS5= DEVICE_DEVS6= DEVICE_DEVS7=DEVICE_DEVS8= \
DEVICE_DEVS9= DEVICE_DEVS10= DEVICE_DEVS11= DEVICE_DEVS12= \
DEVICE_DEVS13= DEVICE_DEVS14= DEVICE_DEVS15= DEVICE_DEVS16= \
DEVICE_DEVS17= DEVICE_DEVS18= DEVICE_DEVS19= DEVICE_DEVS20= \
DEVICE_DEVS_EXTRA= \
/bin/sh <./obj/ldt.tr
./obj/gdevopvp.o: In function `opvp_to_utf8':
gdevopvp.c:(.text+0x2232): undefined reference to `libiconv_open'
gdevopvp.c:(.text+0x226a): undefined reference to `libiconv'
gdevopvp.c:(.text+0x227d): undefined reference to `libiconv_close'
gdevopvp.c:(.text+0x22b9): undefined reference to `libiconv_close'
./obj/gomni.o: In function `OpenDevice':
gomni.c:(.text+0x50c): undefined reference to `bmp_map_16m_rgb_color'
gomni.c:(.text+0x516): undefined reference to `bmp_map_16m_color_rgb'
collect2: ld returned 1 exit status
make: *** [bin/gs] Error 1

SOLUTION:

Add '-l iconv \' to obj/ld.tr. But the symbols bmp_map_16m_rgb_color
and bmp_map_16m_color_rgb still cannot be resolved. They appear to come
from gdevbmp[a,c].c, but it doesn't get compiled.

--
Dr. Michael L. Dowling
Gaußstr. 27
38106 Braunschweig
Germany

config.log

Didier Link

unread,
Sep 19, 2007, 8:45:57 AM9/19/07
to Mike.D...@t-online.de, gnu-ghost...@gnu.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le Wed, 19 Sep 2007 12:10:25 +0200,
Mike Dowling <Mike.D...@t-online.de> a écrit :

> Hello shostscript developers,

Hi Mike, thanks for the report !

>
> I experienced a number of difficulties when trying to compile
> gnu-ghostscript-8.60.0. Most of the problems I could solve, but in
> the end, I had to give up. Here is a list of my problems with
> solutions where p[ossible.

Do you compile gs with a command like "make -j5" or another option to
do a parrallel build ? Can you try to compile with "make -j1" please ?
I think this will solve some problems. just don't forget to do a "make
clean" before retry. I've never see your problems with a "make -j1"
command.

I know this version of gs have a parralle build problem but I haven't a
solution for the moment sorry. The Makefiles need to be improved.

Best regards.

Didier LINK

- --
Didier Link <did...@famille-link.fr>
Jabber : zan...@ims.kelkoo.net
MSN : zan...@hotmail.fr
SIP : Zan...@ekiga.net

Clé GPG : 75BAC9EE
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFG8RoFkyPwinW6ye4RAgRjAKCFfX5oFTyDhrKJngVSpQWBVfVnGQCfaLI0
pc7kY0G6lw1aDmvsyoTwHys=
=A7uV
-----END PGP SIGNATURE-----
0 new messages