[Gentoo] xulrunner ne veut pas compiler

Résolu/Fermé
bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014 - 2 mai 2009 à 19:02
bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014 - 3 mai 2009 à 15:36
Bonjour,


tout est dit dans le titre ! des utilisateurs de gentoo peuvent-ils me dire s'ils ont la même chose.

le net n'est pas très bavard à ce sujet (trop récent ?)


cela fait suite à ma toute dernière mise-à-jour :
> root@gentoo[192.168.1.2]:~# emerge -uDpv world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] net-libs/xulrunner-1.9.0.10 [1.9.0.8] USE="dbus startup-notification -custom-optimization -gnome -java" 0 kB
[ebuild     U ] www-client/mozilla-firefox-3.0.10 [3.0.8] USE="dbus startup-notification xulrunner -bindist -custom-optimization -gnome -iceweasel -java -mozdevelop -restrict-javascript" LINGUAS="-af -ar -be -bg -bn -bn_IN -ca -cs -cy -da -de -el -en -en_GB -en_US -eo -es -es_AR -es_ES -et -eu -fi -fr -fy -fy_NL -ga -ga_IE -gl -gu -gu_IN -he -hi -hi_IN -hu -id -is -it -ja -ka -kn -ko -ku -lt -lv -mk -mn -mr -nb -nb_NO -nl -nn -nn_NO -oc -pa -pa_IN -pl -pt -pt_BR -pt_PT -ro -ru -si -sk -sl -sq -sr -sv -sv_SE -te -th -tr -uk -zh -zh_CN -zh_TW" 0 kB

Total: 2 packages (2 upgrades), Size of downloads: 0 kB

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

> root@gentoo[192.168.1.2]:~#


le message d'erreur :
* ERROR: net-libs/xulrunner-1.9.0.10 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called src_compile
 *             environment, line 5035:  Called _eapi2_src_compile
 *               ebuild.sh, line  625:  Called die
 * The specific snippet of code:
 *   		emake || die "emake failed"
 *  The die message:
 *   emake failed


ça plante à ce niveau :
blablabla
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\" -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/gfxContext.pp gfxContext.cpp
/usr/include/X11/extensions/render.h:29: erreur: 'XID' does not name a type
/usr/include/X11/extensions/render.h:30: erreur: 'XID' does not name a type
/usr/include/X11/extensions/render.h:31: erreur: 'XID' does not name a type
/usr/include/X11/extensions/render.h:32: erreur: 'XID' does not name a type
/usr/include/X11/extensions/Xrender.h:47: erreur: 'PictFormat' does not name a type
/usr/include/X11/extensions/Xrender.h:69: erreur: 'Picture' does not name a type
/usr/include/X11/extensions/Xrender.h:100: erreur: 'GlyphSet' does not name a type
/usr/include/X11/extensions/Xrender.h:108: erreur: 'GlyphSet' does not name a type
blablabla





merci.
A voir également:

4 réponses

bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014 472
2 mai 2009 à 20:22
0
bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014 472
2 mai 2009 à 21:02
ben, j'ai testé toutes les suggestions indiquées dans les liens mais rien n'y fait !

je laisse en suspend ...
0
bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014 472
3 mai 2009 à 11:39
ok ! j'ai trouvé !

c'est un vieux bug !

il suffit juste d'ajouter la ligne suivante dans le fichier /usr/include/X11/extensions/render.h

#include "/usr/include/X11/X.h"


et voilà !

ha oui ! la source : https://bugs.gentoo.org/show_bug.cgi?id=238665
0
jipicy Messages postés 40842 Date d'inscription jeudi 28 août 2003 Statut Modérateur Dernière intervention 10 août 2020 4 895
3 mai 2009 à 11:46
Salut Bobby,

Comme toujours tu as résolu ton problème comme un grand, du coup je me disais...

A quand un guide du rootard du genre :

L'art et la manière de résoudre soi même ses problèmes sous GNU/Linux non sans avoir au-préalable mis la communauté en transe toute une nuit à la recherche du bug, pour enfin au petit matin ramener le calme et la sérénité et une solution clé en main.

;-))

Oui je sais...










































=>>>>>>>>>>>>>>>>>> je sors, non sans t'avoir souhaité un bon dimanche (et aux z'autres aussi) ;-)))
0
bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014 472 > jipicy Messages postés 40842 Date d'inscription jeudi 28 août 2003 Statut Modérateur Dernière intervention 10 août 2020
3 mai 2009 à 13:03
Salut Jipicy,

Je ne pensais pas avoir mis toute la communauté en transe toute la nuit ! :-))

merci ! merci ! mais un problème n'arrivant jamais seul, je me retrouve à nouveau problème. J'en parle un peu ici, ne sachant pas trop pour le moment si c'est lié.

le nouveau souci : je ne peux plus lancer firefox !

je résume :

je fais donc la modif sur le fichier, comme indiqué un peu plus haut, et je relance la commande :

emerge -uDv world

ok les deux paquets xulrunner et mozilla-firefox compilent bien !


ensuite je balance un :

emerge -pv depclean

et là, le système me dit que "emerge ne connait pas de paquetage nommé depclean" !

ensuite, je ne sais pas ce qu'il me prend, je balance un

emerge --depclean

quelques paquets se désinstallent, je vois notamment une erreur à propos de gcc. Je termine par un revdep-rebuilt et un dispatch-conf.

Je me dis que j'ai peut-être fait des dégâts : je redémarre la machine.

Et maintenant je ne peux plus lancer firefox !

si je clic sur l'icône Web Browser, il me dit
Failed to execute default Web Browser
Erreur d'entrée/sortie


si je lance firefox via la console, il me dit :
/usr/lib/mozilla-firefox/firefox : error while loading shared libraries : libstdc++.so.6 : cannot open shared object file : No suche file or directory

note : j'ai libstdc++.so.6 qui pointe vers libstdc++.so.6.0.10


ps : j'écris depuis la debian !!!
0
bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014 472
3 mai 2009 à 15:36
ok ! j'ai trouvé pourquoi firefox ne démarrait plus !

alors il s'agissait de gcc !

> root@gentoo[192.168.1.2]:~# gcc -v
gcc-config error: Could not run/locate "gcc"
> root@gentoo[192.168.1.2]:~#


tiens il me semble avoir vu quelques part dans mes recherches une histoire de gcc-config, donc :
> root@gentoo[192.168.1.2]:~# gcc-config 
Usage: gcc-config [options] [CC Profile]
Change the current cc/gcc profile, or give info about profiles.

Options:
  -O, --use-old              Use the old profile if one was selected.
  -f, --force                Make sure all config files are regenerated.
  -P, --use-portage-chost    Only set to given profile if its CHOST is the 
                             same as that set for portage in /etc/make.conf
                             (or one of other portage config files...).
  -c, --get-current-profile  Print current used gcc profile.
  -l, --list-profiles        Print a list of available profiles.
  -S, --split-profile        Split profiles into their components
  -E, --print-environ        Print environment that can be used to setup the
                             current gcc profile, or a specified one.
  -B, --get-bin-path         Print path where binaries of the given/current
                             profile are located.
  -L, --get-lib-path         Print path where libraries of the given/current
                             profile are located.
  -X, --get-stdcxx-incdir    Print path where g++ include files of the
                             given/current profile are located.

Profile names are of the form:  <CHOST>-<gcc version>
For example:                    i686-pc-linux-gnu-3.2.1
> root@gentoo[192.168.1.2]:~# gcc-config -l
 * gcc-config: Active gcc profile is invalid!
 [1] i686-pc-linux-gnu-4.3.2
> root@gentoo[192.168.1.2]:~#


voilà la solution est donc :
> root@gentoo[192.168.1.2]:~# gcc-config i686-pc-linux-gnu-4.3.2
 * Switching native-compiler to i686-pc-linux-gnu-4.3.2 ...

 * Your gcc has a bug with GCC_SPECS.
 * Please re-emerge gcc.
 * https://bugs.gentoo.org/show_bug.cgi?id=68395

>>> Regenerating /etc/ld.so.cache...                                      [ ok ]

 * If you intend to use the gcc from the new profile in an already
 * running shell, please remember to do:

 *   # source /etc/profile

> root@gentoo[192.168.1.2]:~# 
> root@gentoo[192.168.1.2]:~# 
> root@gentoo[192.168.1.2]:~# 
> root@gentoo[192.168.1.2]:~# 
> root@gentoo[192.168.1.2]:~# gcc -v
Utilisation des specs internes.
Target: i686-pc-linux-gnu
Configuré avec: /var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.3.2 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.2 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.2/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.2/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --disable-libgcj --with-arch=i686 --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.2-r3 p1.6, pie-10.1.5'
Modèle de thread: posix
gcc version 4.3.2 (Gentoo 4.3.2-r3 p1.6, pie-10.1.5) 
> root@gentoo[192.168.1.2]:~#


et hop ..... firefox démarre à nouveau !


oui oui je sais
* Your gcc has a bug with GCC_SPECS.
* Please re-emerge gcc.
* https://bugs.gentoo.org/show_bug.cgi?id=68395


c'est donc ma prochaine mission ....

<EDIT :
https://bugs.gentoo.org/show_bug.cgi?id=68395
https://wiki.gentoo.org/wiki/Upgrading_GCC
https://www.system-linux.eu/index.php?tag/gcc-config

pour l'instant, je ne touche à plus rien ! :-)
EDIT>
0