Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nautilus emerge failure
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
prolific
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 237

PostPosted: Mon Dec 27, 2004 1:46 am    Post subject: nautilus emerge failure Reply with quote

what can i do to fix this ?

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Nautilus-Printers\" -I../.. -DDATADIR=\"/usr/share\" -DGNOMELOCALEDIR=\"/usr/share/locale\" -pthread -DORBIT2=1 -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/eel-2 -I/usr/include/gconf/2 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/libart-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libxml2 -I/usr/include/gail-1.0 -I/usr/include/libglade-2.0 -I/usr/include/orbit-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libbonobo-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-module-2.0 -I/usr/include/gnome-desktop-2.0 -I/usr/include/startup-notification-1.0 -I/usr/include/libgnomecups-1 -DGTK_ENABLE_BROKEN -O2 -march=athlon-xp -fomit-frame-pointer -Wp,-MD,.deps/nautilus-printers.pp -c nautilus-printers.c -fPIC -DPIC -o .libs/nautilus-printers.o
nautilus-printers.c: In function `nautilus_printer_container_class_init':
nautilus-printers.c:601: warning: assignment from incompatible pointer type
nautilus-printers.c: In function `make_printers_view':
nautilus-printers.c:857: error: too few arguments to function `gnome_cups_ui_init'
make[3]: *** [nautilus-printers.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/nautilus-2.8.2-r1/work/nautilus-2.8.2/components/printers'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/nautilus-2.8.2-r1/work/nautilus-2.8.2/components'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/nautilus-2.8.2-r1/work/nautilus-2.8.2'
make: *** [all-recursive-am] Error 2

!!! ERROR: gnome-base/nautilus-2.8.2-r1 failed.
!!! Function gnome2_src_compile, Line 40, Exitcode 2
!!! compile failure
!!! If you need support, post the topmost build error, NOT this status message.
Back to top
View user's profile Send private message
vash-stampeed
n00b
n00b


Joined: 05 May 2004
Posts: 25
Location: Montemorelos, NL, México.

PostPosted: Mon Dec 27, 2004 2:51 am    Post subject: Reply with quote

have you tried the -cups in the USE variable?? I mean it like this:
Code:
USE="-cups" emerge nautilus

it might help! 8)
Back to top
View user's profile Send private message
agent_jdh
Veteran
Veteran


Joined: 08 Aug 2002
Posts: 1783
Location: Scotland

PostPosted: Tue Dec 28, 2004 5:04 pm    Post subject: Reply with quote

A bug report has been filed about this - in September :(

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

USE="-cups" isn't much use if you're trying to emerge -e world.
_________________
Jingle Jangle Jewellery
Back to top
View user's profile Send private message
stevens_yin
n00b
n00b


Joined: 30 Dec 2004
Posts: 1
Location: Peking

PostPosted: Thu Dec 30, 2004 3:36 am    Post subject: nautilus emerge failure Reply with quote

it's done for me according vash-stampeed's advise.
Back to top
View user's profile Send private message
agent_jdh
Veteran
Veteran


Joined: 08 Aug 2002
Posts: 1783
Location: Scotland

PostPosted: Thu Dec 30, 2004 5:58 pm    Post subject: Re: nautilus emerge failure Reply with quote

stevens_yin wrote:
it's done for me according vash-stampeed's advise.


Well, yeah, obviously, but it's only a temporary workaround and not for everyone.
_________________
Jingle Jangle Jewellery
Back to top
View user's profile Send private message
X800
n00b
n00b


Joined: 12 Dec 2004
Posts: 31

PostPosted: Sat Jan 01, 2005 10:46 am    Post subject: `gnome_cups_ui_init' Reply with quote

nautilus-printers.c: In function `nautilus_printer_container_class_init':
nautilus-printers.c:601: warning: assignment from incompatible pointer type
nautilus-printers.c: In function `make_printers_view':
nautilus-printers.c:857: error: too few arguments to function `gnome_cups_ui_init'

I built gnome at work without issue.

At home I receive the above error.

Any updates on a fix anyone?
Back to top
View user's profile Send private message
slymonkey
n00b
n00b


Joined: 13 Nov 2002
Posts: 45

PostPosted: Sat Jan 01, 2005 6:36 pm    Post subject: Reply with quote

I am having the same problem. Removing cups doesn't help.
_________________
"Rarely is the questioned asked: Is our children learning?" George W. Bush
Back to top
View user's profile Send private message
[Jason]
n00b
n00b


Joined: 15 Nov 2004
Posts: 6
Location: Lafayette, IN

PostPosted: Sat Jan 01, 2005 8:34 pm    Post subject: Reply with quote

Me too. This is annoying.
Back to top
View user's profile Send private message
Weary
n00b
n00b


Joined: 02 May 2002
Posts: 37
Location: Netherlands, hilversum

PostPosted: Sat Jan 01, 2005 11:55 pm    Post subject: Reply with quote

The patch as suggested in bugzilla looks fine

the first parameter passed to gnome_cups_ui_init is not used if it's set to NULL, so changing the gnome-cups-ui_init line to

Code:
gnome_cups_ui_init(NULL);

is a good patch.

the parameter is there to check that the name of the binary that launched gnome/cups is the same, for security reasons. Now, i'm not really sure if this NULL introduces a security risk (gnome-cups-manager people didn't put in documentation in their code..), but at least it compiles/works.

good luck,
weary
Back to top
View user's profile Send private message
aragonm
n00b
n00b


Joined: 25 Dec 2004
Posts: 17
Location: Ohio

PostPosted: Sun Jan 02, 2005 12:05 am    Post subject: SAME PROBLEM Reply with quote

Code:
USE="-cups" emerge nautilus

WORKED FOR ME!
There is also a correction for the code here:
https://bugs.gentoo.org/attachment.cgi?id=47267&action=view
Back to top
View user's profile Send private message
Weary
n00b
n00b


Joined: 02 May 2002
Posts: 37
Location: Netherlands, hilversum

PostPosted: Sun Jan 02, 2005 11:46 am    Post subject: Reply with quote

sure, USE="-cups" works, but you won't have cups support in nautilus

and the patch mentioned is the patch I was referring too as well

for lazy types, this patch does the same as:
edit /usr/portage/gnome-base/nautilus/files/nautilus-2-x-printers.patch
search for "gnome_cups_ui_init"
place "NULL" between the brackets
Back to top
View user's profile Send private message
butters
Guru
Guru


Joined: 13 May 2002
Posts: 427
Location: Poughkeepsie, NY

PostPosted: Fri Jan 07, 2005 3:56 am    Post subject: Reply with quote

This has got to be one of the stupidest bugs I've ever been affected by. When I saw the error message, I thought, "there's probably a null or zero parameter that the developer forgot about, but that's a pretty dumb compile-time thing you catch in debugging." I guess the gnome people aren't big cups fans... including the print manager developers. This bug report is from september?! Things like this make the MS "patch tuesday" program look pretty good in comparison. How many people need to edit the code by hand before the developers follow suit?
_________________
If tugboats were bigger, they'd be the ones getting tugged.
Back to top
View user's profile Send private message
Karsten1973
Guru
Guru


Joined: 17 Dec 2004
Posts: 303
Location: Berlin, Germany

PostPosted: Fri Jan 07, 2005 3:24 pm    Post subject: Reply with quote

Now, two years later, this bug still exists
_________________
I could be arguing on my own time.
Back to top
View user's profile Send private message
spqrdecker
n00b
n00b


Joined: 15 Nov 2004
Posts: 34
Location: Charlottesville, Va.

PostPosted: Sun Jan 09, 2005 5:21 am    Post subject: Reply with quote

That was an easy enough fix. But it raised a question that I've been wondering. Since it is a bug in the Nautilus code, and people in the Gentoo Bugzilla fixed it, will the patch ever make it upstream to the folks working on Gnome? Or, do we have to complain and wait for Gnome developers to discover the missing NULL independently and then fix it? I've noticed that the folks in the Gentoo forum and bugzilla tend to get their hands dirty and fix alot of broken software, but that the software being distributed elsewhere stays broken until the author fixes it.

So, is there some mechanism (apart from somebody just emailing whoever is responsible, or adding it to Gnome's bugzilla) that this patch, and other fixes like them, can easily be applied to the parent project? Gentoo users do alot of work getting the stuff to work on their machines, and it wouuld be a shame for it all to go to waste.
Back to top
View user's profile Send private message
wildcard78
n00b
n00b


Joined: 23 Feb 2004
Posts: 5

PostPosted: Sat Jan 22, 2005 3:58 am    Post subject: In newest version, you have to *REMOVE* the (NULL)... Reply with quote

In the latest ebuilds for nautilus 2.8.2, you actually have to remove the "NULL" from the parentheses. Otherwise, the compile fails with the message "too many arguments."

Thus, the patch called nautilus-2.8-x-printers.patch must be edited such that the line for "gnome_cups_ui_init" just has () instead of (NULL).

HTH.
Back to top
View user's profile Send private message
agent_jdh
Veteran
Veteran


Joined: 08 Aug 2002
Posts: 1783
Location: Scotland

PostPosted: Sat Jan 22, 2005 6:30 pm    Post subject: Reply with quote

Apparently if you have libgnomecups > 0.1.10 (I have 0.1.14), nautilus ebuild is fixed for ~x86 at least (again, that's what I use here). It compiles OK now for me.

EDIT - The bug report actaully mentions gnome-cups-manager, so maybe the libgnomecups version is irrelevant. For the record I have gnome-cups-manager-0.28 here.
_________________
Jingle Jangle Jewellery
Back to top
View user's profile Send private message
merdan
n00b
n00b


Joined: 19 Mar 2004
Posts: 14
Location: Bergen, Norway

PostPosted: Mon Jan 24, 2005 12:35 am    Post subject: Similar error while emering gnome Reply with quote

Hi!

I am trying to emerge gnome for the first time on my new amd64, but while emerging and compiling nautilus-cd-burner-2.8.5 I get a similar error-message. There is probably a nullpointer-exception or something like that. I am in Ubunto right now and here are the last messages printed to the screen:

Code:
make: [2] leaving directory /var/tmp/portage/nautilus-cd-burner-2.8.5/work/nautilus-cd-burner-2.8.5
make: [1] *** [all-recursive] Error 1
make: ['either 1 or 2'] Leaving directory /var/tmp/portage/nautilus-cd-burner-2.8.5/work/nautilus-cd-burner-2.8.5
make: *** [all-recursice-am] Error 2

Error: gnome-extra/nautilus-cd-burner-2.8.5 failed
Function gnome2_src_compile, Line 40, Exitcode 2
Compile failure


I am pretty sure that my problem has nothing to do with the cups, I have also tried the USE="-cups -dvd" as I thought that maybe the dvd-rom might be the one thing that causes the problem. Anyone who have some clues here??

BTW, I have never experienced this problem on any (x86) gentoo installs before!
_________________
thanks,
Merdan,
n00b user
Back to top
View user's profile Send private message
merdan
n00b
n00b


Joined: 19 Mar 2004
Posts: 14
Location: Bergen, Norway

PostPosted: Sun Jan 30, 2005 9:04 pm    Post subject: Problem magically fixed Reply with quote

After inserting a bunch of use-flags into make.conf the process of emerging gnome went with no problems and even succeeded with installing Nautilus and Nautilus-cd-burner-2.8.5 on my AMD-64. (See previous posting for the error that stopped gnome from emerging).

After updating the make.conf I did this:
    env-update && source /etc/profile
    emerge sync && emerge -u -D --newuse world

    emerge gnome


If anyone on AMD-64 has a similar problem emerging gnome I can always post my make.conf file.
:o
_________________
thanks,
Merdan,
n00b user
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