Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Ghostscript needs gtk...

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
Lawless
l33t
l33t
Posts: 638
Joined: Mon Nov 03, 2003 8:46 pm
Location: Germany
Contact:
Contact Lawless
Website

Ghostscript needs gtk...

  • Quote

Post by Lawless » Wed Dec 08, 2004 8:18 am

Want to update my ghostscript on an X less server. So no X, gtk or anything else...
My USE flags say -X and -gtk and an emerge -upv ghostscript gives me

Code: Select all

[ebuild     U ] app-text/ghostscript-7.07.1-r8 [7.07.1-r7] -X -cjk +cups -debug -emacs -gtk 0 kB 
But it still stops compiling at dxmain.c where it says

Code: Select all

/bin/sh: gtk-config: command not found
/bin/sh: gtk-config: command not found
./src/dxmain.c:36:21: gtk/gtk.h: No such file or directory
./src/dxmain.c:44: error: parse error before "data"
./src/dxmain.c:45: warning: function declaration isn't a prototype
./src/dxmain.c:83: error: parse error before "data"
./src/dxmain.c:84: warning: function declaration isn't a prototype
./src/dxmain.c: In function `read_stdin_handler':
./src/dxmain.c:85: error: `data' undeclared (first use in this function)

and lots of errors following because of gtk.h
The previous version compiled cleanly. How to tell him not to use gtk?
I couldn't find anything in the ebuild but I'm not really god at writing ebuilds...
Kernel panic: I have no root and I want to scream
Top
george
n00b
n00b
Posts: 67
Joined: Wed Jun 12, 2002 12:57 pm
Location: UK

  • Quote

Post by george » Wed Dec 08, 2004 9:58 pm

I found the same problem so I compared the ebuilds for -r8 with -r7.

My "fix" was to comment out the extra statements for building shared objects. If you look through the ebuild you should see two separate lines which have

Code: Select all

emake so
and

Code: Select all

emake soinstall
Just put "#" at the start of these lines and you should be able to build.

I haven't tested anything yet to see if this is safe and I couldn't find anything to tell me what the shared objects are for. However, as they weren't built in -r7 and the changelog doesn't refer to this change as a bug, I'm hoping it's OK :wink:

The problem is that one of the ghostscript makefiles uses gtk-config and (as far as I can tell from reading around) this only comes with gtk+1, not with gtk+2 and there isn't any test I could spot that could configure this out.

HTH
Top
Lawless
l33t
l33t
Posts: 638
Joined: Mon Nov 03, 2003 8:46 pm
Location: Germany
Contact:
Contact Lawless
Website

  • Quote

Post by Lawless » Thu Dec 09, 2004 4:37 pm

Hmm, only found this one

Code: Select all

emake so -j1 || die "make failed"
but commenting out didn't helped...
Kernel panic: I have no root and I want to scream
Top
george
n00b
n00b
Posts: 67
Joined: Wed Jun 12, 2002 12:57 pm
Location: UK

  • Quote

Post by george » Thu Dec 09, 2004 4:55 pm

That's the first one.

10 lines down is the other one with

Code: Select all

make .... soinstall ....
I guess that if you don't comment the second one then make will try to build the files before installing them.
Top
adsmith
Veteran
Veteran
Posts: 1386
Joined: Sun Sep 26, 2004 6:59 pm
Location: NC, USA

  • Quote

Post by adsmith » Thu Dec 09, 2004 5:31 pm

submit a bug report.
Top
Lawless
l33t
l33t
Posts: 638
Joined: Mon Nov 03, 2003 8:46 pm
Location: Germany
Contact:
Contact Lawless
Website

  • Quote

Post by Lawless » Fri Dec 10, 2004 8:08 am

Had overseen the second line - could it install now. Thx.

-> http://bugs.gentoo.org/show_bug.cgi?id=73981
Kernel panic: I have no root and I want to scream
Top
Post Reply

6 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic