Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge --update --deep world and broken packages.
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
eNTi
Veteran
Veteran


Joined: 20 Oct 2002
Posts: 1011
Location: Salzburg, Austria

PostPosted: Tue Jan 07, 2003 9:24 pm    Post subject: emerge --update --deep world and broken packages. Reply with quote

hi again.

today i stumbled over this problem. my gtkmm won't compile. i always get the following error:

g++ -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"gtkmm\" -Dgtkmm_COMPILATION -DG_DISABLE_DEP
RECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_D
EPRECATED -I../../glib -I../../glib -I../../pango -I../../pango -I../../atk -I..
/../atk -I../../gdk -I../../gdk -I../../gtk -I../../gtk -I/usr/lib/sigc++-1.2/in
clude -I/usr/include/sigc++-1.2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/includ
e -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/us
r/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/
usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -mcpu=athlon-xp -O3 -pipe -Wall
-c treeviewcolumn.cc -fPIC -DPIC -o treeviewcolumn.lo
treeview.cc: In static member function `static void
Gtk::TreeView_Class::class_init_function(void*, void*)':
treeview.cc:891: invalid conversion from `void (*)(GtkTreeView*)' to `gboolean
(*)(GtkTreeView*)'
treeview.cc:892: invalid conversion from `void (*)(GtkTreeView*)' to `gboolean
(*)(GtkTreeView*)'
treeview.cc:893: invalid conversion from `void (*)(GtkTreeView*, int)' to `
gboolean (*)(GtkTreeView*, int)'
treeview.cc:894: invalid conversion from `void (*)(GtkTreeView*)' to `gboolean
(*)(GtkTreeView*)'
treeview.cc:895: invalid conversion from `void (*)(GtkTreeView*, int, int, int)
' to `gboolean (*)(GtkTreeView*, int, int, int)'
treeview.cc:896: invalid conversion from `void (*)(GtkTreeView*)' to `gboolean
(*)(GtkTreeView*)'
treeview.cc:897: invalid conversion from `void (*)(GtkTreeView*)' to `gboolean
(*)(GtkTreeView*)'
make[5]: *** [treeview.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory `/var/tmp/portage/gtkmm-2.0.2/work/gtkmm-2.0.2/gtk/gt
kmm'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/gtkmm-2.0.2/work/gtkmm-2.0.2/gtk/gt
kmm'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/gtkmm-2.0.2/work/gtkmm-2.0.2/gtk'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/gtkmm-2.0.2/work/gtkmm-2.0.2/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gtkmm-2.0.2/work/gtkmm-2.0.2'
make: *** [all-recursive-am] Error 2

!!! ERROR: x11-libs/gtkmm-2.0.2 failed.
!!! Function src_compile, Line 32, Exitcode 2
!!! emake failed.

---
what really interests me (besides any solution for the error itself): why is emerge stopping and does not emerge the other packages and maybe telling me all errors at the end of a emerge --update --deep world?

i've already searched for this problems in the forum and found some very unhappy (for me) approach to solve this issue by a user-made script, that is not working for everyone. i'm not capeable enough of writing (and understanding) such scripts by myself yet and i wonder if there isn't really a better approach. maybe some new option in emerge?
_________________
If you fall off a cliff, you might as well try to fly. After all, you got nothing to lose.

-- John Sheridan - Babylon 5, Season 4
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Tue Jan 07, 2003 10:23 pm    Post subject: Reply with quote

i don't have a sloution for your compilation error, but for the emerge question, i have a small solution for you.

to run the commands, you need the package app-admin/gentoolkit:
Code:
emerge app-admin/gentoolkit

if you want to display all packages wich needs a update, then use:
Code:
for i in $(qpkg -I -nc);do if (emerge -p $i|grep -q "U \]");then echo $i;fi;done

and if you want to update them (it will continue eaven if emerge has problems compiling the package):
Code:
for i in $(qpkg -I -nc);do if (emerge -p $i|grep -q "U \]");then emerge $i;fi;done

if you are interessed in the old and new version number of your package (the one wich needs to be updated), then use the following command (the old package version will be displayed in the last [ ]. example: app-admin/gentoolkit-0.1.17-r7 [0.1.17-r5]):
Code:
for i in $(qpkg -I -nc);do if (emerge -p $i|grep -q "U \]");then emerge -p --nodeps $i|sed -n "s/.* \] \(.*\)/\1/gIp";fi;done



cheers

SteveB
Back to top
View user's profile Send private message
dizzy
n00b
n00b


Joined: 04 Aug 2002
Posts: 50
Location: Melb.OZ.Terra.Sol

PostPosted: Tue Jan 07, 2003 11:39 pm    Post subject: Reply with quote

steveb: "emerge --update world" take into account dependencies of the updates, so if of one of those dependcies failed to emerge then the process stops. I think this is one of those "it's not a bug, it's a feature" thing.

Also with gtkmm-2.0.2 not compiling, it's been filed already. Bug #12942. I also have the same error as you, although I didn't use the "--deep" option. Just wanted to let you know that you're not the only one with a problem with gtkmm.
Back to top
View user's profile Send private message
eNTi
Veteran
Veteran


Joined: 20 Oct 2002
Posts: 1011
Location: Salzburg, Austria

PostPosted: Tue Jan 07, 2003 11:44 pm    Post subject: Reply with quote

fine. thx. :)
_________________
If you fall off a cliff, you might as well try to fly. After all, you got nothing to lose.

-- John Sheridan - Babylon 5, Season 4
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