Fehler beim Kompilieren von Ghostscript 9.01 unter SLES10 64bit

drsputnik0815

New Member
Hallo Gemeinde,

beim Kompilieren erhalte ich folgende Fehlermeldung:

./obj/echogs -w ./obj/ldt.tr -n - gcc -o ./bin/gs
./obj/echogs -a ./obj/ldt.tr -n -s ./obj/gsromfs1.o ./obj/gs.o -s
cat ./obj/ld.tr >>./obj/ldt.tr
./obj/echogs -a ./obj/ldt.tr -s - -ldl -lm -rdynamic -ldl -lpthread -lm
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/gdevcups.o: In function `cups_print_pages':
gdevcups.c:(.text+0x348f): undefined reference to `cupsRasterWriteHeader2'
collect2: ld returned 1 exit status
make: *** [bin/gs] Error 1


Cups-Pakete sind alle installiert....

rpm -qa | grep cups
cups-libs-1.1.23-40.58.17
cups-client-1.1.23-40.58.17
libgnomecups-32bit-0.2.2-21.6
cups-drivers-stp-1.1.23-28.2
libgnomecups-devel-0.2.2-21.6
cups-libs-32bit-1.1.23-40.58.17
cups-backends-1.0-18.4.23
cups-devel-1.1.23-40.58.17
libgnomecups-0.2.2-21.6
cups-SUSE-ppds-dat-1.1.20-119.2
cups-drivers-1.1.23-28.2
cups-1.1.23-40.58.17
gnome-cups-manager-0.32cvs20060120-33.35.64
gnome-cups-manager-devel-0.32cvs20060120-33.35.64


Systeminfos:

:~/ghostscript-9.01 # cat /etc/issue

Welcome to SUSE Linux Enterprise Server 10 SP3 (x86_64) - Kernel \r (\l).


:~/ghostscript-9.01 # uname -a
Linux 2.6.16.60-0.54.5-smp #1 SMP Fri Sep 4 01:28:03 UTC 2009 x86_64 x86_64 x86_64 GNU/Linux


Google und die SuFu kann nicht helfen - aber vielleicht einer von Euch?!?!

Besten Dank.
 
Ich glaube du musst im Makefile noch folgende zu linkende libs manuell anfügen:

LIBS="-lcups -lcupsimage" (die anderen Sachen, die dort standen, natürlich nichzt wegwerfen)

denn diese beiden fehlen in der 4. Zeile deiner Fehlermeldung.

Gruss
 
danke für die schnelle Antwort.

hier ein Auszug meines Makefiles:

Code:
#  Self added
LIBS="-lcups -lcupsimage"
#  Self added end

BINDIR=./bin
GLSRCDIR=./base
GLGENDIR=./obj
GLOBJDIR=./obj
PSSRCDIR=./psi
PSLIBDIR=./lib
PSRESDIR=./Resource
PSGENDIR=./obj
PSOBJDIR=./obj
CONTRIBDIR=./contrib

# Do not edit the next group of lines.

include $(GLSRCDIR)/version.mak
DD=$(GLGENDIR)/
GLD=$(GLGENDIR)/
PSD=$(PSGENDIR)/

# ------ Generic options ------ #

# Define the installation commands and target directories for
# executables and files.  The commands are only relevant to `make install';
# the directories also define the default search path for the
# initialization files (gs_*.ps) and the fonts.

INSTALL = $(GLSRCDIR)/instcopy -c
INSTALL_PROGRAM = $(INSTALL) -m 755
INSTALL_DATA = $(INSTALL) -m 644
INSTALL_SHARED =

prefix = /usr/local
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
scriptdir = $(bindir)
includedir = ${prefix}/include
libdir = ${exec_prefix}/lib
mandir = ${datarootdir}/man
man1ext = 1
man1dir = $(mandir)/man$(man1ext)
datadir = ${datarootdir}
datarootdir = ${prefix}/share

# The following must be substituted using ${datarootdir} and ${exec_prefix}/lib
# to avoid adding RPM generation paths (CUPS STR #1112)
gsdir = ${datarootdir}/ghostscript
gsdatadir = $(gsdir)/$(GS_DOT_VERSION)
gssharedir = ${exec_prefix}/lib/ghostscript/$(GS_DOT_VERSION)
gsincludedir = ${prefix}/include/ghostscript/

docdir=$(gsdatadir)/doc
exdir=$(gsdatadir)/examples
GS_DOCDIR=$(docdir)

# Define install location for 'cups' device/filter support
CUPSCFLAGS=
CUPSLIBS= cupsimage tiff jpeg png m z cups ssl crypto nsl
CUPSLIBDIRS= /usr/lib64
CUPSSERVERBIN=/usr/lib64/cups
CUPSSERVERROOT=/etc/cups
CUPSDATA=/usr/share/cups
CUPSPDFTORASTER=0

# Choose whether to compile the .ps initialization files into the executable.
# See gs.mak for details.

COMPILE_INITS=1

# Define the default directory/ies for the runtime
# initialization and font files.  Separate multiple directories with a :.

GS_LIB_DEFAULT=$(gsdatadir)/Resource/Init:$(gsdatadir)/lib:$(gsdatadir)/Resource/Font:$(gsdir)/fonts:${datarootdir}/fonts/default/ghostscript:${datarootdir}/fonts/default/Type1:${datarootdir}/fonts/default/TrueType:/usr/lib/DPS/outline/base:/usr/openwin/lib/X11/fonts/Type1:/usr/openwin/lib/X11/fonts/TrueType:/usr/share/cups/fonts

# Define the default directory for cached data files
# this must be a single path.

GS_CACHE_DIR="~/.ghostscript/cache/"

Habe die Zeile oben eingefügt - Leider ohne Erfolg, ich erhalte immer noch die Fehlermelung.
 
Die Zeile kannst Du wieder rausnehmen, da bereits in CUPSLIBS enthalten.

Unabhängig davon: Warum nimmst Du nicht die fertigen Pakete Deiner Distribution?
 
Ich brauche "die Neuste" und Suse bringt nur ne 8.5er mit.

ich muss pdf nach tif wandeln - kann ich da cups nicht weglassen?
 
Last edited by a moderator:
den Cups weggelassen - jetzt geht es

:~> gs -version
GPL Ghostscript 9.01 (2011-02-07)
Copyright (C) 2010 Artifex Software, Inc. All rights reserved.


Danke für die Unterstützung.
 
Der Vollständigkeit halber:

Dann kann ich mir nur noch vorstellen, dass die cups-libs (libcups, libcupsimage) zu alt sind und noch nicht die Funktion implementieren.

Du kannst das ja mal prüfen:
Code:
nm -D /usr/lib/libcupsimage.so
Falls du mal ghostscript mit cups brauchst, dann müsstest du die cups libs noch mitbauen.

Gruss
 
Code:
 nm -D /usr/lib/libcupsimage.so
0000000000003890 T ImageCMYKToBlack
00000000000039a0 T ImageCMYKToCMY
0000000000003c20 T ImageCMYKToCMYK
0000000000004cd0 T ImageCMYKToRGB
0000000000003e40 T ImageCMYKToWhite
000000000000fce0 T ImageClose
000000000000fbb0 T ImageGetCol
0000000000010490 T ImageGetRow
0000000000003f50 T ImageLut
000000000000fe50 T ImageOpen
000000000000fa40 T ImagePutCol
000000000000f910 T ImagePutRow
0000000000004170 T ImageRGBAdjust
00000000000030e0 T ImageRGBToBlack
00000000000031c0 T ImageRGBToCMY
00000000000034e0 T ImageRGBToCMYK
0000000000004f80 T ImageRGBToRGB
00000000000037b0 T ImageRGBToWhite
00000000000022b0 T ImageReadBMP
0000000000005b90 T ImageReadGIF
0000000000006460 T ImageReadJPEG
0000000000007540 T ImageReadPIX
0000000000007ab0 T ImageReadPNG
0000000000008220 T ImageReadPNM
0000000000006e30 T ImageReadPhotoCD
0000000000008cd0 T ImageReadSGI
000000000000a9d0 T ImageReadSunRaster
000000000000b400 T ImageReadTIFF
0000000000002f00 T ImageSetColorSpace
0000000000010580 T ImageSetMaxTiles
0000000000004800 T ImageSetProfile
0000000000002f30 T ImageWhiteToBlack
0000000000002fb0 T ImageWhiteToCMY
0000000000003050 T ImageWhiteToCMYK
00000000000051f0 T ImageWhiteToRGB
00000000000052b0 T ImageWhiteToWhite
000000000000f080 T ImageZoomAlloc
000000000000eec0 T ImageZoomFill
000000000000ed50 T ImageZoomFree
000000000000eda0 T ImageZoomQFill
         U TIFFClose
         U TIFFFdOpen
         U TIFFGetField
         U TIFFReadScanline
         U TIFFScanlineSize
         U _IO_getc
         U _IO_putc
         w _Jv_RegisterClasses
         U _TIFFfree
         U _TIFFmalloc
0000000000012ca8 A __bss_start
         U __ctype_b_loc
         U __ctype_tolower_loc
         w __cxa_finalize
         U __errno_location
         U __fprintf_chk
         w __gmon_start__
         U __stack_chk_fail
         U __strtol_internal
0000000000012ca8 A _edata
0000000000012e38 A _end
0000000000010b34 T _fini
0000000000001a04 T _init
         U calloc
         U cbrt
         U cbrtf
         U close
         U cos
00000000000109f0 T cupsRasterClose
0000000000010a20 T cupsRasterOpen
0000000000010950 T cupsRasterReadHeader
00000000000108d0 T cupsRasterReadPixels
0000000000010880 T cupsRasterWriteHeader
00000000000107f0 T cupsRasterWritePixels
         U cupsTempFd
         U fclose
         U fdopen
         U fgets
         U fileno
         U fopen64
         U fread
         U free
         U fscanf
         U fseek
         U ftell
         U fwrite
         U getenv
         U jpeg_CreateDecompress
         U jpeg_calc_output_dimensions
         U jpeg_destroy_decompress
         U jpeg_finish_decompress
         U jpeg_read_header
         U jpeg_read_scanlines
         U jpeg_start_decompress
         U jpeg_std_error
         U jpeg_stdio_src
         U lseek64
         U malloc
         U memcpy
         U memset
         U perror
         U png_create_info_struct
         U png_create_read_struct
         U png_get_valid
         U png_init_io
         U png_read_destroy
         U png_read_end
         U png_read_info
         U png_read_row
         U png_set_background
         U png_set_expand
         U png_set_interlace_handling
         U png_set_packing
         U png_set_strip_16
         U png_set_tRNS_to_alpha
         U pow
         U read
         U rewind
000000000000a810 T sgiClose
000000000000a000 T sgiGetRow
000000000000a760 T sgiOpen
000000000000a1e0 T sgiOpenFile
0000000000009920 T sgiPutRow
         U sin
         U sscanf
         U stderr
         U unlink
         U write

Bitteschön!
 
Back
Top