bug-ghostscript
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compile problems with gnu-ghostscript-8.60.0


From: Mike Dowling
Subject: Compile problems with gnu-ghostscript-8.60.0
Date: Wed, 19 Sep 2007 12:10:25 +0200
User-agent: Mutt/1.5.16 (2007-06-09)

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

Attachment: config.log
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]