Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14754 - Ghostscript-7.05.5-r2 compile dies
Summary: Ghostscript-7.05.5-r2 compile dies
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-29 17:02 UTC by Matt Taylor
Modified: 2003-10-06 07:17 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Taylor 2003-01-29 17:02:07 UTC
-r1 compiled fine before, was reemerging after upgrading cups.

i686-pc-linux-gnu-gcc  -DHAVE_MKSTEMP -march=i686 -O3 -pipe
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -Wall -Wstrict-prototypes
-Wmissing-declarations -Wmissing-prototypes -Wcast-qual -Wwrite-strings
-fno-builtin -fno-common  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1
-DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MALLOC_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_IOCTL_H=1
-DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1
-DHAVE_STRUCT_STAT_ST_BLOCKS=1 -DHAVE_ST_BLOCKS=1 -DTIME_WITH_SYS_TIME=1
-DHAVE_LIBM=1 -DHAVE_PNG_H=1 -DHAVE_LIBPNG_PNG_H=1 -DHAVE_LIBX11=1
-DHAVE_LIBXEXT=1 -DHAVE_LIBXT=1 -DHAVE_MKSTEMP=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1
-DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DRETSIGTYPE=void -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1
-DHAVE_VPRINTF=1 -DHAVE_BZERO=1 -DHAVE_DUP2=1 -DHAVE_FLOOR=1
-DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMCHR=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1
-DHAVE_MKDIR=1 -DHAVE_MKFIFO=1 -DHAVE_MODF=1 -DHAVE_POW=1 -DHAVE_PUTENV=1
-DHAVE_RINT=1 -DHAVE_SETENV=1 -DHAVE_SQRT=1 -DHAVE_STRCHR=1 -DHAVE_STRERROR=1
-DHAVE_STRRCHR=1 -DHAVE_STRSPN=1 -DHAVE_STRSTR=1  -I./obj -I./src  -o
./obj/gdevstp.o -c ./src/gdevstp.c
./src/gdevstp.c:125: warning: initialization from incompatible pointer type
./src/gdevstp.c:127: warning: initialization from incompatible pointer type
./src/gdevstp.c:128: warning: initialization from incompatible pointer type
./src/gdevstp.c:130: warning: initialization from incompatible pointer type
./src/gdevstp.c:131: warning: initialization from incompatible pointer type
./src/gdevstp.c:132: warning: initialization from incompatible pointer type
./src/gdevstp.c:134: warning: initialization from incompatible pointer type
./src/gdevstp.c: In function `stp_dbg':
./src/gdevstp.c:149: warning: implicit declaration of function `stp_get_cyan'
./src/gdevstp.c:149: warning: implicit declaration of function `stp_get_magenta'
./src/gdevstp.c:150: warning: implicit declaration of function `stp_get_yellow'
./src/gdevstp.c:150: warning: double format, different type arg (arg 4)
./src/gdevstp.c:150: warning: double format, different type arg (arg 5)
./src/gdevstp.c:150: warning: double format, different type arg (arg 6)
./src/gdevstp.c:151: warning: implicit declaration of function `stp_get_ink_type'
./src/gdevstp.c:151: warning: format argument is not a pointer (arg 3)
./src/gdevstp.c:154: warning: implicit declaration of function `stp_get_brightness'
./src/gdevstp.c:154: warning: implicit declaration of function `stp_get_contrast'
./src/gdevstp.c:154: warning: double format, different type arg (arg 3)
./src/gdevstp.c:154: warning: double format, different type arg (arg 4)
./src/gdevstp.c:157: warning: implicit declaration of function `stp_get_gamma'
./src/gdevstp.c:157: warning: implicit declaration of function `stp_get_saturation'
./src/gdevstp.c:158: warning: implicit declaration of function `stp_get_density'
./src/gdevstp.c:158: warning: double format, different type arg (arg 3)
./src/gdevstp.c:158: warning: double format, different type arg (arg 4)
./src/gdevstp.c:158: warning: double format, different type arg (arg 5)
./src/gdevstp.c:162: warning: implicit declaration of function `stp_get_image_type'
./src/gdevstp.c:164: warning: implicit declaration of function `stp_get_resolution'
./src/gdevstp.c:164: warning: format argument is not a pointer (arg 3)
./src/gdevstp.c:166: warning: implicit declaration of function
`stp_get_dither_algorithm'
./src/gdevstp.c:166: warning: format argument is not a pointer (arg 3)
./src/gdevstp.c:168: warning: implicit declaration of function
`stp_get_media_source'
./src/gdevstp.c:168: warning: format argument is not a pointer (arg 3)
./src/gdevstp.c:170: warning: implicit declaration of function `stp_get_media_type'
./src/gdevstp.c:170: warning: format argument is not a pointer (arg 3)
./src/gdevstp.c:172: too few arguments to function `stp_get_media_size'
./src/gdevstp.c:172: invalid use of void expression
./src/gdevstp.c:174: warning: format argument is not a pointer (arg 3)
./src/gdevstp.c:175: warning: implicit declaration of function `stp_get_output_to'
./src/gdevstp.c:175: warning: format argument is not a pointer (arg 3)
./src/gdevstp.c: In function `stp_init_vars':
./src/gdevstp.c:208: warning: implicit declaration of function `stp_allocate_vars'
./src/gdevstp.c:208: warning: assignment makes pointer from integer without a cast
./src/gdevstp.c: In function `stp_print_page':
./src/gdevstp.c:249: warning: implicit declaration of function
`stp_printer_get_printvars'
./src/gdevstp.c:249: warning: passing arg 2 of `stp_merge_printvars' makes
pointer from integer without a cast
./src/gdevstp.c:257: warning: passing arg 1 of `strlen' makes pointer from
integer without a cast
./src/gdevstp.c:258: warning: implicit declaration of function `stp_set_resoluti
on'
./src/gdevstp.c:259: warning: implicit declaration of function
`stp_printer_get_printfuncs'
./src/gdevstp.c:259: invalid type argument of `->'
./src/gdevstp.c:261: warning: passing arg 1 of `strlen' makes pointer from
integer without a cast
./src/gdevstp.c:262: warning: implicit declaration of function
`stp_set_dither_algorithm'
./src/gdevstp.c:262: warning: implicit declaration of function
`stp_default_dither_algorithm'
./src/gdevstp.c:264: warning: implicit declaration of function `stp_set_scaling'
./src/gdevstp.c:267: warning: implicit declaration of function `stp_set_app_gamma'
./src/gdevstp.c:270: warning: implicit declaration of function `stp_set_cmap'
./src/gdevstp.c:276: warning: implicit declaration of function `stp_set_media_size'
./src/gdevstp.c:286: invalid type argument of `->'
./src/gdevstp.c:287: invalid type argument of `->'
./src/gdevstp.c: In function `stp_get_params':
./src/gdevstp.c:384: warning: passing arg 1 of `c_strdup' makes pointer from int
eger without a cast
./src/gdevstp.c:385: warning: passing arg 1 of `c_strdup' makes pointer from
integer without a cast
./src/gdevstp.c:386: warning: passing arg 1 of `c_strdup' makes pointer from
integer without a cast
./src/gdevstp.c:387: warning: passing arg 1 of `c_strdup' makes pointer from
integer without a cast
./src/gdevstp.c:388: warning: passing arg 1 of `c_strdup' makes pointer from
integer without a cast
./src/gdevstp.c: In function `stp_put_params':
./src/gdevstp.c:461: warning: implicit declaration of function
`stp_minimum_settings'
./src/gdevstp.c:461: warning: initialization makes pointer from integer without
a cast
./src/gdevstp.c:462: warning: implicit declaration of function
`stp_maximum_settings'
./src/gdevstp.c:462: warning: initialization makes pointer from integer without
a cast
./src/gdevstp.c:482: warning: passing arg 1 of `c_strdup' makes pointer from
integer without a cast
./src/gdevstp.c:483: warning: passing arg 1 of `c_strdup' makes pointer from
integer without a cast
./src/gdevstp.c:484: warning: passing arg 1 of `c_strdup' makes pointer from
integer without a cast
./src/gdevstp.c:485: warning: passing arg 1 of `c_strdup' makes pointer from
integer without a cast
./src/gdevstp.c:486: warning: passing arg 1 of `c_strdup' makes pointer from
integer without a cast
./src/gdevstp.c:495: warning: implicit declaration of function `stp_set_cyan'
./src/gdevstp.c:496: warning: implicit declaration of function `stp_set_magenta'
./src/gdevstp.c:497: warning: implicit declaration of function `stp_set_yellow'
./src/gdevstp.c:498: warning: implicit declaration of function `stp_set_brightness'
./src/gdevstp.c:499: warning: implicit declaration of function `stp_set_contrast'
./src/gdevstp.c:501: warning: implicit declaration of function `stp_set_image_type'
./src/gdevstp.c:502: warning: implicit declaration of function `stp_set_gamma'
./src/gdevstp.c:503: warning: implicit declaration of function `stp_set_saturation'
./src/gdevstp.c:504: warning: implicit declaration of function `stp_set_density'
./src/gdevstp.c:541: too many arguments to function `stp_set_printer_defaults'
./src/gdevstp.c:544: warning: implicit declaration of function
`stp_set_media_type_n'
./src/gdevstp.c:546: warning: implicit declaration of function
`stp_set_media_source_n'
./src/gdevstp.c:548: warning: implicit declaration of function `stp_set_ink_type_n'
./src/gdevstp.c:550: warning: implicit declaration of function
`stp_set_dither_algorithm_n'
./src/gdevstp.c:552: warning: implicit declaration of function
`stp_set_resolution_n'
./src/gdevstp.c: In function `stp_open':
./src/gdevstp.c:590: invalid type argument of `->'
./src/gdevstp.c:593: invalid type argument of `->'
./src/gdevstp.c:603: warning: implicit declaration of function `stp_set_orientation'
./src/gdevstp.c:603: `ORIENT_PORTRAIT' undeclared (first use in this function)
./src/gdevstp.c:603: (Each undeclared identifier is reported only once
./src/gdevstp.c:603: for each function it appears in.)
./src/gdevstp.c: In function `Image_get_row':
./src/gdevstp.c:648: `STP_IMAGE_OK' undeclared (first use in this function)
./src/gdevstp.c:649: warning: control reaches end of non-void function
make: *** [obj/gdevstp.o] Error 1

!!! ERROR: app-text/ghostscript-7.05.5-r2 failed.
!!! Function src_compile, Line -233, Exitcode 2
!!! make failed


# emerge info
Portage 2.0.46-r9 (default-1.0, gcc-2.95.3, glibc-2.2.5-r2)
=================================================================
System uname: 2.4.19-gentoo-r10 i686 AMD Athlon(tm) processor
GENTOO_MIRRORS="http://linux.oit.umass.edu/gentoo/gentoo
http://www.ibiblio.org/pub/Linux/distributions/gentoo"

CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt cups jpeg libg++ mikmod mmx mpeg ncurses pdflib
qtmt quicktime spell truetype xml2 xmms xv berkdb bonobo cdr directfb esd gdbm
gif gnome gnome-libs gpm gtk gtkhtml guile imlib libwww motif mozilla mysql nls
oggvorbis opengl pam perl png python readline sdl slang snmp ssl svga tcltk tcpd
tiff X -kde -qt -arts -java dvd encode gtk2"
COMPILER=""
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O3 -pipe"
CXXFLAGS="-march=i686 -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Thomas Raschbacher gentoo-dev 2003-01-30 18:14:54 UTC
weird .. can u try gcc3 or not?
(i accept the bug .. for now ;)
Comment 2 Bardur Arantsson 2003-01-31 10:40:42 UTC
I'm having the exact same problem, and I'm using gcc 3.2.1-r7. 
 
Comment 3 Bardur Arantsson 2003-01-31 10:53:13 UTC
Found a workaround: 
 
emerge -C media-gfx/gimp-print 
emerge -C net-print/gimp-print-cups 
emerge ghostscript 
 
(Note that the last line automatically emerges media-gfx/gimp-print if 
the "gnome" USE flag is set). 
 
It seems that net-print/gimp-print-cups had been installed (probably to satisfy a dependency of 
some sort) and that it overwrites a header file from media-gfx/gimp-print which ghostscript 
depends on. 
 
Comment 4 Matt Taylor 2003-01-31 16:51:41 UTC
I did what Bardur Arantsson said and it compiles fine.
Comment 5 Thomas Raschbacher gentoo-dev 2003-02-06 04:27:11 UTC
sounds logical but is weird cuz it works fine here with both gimp-print and gimp-print-cups installed ..
Comment 6 Bardur Arantsson 2003-02-06 05:40:08 UTC
> sounds logical but is weird cuz it works fine here with both gimp-print and 
> gimp-print-cups installed .. 
 
have you tried explicitly merging the gimp-print and gimp-print-cups packages, i.e. 
 
   emerge gimp-print 
   emerge gimp-print-cups 
 
(this order should trigger the compile problems) before emerging ghostscript? 
otherwise, they might have been merged so that gimp-print-cups was merged first 
and gimp-print afterwards (which would not necessarily cause problems). 
 
Comment 7 Thomas Raschbacher gentoo-dev 2003-02-06 07:29:29 UTC
this is exactly what i did (cuz i got to check if new versions work ;)
Comment 8 Phil Richards 2003-03-07 08:59:58 UTC
Same here, except with ghostscript-7.05.6.

There are two problems.

One is with the include files -

/usr/include/gimp-print

is installed by both gimp-print and gimp-print-cups, with differing
versions of the headers.

libgimpprint.so* has the same problem, with each build installing its own
version.

The two packages have clashing installations (this is *exactly* the same
problem that has been had with libpng).  The obvious fix is to make sure
that the two are kept in step... or that one of them doesn't install its
headers/libs (statically links against them instead).

Comment 9 Thomas Raschbacher gentoo-dev 2003-03-07 10:30:49 UTC
this is a problem with some versions of gimp-print
works fine with gimp-print-4.2.5 (ghostscript 7.05.6 here)

please try new ghostscript version too (and with gimp-print-cups-4.3.10)
Comment 10 Martin Holzer (RETIRED) gentoo-dev 2003-04-07 07:44:56 UTC
seems to work
Comment 11 Heinrich Wendel (RETIRED) gentoo-dev 2003-10-06 07:17:15 UTC
already fixed...