Forums

Skip to content

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

Trouble emerging Gnome 2.18?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
thtroyer
n00b
n00b
Posts: 55
Joined: Mon Aug 13, 2007 8:51 pm

Trouble emerging Gnome 2.18?

  • Quote

Post by thtroyer » Wed Aug 15, 2007 1:26 am

Ok. I keep compile errors while trying to install the gnome package. On a previous install (last week), I emerged Gnome 2.16 without any problems(I'm not exactly sure why that was installed, whether I hadn't synced portage or whether Gentoo just updated to Gnome 2.18, I don't know (I'm kinda new here).

In any case, with my previous install and with this one, I keep hitting compile bugs. Here's one I'm not sure what to do with:
The package is app-pda/gnome-pilot (which I don't really have a need for, but it appears to be a dependency of Gnome).

Compile error:

Code: Select all

util.c:36: error: initializer element is not constant
util.c:36: error: (near initialization for 'synctypes[0]')
util.c:37: error: initializer element is not constant
util.c:37: error: (near initialization for 'synctypes[1]')
util.c:38: error: initializer element is not constant
util.c:38: error: (near initialization for 'synctypes[2]')
util.c:39: error: initializer element is not constant
util.c:39: error: (near initialization for 'synctypes[3]')
util.c:40: error: initializer element is not constant
util.c:40: error: (near initialization for 'synctypes[4]')
util.c:41: error: initializer element is not constant
util.c:41: error: (near initialization for 'synctypes[5]')
util.c: In function 'get_default_pilot':
util.c:248: warning: assignment discards qualifiers from pointer target type
make[2]: *** [util.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-pda/gnome-pilot-2.0.13/work/gnome-pilot-2.0.13/capplet'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-pda/gnome-pilot-2.0.13/work/gnome-pilot-2.0.13'
make: *** [all] Error 2

!!! ERROR: app-pda/gnome-pilot-2.0.13 failed.
Call stack:
  ebuild.sh, line 1632:   Called dyn_compile
  ebuild.sh, line 983:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  ebuild.sh, line 1322:   Called gnome2_src_compile
  gnome2.eclass, line 71:   Called die
I can post the entire build log if I need to, but above that is compiler garble (though, it does have some warnings about pointers far above). Not really sure what to do with this one.

Even still, should I really be hitting that many compile errors while installing something like Gnome? I've had to manually fix 3-4 'problems' already, and I still have plenty of packages to install to get Gnome working. Is there something deeper wrong?

Again, I'm new to Gentoo, not so much to Linux (coming up on 2 years using Ubuntu).

Thanks.
Top
didymos
Advocate
Advocate
User avatar
Posts: 4798
Joined: Mon Oct 10, 2005 2:09 am
Location: California

  • Quote

Post by didymos » Wed Aug 15, 2007 1:41 am

Running into to compile errors isn't unusual. It's just the sort of thing you only see on binary distros if you are:

a. A package maintainer
b. Building from source on the binary distro
c. Developing on a binary distro

Most users probably don't do any of those very often, if at all. This particular bug is known, and there is a patch, but you'd have to apply it yourself as the fix hasn't been committed to the tree yet. The other options are to mask >gnome-pilot-2.0.10-r1, which is the latest stable, or to try and emerge successively lower unstable versions until you get one that builds. To continue on with the gnome emerge, you can do:

Code: Select all

emerge --resume --skipfirst
and leave gnome-pilot for later. If you run into something that depends on it (if anything does; I don't know), skip over that as well.

Here's the bug:


[bug=182699]app-pda/gnome-pilot-2.0.13 doesn't compile with gcc-4.1.2[/bug]


[edit] BTW, if you don't have a PDA, then you don't even need the package. If that's the case, then disable the pda USE flag in /etc/make.conf and gnome-pilot will probably just go away.
Thomas S. Howard
Top
thtroyer
n00b
n00b
Posts: 55
Joined: Mon Aug 13, 2007 8:51 pm

  • Quote

Post by thtroyer » Wed Aug 15, 2007 2:18 am

Alright. I didn't notice that there was a pda flag. That seems to work, and the '--resume --skipfirst' will definitely come in handy when snags show up.

I'm just finding it annoying that lately I've been doing compiles overnight, only to find that not even 10% was completed due to some random error.

I'll keep emerging Gnome... hopefully that's the end of the bugs, but I'll be back here if I find more.

Thanks!
Top
didymos
Advocate
Advocate
User avatar
Posts: 4798
Joined: Mon Oct 10, 2005 2:09 am
Location: California

  • Quote

Post by didymos » Thu Aug 16, 2007 10:56 am

thtroyer wrote:I'm just finding it annoying that lately I've been doing compiles overnight, only to find that not even 10% was completed due to some random error.
Yeah, that can grate, but it's just part of the deal with a source-based distro. There are some scripts around that can ameliorate this to some extent by just skipping whatever fails then printing a list of failed packages when it's done. You can find some of them in the forums, but I don't know exactly which threads.
Thomas S. Howard
Top
Rcomian
Apprentice
Apprentice
User avatar
Posts: 174
Joined: Sat Jan 10, 2004 11:20 pm
Location: Uk, Northwest

  • Quote

Post by Rcomian » Thu Aug 16, 2007 11:56 am

Yeah, that got me too, so I've ended up writing this:
http://forums.gentoo.org/viewtopic-t-473424.html
Top
sawatts
n00b
n00b
Posts: 23
Joined: Tue Jan 18, 2005 9:34 am
Location: Hampshire, UK

  • Quote

Post by sawatts » Mon Aug 20, 2007 7:22 pm

This is also where I am now stuck. Everything else (not dependant on gnome-pilot) has been rebuilt against the new expat libraries (leaving evolution).

From capplet/util.c, global variable 'synctypes' is declared:

Code: Select all

static const char *synctypes[] = {_("Use conduit settings"), ...
So it is setting a global variable from the result of a function call, which you can't do in a C TU (gcc 3.4.6).

Rather than "_()", shouldn't the code be using "N_()", which is suppose to work with static strings.

Note: This appears to have been fixed in gnome-pilot 2.0.14, where 'synctypes' have been removed from utils.c.
Top
rem_proc_call
n00b
n00b
User avatar
Posts: 23
Joined: Thu Jul 17, 2003 12:39 pm
Location: Rocky Mountains, Colorado

  • Quote

Post by rem_proc_call » Tue Sep 25, 2007 3:39 pm

fixed in 2.0.15 - just mark it ~arch in your package.keywords and move on.
"There is a principle which is a bar against all information, which is proof against all arguments and which cannot fail to keep a man in everlasting ignorance – that principle is contempt prior to investigation." -- Herber Spencer
"RTFM" -- everyone
Top
Post Reply

7 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