Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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="-*"
---------------------------------------------------------------------------
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.
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)
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....
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.
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.
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.
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()
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.