Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
new (?) ghostscript emerge error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jocsch
n00b
n00b


Joined: 01 Sep 2002
Posts: 36

PostPosted: Sun Feb 09, 2003 11:31 pm    Post subject: new (?) ghostscript emerge error Reply with quote

Hi,
I think this is a new error trying to emerge ghostscript. I haven't found something in the search.
While trying to get my printer work, I decided to unmerge cups and ghostscript (which where both installed) and to reemerge them.
cups (1.1.18-r2) installed fine but ghostscript (7.05.5) failed to install with the follwing error:

Quote:

j -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: The ebuild did not complete successfully.
!!! Function src_compile, Line -126, Exitcode 2
!!! make failed


I changed my CFLAGS from "-march=pentium4 -O2 -pipe -fomit-frame-pointer"
to "-march=i586" to CFLAGS="" but nothing helps. I always get the error above.
Maybe someone with more experience can tell me what is wrong.

Thanks,
Markus
Back to top
View user's profile Send private message
jocsch
n00b
n00b


Joined: 01 Sep 2002
Posts: 36

PostPosted: Tue Feb 11, 2003 10:29 am    Post subject: sovled it Reply with quote

an
Code:
emerge -u ghostscript
solved the problem.
Half of my system was updated, I had troubles with the new gcc 2.6.1, learned how to use etc-update and finally get ghostscript compiled.

My printer still isn't working but that's another problem.
Back to top
View user's profile Send private message
weazle
n00b
n00b


Joined: 06 Feb 2003
Posts: 7
Location: Colorado, USA

PostPosted: Wed Feb 12, 2003 10:20 pm    Post subject: same problem only... Reply with quote

I have the same emerge/comile problem only my system is completly up to date! Even trying harder doesn't help.
Code:
emerge ghostscript -u --deep -p
 
These are the packages that I would merge, in order:
 
Calculating dependencies ...done!
[ebuild  N   ] app-text/ghostscript-7.05.5-r2

Also it doesn't matter which ebuild I use. I have tried all that are currently in the portage tree. They all produce the same error.

Out of curiosity I downloaded the source (7.05.6) for espgs from sourceforge and compiled it. It still produces the same error.

Any help appreciated.
Back to top
View user's profile Send private message
jocsch
n00b
n00b


Joined: 01 Sep 2002
Posts: 36

PostPosted: Wed Feb 12, 2003 10:52 pm    Post subject: stable packages Reply with quote

I used stable packages.
7.05.5-rc2 seems to be in the unstable tree.

What's the result if you use the stable tree?
Back to top
View user's profile Send private message
weazle
n00b
n00b


Joined: 06 Feb 2003
Posts: 7
Location: Colorado, USA

PostPosted: Thu Feb 13, 2003 12:16 am    Post subject: Reply with quote

Well, if i use just that package from the stable tree it does the same thing. I have tried stable cups as well with no change.

My hope was that I wouldn't have to downgrade everything to get this to work..but I guess I may have to try though...but whats the fun in stable software?!
Back to top
View user's profile Send private message
JohnY
Guru
Guru


Joined: 26 Jul 2002
Posts: 305

PostPosted: Thu Feb 13, 2003 5:44 am    Post subject: Reply with quote

Jocsch,

I get the same error with ghostscript-7.05.5-r2 with gcc 2.95.3 with -march=k6 -O2 -pipe -fomit-frame-pointer. I bet it'll compile with -gnome in USE just from looking at the ebuild change log, but I haven't tried it yet because 7.05.5 (without the -r2 is working fine).

JohnY
Back to top
View user's profile Send private message
jocsch
n00b
n00b


Joined: 01 Sep 2002
Posts: 36

PostPosted: Thu Feb 13, 2003 8:22 am    Post subject: good luck Reply with quote

I wish I can give you a hint about the solution.
But I really don't know why it is working now for me. I guess, that there were a few dependencies between the programs that has been corrected by the system update.

If you find a funded anwer, post it. If you have some questions to my package versions, post it.
Back to top
View user's profile Send private message
Sykus
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2002
Posts: 131
Location: Santa Barbara, CA

PostPosted: Sun Feb 16, 2003 2:15 am    Post subject: Reply with quote

i'm also having that exact same error. i had just finished setting up cups, and i unmerged ghostscript and started to re-emerge as directed..

here's my config:
USE="X qt kde gtk gnome alsa cups usb"
CFLAGS="-march=athlon-xp -O3 -pipe"

i originally had ~x86 keyword going, but after the first compile error with ghostscipt, i turned it off, no change.
Back to top
View user's profile Send private message
Sykus
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2002
Posts: 131
Location: Santa Barbara, CA

PostPosted: Sun Feb 16, 2003 8:16 am    Post subject: Reply with quote

bugs.gentoo.org has a solution that worked (for me at least):

https://bugs.gentoo.org/show_bug.cgi?id=14754

Quote:
------- Additional Comment #3 From Bardur Arantsson 2003-01-31 10:53 EST -------

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.
Back to top
View user's profile Send private message
iwasbiggs
Apprentice
Apprentice


Joined: 17 Jan 2003
Posts: 203

PostPosted: Fri Feb 28, 2003 12:40 am    Post subject: Reply with quote

Sykus wrote:
bugs.gentoo.org has a solution that worked (for me at least):

https://bugs.gentoo.org/show_bug.cgi?id=14754

Quote:
------- Additional Comment #3 From Bardur Arantsson 2003-01-31 10:53 EST -------

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.


Victory with 7.05.5!
_________________
www.ruinedsoft.com
Freeware development.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum