Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22859 - ghostscript-7.05.6-r2 fails to emerge with undefined macro
Summary: ghostscript-7.05.6-r2 fails to emerge with undefined macro
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-15 05:48 UTC by Tobias Klausmann (RETIRED)
Modified: 2003-09-26 12:21 UTC (History)
0 users

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 Tobias Klausmann (RETIRED) gentoo-dev 2003-06-15 05:48:24 UTC
First off: gcc issues a whole lot of warnings when compiling ghostscript.
Finally, it bombs with this:

gcc  -DHAVE_MKSTEMP -march=athlon-tbird -O2 -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_resolution'
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
integer 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)
make: *** [obj/gdevstp.o] Error 1

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

I guess fixing the missing macro might fix a whole slew of the warnings/errors
leading up to it.

Reproducible: Always
Steps to Reproduce:
emerge ghostscript

Actual Results:  
compile fails

Expected Results:  
emerge ghostscript

[klausman@hiro klausman]$ FEATURES="-distcc" MAKEOPTS="" emerge info
Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.21-ac1 i686 AMD Athlon(tm) processor
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://ftp.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
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/"
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="/usr/local/portage"
USE="x86 oss 3dnow apm avi crypt cups gif jpeg libg++ mikmod motif mpeg ncurses
nls pdflib png spell truetype xml2 zlib gtkhtml gdbm berkdb slang readline tetex
aalib bonobo svga ggi tcltk java guile sdl tcpd pam libwww ssl perl python esd
imlib opengl mozilla snmp cdr scanner X gtk gnome -alsa -arts -kde -qt gtk2 dvd
exif dga encode gphoto2 gpm jack mmx oggvorbis quicktime xmms xv"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O2 -pipe"
CXXFLAGS="-march=athlon-tbird -O2 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS=""
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="ccache sandbox userpriv usersandbox -distcc"
Comment 1 Thomas Raschbacher gentoo-dev 2003-06-23 02:52:21 UTC
do you have gimp-print or gimp-print-cups installed?
if so .. which version?
and which cups version?
Comment 2 Tobias Klausmann (RETIRED) gentoo-dev 2003-06-23 02:58:39 UTC
$ epm -q gimp-print gimp-print-cups cups
gimp-print-4.2.5-r1
gimp-print-cups-4.3.8-r1
cups-1.1.18-r5
Comment 3 duebel 2003-06-23 03:42:44 UTC
I get the same errors. I have installed the same versions of the related programs.
Comment 4 imgvg 2003-06-23 12:17:32 UTC
I also had this same problem.  I found a work-around on the net -- it seems that gimp-print-cups (4.3.8-r1) interferes with the build of ghostscript.  Unmerging gimp-print-cups and then re-emerging gimp-print (to be on the safe side) allows ghostscript to emerge properly.  After emergeing ghostscript, gimp-print-cups can be emerged anew.  This worked for me.
Comment 5 Stefan Sarzio 2003-06-25 05:39:17 UTC
"emerge unmerge gimp-print-cups && emerge --update ghostscript && emerge gimp-print-cups" gave:

--- cut here ---
src/gdevstp.c: In function `stp_open':
src/gdevstp.c:573: `stp_printer_t' undeclared (first use in this function)
src/gdevstp.c:573: parse error before "printer"
src/gdevstp.c:576: `printer' undeclared (first use in this function)
src/gdevstp.c:576: request for member `v' in something not a structure or union
src/gdevstp.c:579: request for member `v' in something not a structure or union
src/gdevstp.c:579: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
src/gdevstp.c:583: request for member `v' in something not a structure or union
src/gdevstp.c:583: warning: format argument is not a pointer (arg 3)
src/gdevstp.c:587: request for member `v' in something not a structure or union
src/gdevstp.c:588: request for member `v' in something not a structure or union
src/gdevstp.c:590: invalid type argument of `->'
src/gdevstp.c:591: request for member `v' in something not a structure or union
src/gdevstp.c:593: invalid type argument of `->'
src/gdevstp.c:594: request for member `v' in something not a structure or union
src/gdevstp.c:601: warning: implicit declaration of function `stp_set_top'
src/gdevstp.c:601: request for member `v' in something not a structure or union
src/gdevstp.c:602: warning: implicit declaration of function `stp_set_left'
src/gdevstp.c:602: request for member `v' in something not a structure or union
src/gdevstp.c:603: warning: implicit declaration of function `stp_set_orientation'
src/gdevstp.c:603: request for member `v' in something not a structure or union
src/gdevstp.c:603: `ORIENT_PORTRAIT' undeclared (first use in this function)
src/gdevstp.c:604: request for member `bottom' in something not a structure or union
src/gdevstp.c: At top level:
src/gdevstp.c:621: parse error before "Image_get_row"
src/gdevstp.c:621: parse error before '*' token
src/gdevstp.c:622: warning: return type defaults to `int'
src/gdevstp.c:622: warning: function declaration isn't a prototype
src/gdevstp.c: In function `Image_get_row':
src/gdevstp.c:623: `im' undeclared (first use in this function)
src/gdevstp.c:623: parse error before ')' token
src/gdevstp.c:623: `image' undeclared (first use in this function)
src/gdevstp.c:624: `data' undeclared (first use in this function)
src/gdevstp.c:627: `row' undeclared (first use in this function)
src/gdevstp.c:648: `STP_IMAGE_OK' undeclared (first use in this function)
src/gdevstp.c: At top level:
src/gdevstp.c:653: parse error before '*' token
src/gdevstp.c:654: warning: function declaration isn't a prototype
src/gdevstp.c:660: parse error before '*' token
src/gdevstp.c:661: warning: function declaration isn't a prototype
src/gdevstp.c: In function `Image_width':
src/gdevstp.c:662: `im' undeclared (first use in this function)
src/gdevstp.c:662: parse error before ')' token
src/gdevstp.c:662: `image' undeclared (first use in this function)
src/gdevstp.c: At top level:
src/gdevstp.c:674: parse error before '*' token
src/gdevstp.c:675: warning: function declaration isn't a prototype
src/gdevstp.c: In function `Image_height':
src/gdevstp.c:676: `im' undeclared (first use in this function)
src/gdevstp.c:676: parse error before ')' token
src/gdevstp.c:676: `image' undeclared (first use in this function)
src/gdevstp.c:680: warning: implicit declaration of function `stp_get_top'
src/gdevstp.c: At top level:
src/gdevstp.c:696: parse error before '*' token
src/gdevstp.c:697: warning: function declaration isn't a prototype
src/gdevstp.c:702: parse error before '*' token
src/gdevstp.c:703: warning: function declaration isn't a prototype
src/gdevstp.c:708: parse error before '*' token
src/gdevstp.c:709: warning: function declaration isn't a prototype
src/gdevstp.c:714: parse error before '*' token
src/gdevstp.c:715: warning: function declaration isn't a prototype
src/gdevstp.c:720: parse error before '*' token
src/gdevstp.c:721: warning: function declaration isn't a prototype
src/gdevstp.c:727: parse error before '*' token
src/gdevstp.c:728: warning: function declaration isn't a prototype
src/gdevstp.c:733: parse error before '*' token
src/gdevstp.c:734: warning: function declaration isn't a prototype
src/gdevstp.c:739: parse error before '*' token
src/gdevstp.c:740: warning: function declaration isn't a prototype
make: *** [obj/gdevstp.o] Error 1

!!! ERROR: app-text/ghostscript-7.05.6-r2 failed.
!!! Function src_compile, Line 67, Exitcode 2
!!! make failed
--- cut here ---

Then "emerge gimp-print-cups && emerge --update ghostscript" gave:

--- cut here ---
Calculating dependencies ...done!

!!! Error: the media-gfx/gimp-print package conflicts with this package and both can't be installed on the same system together.
--- cut here ---

Strange, since gimp-print-cups had been installed before all of this.

Next I tried "emerge gimp-print && emerge --update ghostscript" which did work.
Comment 6 duebel 2003-06-26 13:18:42 UTC
Unmerging gimp-print-cups solves the ghostscript-build-bug, but it cannot be reemerged afterwards.
Comment 7 Tobias Klausmann (RETIRED) gentoo-dev 2003-06-27 10:45:22 UTC
Same here, removing gimp-print-cups, remerging gimp-print and the merging ghostscript worked.

This fixes it for me since I no longer need gimp-print-cups for other reasons.
Comment 8 Heinrich Wendel (RETIRED) gentoo-dev 2003-09-26 12:21:19 UTC
should be fixed meanwhile ...