LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-14-2004, 06:14 PM   #1
asamaniego
LQ Newbie
 
Registered: Apr 2004
Posts: 3

Rep: Reputation: 0
Error installing Gnome on Gentoo


Hello,
I'm having problems installing Gnome on my new Gentoo (2004.0 with a 2.6.5 kernel).
When I type "emerge gnome" or "emerge --deep gnome" I get the error beneath:

Code:
!!! ERROR: net-www/mozilla-1.6-r1 failed.
!!! Function src_compile, Line 379, Exitcode 2
!!! (no error message)
I don't know what is happening with Mozilla but I think that could be a mistake in my /etc/make.conf file. Here it is:
Code:
-------------------------  make.conf ---------------------------------
# These settings were set by the catalyst build script that
automatically built this stage
CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
MAKEOPTS="-j2"
USE="aalib acpi4linux amd antlr apache2 atm autofs bcel bidi bonobo
bsh \
     cap caps cddb cdr cgi chroot cle266 cscope curl debug devfs
directfb \
     dnd dnsdb dvd dvdr editor emacs emacs-w3 evo freetds fusion gd
geoip \
     gimpprint glade glgd glut gmtfull gmthigh gnomedb gphoto2 gtkhtml
\
     hbci idea ieee1394 imap informix innodb ipv6 irda irmc jabber
jack \
     java javamail javascript jbig jdepend jikes junit justify jython
\
     libgda log4j mmx mozaccess mozcalendar mozilla mozp3p mozsvg \
     mozxmlterm mpeg4 msn mule music net nntp nvidia odbc openssh oro
\
     pcmcia pear-db php pnp samba scanner sdk snmp sox sse tiff
transcode \
     trusted unicode vhosts videos vim-with-x virus-scan wavelan wifi
X509 \
     xalan xemacs xerces xine xinerama xml xosd yaz zeo -arts -kde
-qt"
CXXFLAGS="${CFLAGS}"
GENTOO_MIRRORS="my_url_list"
CONFIG_PROTECT="-*"
---------------------------------------------------------------------------
Thanks!

Note: Sorry... My english is awful!
 
Old 04-15-2004, 04:22 AM   #2
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
I always thought my USE flags are a mess but you got me beat there.You'll need the gtk2 flag to build gnome in there but that shouldn't be the holdup.First check how much space you got in your PORTAGE_TMPDIR (default is /var/tmp).Mozilla needs in the neighborhood of 1 gig temp space to compile.Then either try to get rid of some use flags or try with O2 as compiler flag.For use flags it's nice to use ufed if don't do that already.
 
Old 04-15-2004, 05:14 AM   #3
Mahony
Member
 
Registered: Jan 2004
Location: Glasgow
Distribution: Gentoo 2004.0, Debain 3.0r2, Mandrake 10.0 and Slackware 9.1
Posts: 173

Rep: Reputation: 30
Hi asamaniego,

try 'emerge 'sync' (no quotes) and possibly 'emerge portage' or 'emerge rsync'.

And try running 'emerge gnome' again.

Hope I helped ,


Later.
 
Old 04-15-2004, 06:56 PM   #4
asamaniego
LQ Newbie
 
Registered: Apr 2004
Posts: 3

Original Poster
Rep: Reputation: 0
I captured the last lines of the error:

Code:
make[4]: warning: -jN forced in submake: disabling jobserver mode.
make[5]: warning: -jN forced in submake: disabling jobserver mode.
../../../../dist/include/necko/nsReadLine.h:57: warning: `nsresult 
   NS_ReadLine(nsIInputStream*, nsLineBuffer*, nsAString&, PRBool*)' defined 
   but not used
make[5]: warning: -jN forced in submake: disabling jobserver mode.
make[3]: warning: -jN forced in submake: disabling jobserver mode.
make[4]: warning: -jN forced in submake: disabling jobserver mode.
In file included from nsAccessProxyRegistration.cpp:31:
nsAccessProxy.h:35:28: nsIAccessProxy.h: No such file or directory
nsAccessProxy.cpp:46:25: nsIRegistry.h: No such file or directory
In file included from nsAccessProxy.cpp:52:
../../../dist/include/content/nsIDocument.h:48:20: nsIURI.h: No such file or directory
../../../dist/include/content/nsIDocument.h:53:26: nsILoadGroup.h: No such file or directory
In file included from nsAccessProxy.cpp:52:
../../../dist/include/content/nsIDocument.h: In instantiation of `nsDerivedSafe<nsIURI>':
../../../dist/include/content/nsIDocument.h:135:   instantiated from here
../../../dist/include/content/nsIDocument.h:135: error: base class `nsIURI' has 
   incomplete type
../../../dist/include/content/nsIDocument.h: In member function `nsIURI* 
   nsIDocument::GetDocumentURL() const':
../../../dist/include/content/nsIDocument.h:135: error: cannot convert `const 
   nsCOMPtr<nsIURI>' to `nsIURI*' in return
../../../dist/include/content/nsIDocument.h: In member function `nsIURI* 
   nsIDocument::GetBaseURL() const':
../../../dist/include/content/nsIDocument.h:163: error: cannot convert `const 
   nsCOMPtr<nsIURI>' to `nsIURI*' in return
In file included from nsAccessProxyRegistration.cpp:31:
nsAccessProxy.h: In static member function `static const nsID& 
   nsAccessProxy::GetCID()':
nsAccessProxy.h:64: error: `NS_ACCESSPROXY_CID' undeclared (first use this 
   function)
nsAccessProxy.h:64: error: (Each undeclared identifier is reported only once 
   for each function it appears in.)
nsAccessProxyRegistration.cpp:33:25: nsIRegistry.h: No such file or directory
In file included from nsAccessProxy.cpp:58:
nsAccessProxy.h:35:28: nsIAccessProxy.h: No such file or directory
In file included from nsAccessProxy.cpp:58:
nsAccessProxy.h: In static member function `static const nsID& 
   nsAccessProxy::GetCID()':
nsAccessProxy.h:64: error: `NS_ACCESSPROXY_CID' undeclared (first use this 
   function)
nsAccessProxy.h:64: error: (Each undeclared identifier is reported only once 
   for each function it appears in.)
nsAccessProxy.cpp: In member function `virtual nsresult 
   nsAccessProxy::HandleEvent(nsIDOMEvent*)':
nsAccessProxy.cpp:102: error: `GetType' undeclared (first use this function)
nsAccessProxy.cpp:113: error: cannot convert `nsIDOMEvent*' to `nsISupports*' 
   for argument `1' to `const nsQueryInterface do_QueryInterface(nsISupports*, 
   nsresult*)'
../../../dist/include/xpcom/nsCOMPtr.h: In destructor `nsCOMPtr<T>::~nsCOMPtr() 
   [with T = nsIURI]':
../../../dist/include/content/nsIDocument.h:113:   instantiated from here
../../../dist/include/xpcom/nsCOMPtr.h:474: error: invalid static_cast from 
   type `nsIURI*' to type `nsISupports*'
../../../dist/include/xpcom/nsCOMPtr.h:476: error: `Release' undeclared (first 
   use this function)
../../../dist/include/xpcom/nsCOMPtr.h: In member function `nsCOMPtr<T>& 
   nsCOMPtr<T>::operator=(T*) [with T = nsIURI]':
../../../dist/include/content/nsIDocument.h:136:   instantiated from here
../../../dist/include/xpcom/nsCOMPtr.h:570: error: no matching function for 
   call to `nsCOMPtr<nsIURI>::assign_with_AddRef(nsIURI*&)'
../../../dist/include/xpcom/nsCOMPtr.h:946: error: candidates are: void 
   nsCOMPtr<T>::assign_with_AddRef(nsISupports*) [with T = nsIURI]
nsAccessProxyRegistration.cpp: In function `nsresult 
   nsAccessProxyRegistrationProc(nsIComponentManager*, nsIFile*, const char*, 
   const char*, const nsModuleComponentInfo*)':
nsAccessProxyRegistration.cpp:60: error: parse error before `,' token
nsAccessProxyRegistration.cpp: At global scope:
nsAccessProxyRegistration.cpp:74: error: `NS_ACCESSPROXY_CONTRACTID' was not 
   declared in this scope
nsAccessProxyRegistration.cpp:78: error: invalid conversion from `nsresult 
   (*)(nsISupports*, const nsIID&, void**)' to `short unsigned int'
nsAccessProxyRegistration.cpp:78: error: invalid conversion from `nsresult 
   (*)(nsIComponentManager*, nsIFile*, const char*, const char*, const 
   nsModuleComponentInfo*)' to `unsigned char'
../../../dist/include/xpcom/nsCOMPtr.h: In member function `void 
   nsCOMPtr<T>::Assert_NoQueryNeeded() [with T = nsIURI]':
../../../dist/include/xpcom/nsCOMPtr.h:571:   instantiated from `nsCOMPtr<T>& nsCOMPtr<T>::operator=(T*) [with T = nsIURI]'
../../../dist/include/content/nsIDocument.h:136:   instantiated from here
../../../dist/include/xpcom/nsCOMPtr.h:486: error: cannot convert `nsIURI*' to 
   `nsISupports*' for argument `1' to `const nsQueryInterface 
   do_QueryInterface(nsISupports*, nsresult*)'
../../../dist/include/xpcom/nsCOMPtr.h:571:   instantiated from `nsCOMPtr<T>& nsCOMPtr<T>::operator=(T*) [with T = nsIURI]'
../../../dist/include/content/nsIDocument.h:136:   instantiated from here
../../../dist/include/xpcom/nsCOMPtr.h:487: error: comparison between distinct 
   pointer types `nsDerivedSafe<nsIURI>*' and `nsIURI*' lacks a cast
../../../dist/include/xpcom/nsISupportsUtils.h: In static member function `
   static const nsIID& nsCOMTypeInfo<T>::GetIID() [with T = nsILoadGroup]':
../../../dist/include/xpcom/nsIWeakReferenceUtils.h:62:   instantiated from `nsresult CallQueryReferent(T*, DestinationType**) [with T = nsDerivedSafe<nsIWeakReference>, DestinationType = nsILoadGroup]'
../../../dist/include/content/nsIDocument.h:154:   instantiated from here
../../../dist/include/xpcom/nsISupportsUtils.h:202: error: incomplete type '
   nsILoadGroup' cannot be used to name a scope
make[4]: *** [nsAccessProxy.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [nsAccessProxyRegistration.o] Error 1
make[3]: *** [libs] Error 2
make[2]: *** [libs] Error 2
make[1]: *** [tier_94] Error 2
make: *** [default] Error 2

!!! ERROR: net-www/mozilla-1.6-r1 failed.
!!! Function src_compile, Line 379, Exitcode 2
!!! (no error message)
Thank you! Linux is killing me...
 
Old 04-27-2004, 04:14 AM   #5
sonika_trip
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Rep: Reputation: 0
Hi,

I get the same error, did you ever solve this?

I am about to edit *.ebuild files to remove mozilla, since -mozilla in the USE var does not seem to do it.

Not sure if I understand how the whole USE var system works, but I did intstall gentoolkit and there is a util `etcat uses gnome' it says nothing about mozilla, neither does `emerge -pv gnome' say anything about mozilla. It seems that mozilla is a valid USE var in ${PORTAGE_DIR}/profiles/use.desc (btw, what does this get used for[the file])

Is there a way to _exclude_ packages? I saw something in a bugzilla entry about that... that it might get added....
 
Old 04-27-2004, 05:56 AM   #6
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
You could do emerge inject mozilla then portage thinks that mozilla is installed but then the epiphany (or whatever it is called) compile will fail.You'd also need to inject that.There might be other things that depend on mozilla and won't build.For the USE flags you can install ufed.Thats a little utility that shows the available use flags and has an explanation what they do with it.
 
Old 04-27-2004, 06:09 AM   #7
asamaniego
LQ Newbie
 
Registered: Apr 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Remove mozaccess from USE

Hello,
I've fixed my problem removing the mozaccess option from my USE variable.


Hope I helped,

Álvaro

NOTE: Post your USE variable too.
 
Old 04-27-2004, 06:28 AM   #8
sonika_trip
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Rep: Reputation: 0
hehe, just injected it and it works, thanks. (or it is compiling at the moment)

I will remove mozaccess if that does not work.

nice one on the ufed util!

Thanks for all the tips.

PS: what does inject do? cause I do not see the entry when I qpk -I | grep mozilla and I do not see it in the _world_ database
 
Old 04-27-2004, 06:57 AM   #9
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
AFAIK it doesn't show up in the wold database because then it would compile it when you do a world update and you inject it for not getting it compiled.
 
Old 04-27-2004, 07:44 AM   #10
sonika_trip
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Rep: Reputation: 0
Do you have no idea what it does with this _stub_ it creates?
 
Old 04-27-2004, 07:52 AM   #11
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Truth be told - no.I am sure that you could find out somewhere in the depth of man portage but I gave up on understanding it for the moment since they are changing around portage and the config files about every other hour for the last couple of weeks.If they ever seddle down on something I go to invest some energy in understanding it again if I still use gentoo then which is highly questionable.Right now it seems to be just a colossal waste of time.Way I look at it it's halfway b0rked right now any way you look at it anyway.
 
Old 04-27-2004, 07:55 AM   #12
sonika_trip
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Rep: Reputation: 0
According to the code, it creates this file with a number

Code:
def cpv_inject(self,mycpv):
		"injects a real package into our on-disk database; assumes mycpv is valid and doesn't already exist"
		os.makedirs(self.root+"var/db/pkg/"+mycpv)	
		counter=db[self.root]["vartree"].dbapi.counter_tick()
		# write local package counter so that emerge clean does the right thing
		lcfile=open(self.root+"var/db/pkg/"+mycpv+"/COUNTER","w")
		lcfile.write(str(counter))
		lcfile.close()

I will delete it and see what happens
 
Old 04-27-2004, 09:04 AM   #13
sonika_trip
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Rep: Reputation: 0
ok, the problem was in my make.conf; asamaniego, this might be your problem as well, I am running an AMD Athlon.

Commented was giving me errors(possibly obviousely!) :
#CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
#CHOST="i386-pc-linux-gnu"
#CXXFLAGS="${CFLAGS}"

and I changed it to(which makes much more sense) :

CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem installing Gnome on Gentoo 1200 Linux - Software 3 12-29-2005 01:39 PM
Error with Gentoo 2005.0 and Gnome LanFeusT2Troy Linux - Software 1 03-31-2005 10:52 AM
pkg-config error with emerge -aD gnome-python on Gentoo 2.6.9-gentoo-r6 ghrellin Linux - Software 2 12-22-2004 06:37 PM
Gnome Nautilus error on Gentoo pewillette Linux - Software 2 04-25-2004 06:17 AM
Gentoo: Installing Gnome without Mozilla hamish Linux - Software 1 04-09-2004 12:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration