Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HDDTEMP] Probleme de compilation lors de la mise a jour
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Vanzetti
n00b
n00b


Joined: 31 Oct 2003
Posts: 13
Location: France

PostPosted: Fri Oct 31, 2003 10:46 am    Post subject: [HDDTEMP] Probleme de compilation lors de la mise a jour Reply with quote

quand je fait un emerge -DU hddtemp
ca me fait ca... et je ne sais pas d'ou ca vient car meme en modifiant les locales ca ne change pas....

Quote:

if gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I.. -I../intl -I../intl -Wall -fomit-frame-pointer -march=pentium4 -mfpmath=sse -msse2 -mmmx -Wall -fomit-frame-pointer -Wcast-align -MT hddtemp-scsicmds.o -MD -MP -MF ".deps/hddtemp-scsicmds.Tpo" \
-c -o hddtemp-scsicmds.o `test -f 'scsicmds.c' || echo './'`scsicmds.c; \
then mv ".deps/hddtemp-scsicmds.Tpo" ".deps/hddtemp-scsicmds.Po"; \
else rm -f ".deps/hddtemp-scsicmds.Tpo"; exit 1; \
fi
hddtemp.c: In function `main':
hddtemp.c:409: warning: implicit declaration of function `setlocale'
hddtemp.c:409: `LC_ALL' undeclared (first use in this function)
hddtemp.c:409: (Each undeclared identifier is reported only once
hddtemp.c:409: for each function it appears in.)
make[2]: *** [hddtemp-hddtemp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/hddtemp-0.3_beta8/work/hddtemp-0.3-beta8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/hddtemp-0.3_beta8/work/hddtemp-0.3-beta8'
make: *** [all] Error 2

!!! ERROR: app-admin/hddtemp-0.3_beta8 failed.
!!! Function src_compile, Line 34, Exitcode 2
!!! (no error message)

_________________
----------------------------
! SeuLe La LuTTe PAYe !
----------------------------


Last edited by Vanzetti on Fri Oct 31, 2003 10:57 am; edited 1 time in total
Back to top
View user's profile Send private message
yoyo
Bodhisattva
Bodhisattva


Joined: 04 Mar 2003
Posts: 4273
Location: Lyon - France

PostPosted: Fri Oct 31, 2003 10:52 am    Post subject: Reply with quote

Que donne (en root) un :
Code:
echo $LC_ALL


Peux-tu renommer ton titre (en éditant ton premier message) pour qu'il corresponde à ce qui est décrit ici.
Merci.
_________________
La connaissance s'accroît quand on la partage.
JCB
Back to top
View user's profile Send private message
Vanzetti
n00b
n00b


Joined: 31 Oct 2003
Posts: 13
Location: France

PostPosted: Fri Oct 31, 2003 10:59 am    Post subject: Reply with quote

ok j'ai compris d'ou venait l'erreur...

en fait je croyais que les locales etaient configurés ...

merci beaucoup
_________________
----------------------------
! SeuLe La LuTTe PAYe !
----------------------------
Back to top
View user's profile Send private message
Vanzetti
n00b
n00b


Joined: 31 Oct 2003
Posts: 13
Location: France

PostPosted: Fri Oct 31, 2003 11:08 am    Post subject: Reply with quote

je retire ce que j'ai dit meme en changeant les locales ca met la meme erreur §

Code:

nicolas root # echo $LC_ALL
fr_FR

_________________
----------------------------
! SeuLe La LuTTe PAYe !
----------------------------
Back to top
View user's profile Send private message
yoyo
Bodhisattva
Bodhisattva


Joined: 04 Mar 2003
Posts: 4273
Location: Lyon - France

PostPosted: Fri Oct 31, 2003 11:20 am    Post subject: Reply with quote

8O
Le message d'erreur est le même ???

Peut-être a-t-il besoin d'une locale spécifique. :?

Essaie :
Code:
LC_ALL="C" emerge -DU hddtemp

_________________
La connaissance s'accroît quand on la partage.
JCB
Back to top
View user's profile Send private message
Vanzetti
n00b
n00b


Joined: 31 Oct 2003
Posts: 13
Location: France

PostPosted: Fri Oct 31, 2003 11:24 am    Post subject: Reply with quote

toujours la meme erreur

Code:

hddtemp.c: In function `main':
hddtemp.c:409: warning: implicit declaration of function `setlocale'
hddtemp.c:409: `LC_ALL' undeclared (first use in this function)
hddtemp.c:409: (Each undeclared identifier is reported only once
hddtemp.c:409: for each function it appears in.)
make[2]: *** [hddtemp-hddtemp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/hddtemp-0.3_beta8/work/hddtemp-0.3-beta8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/hddtemp-0.3_beta8/work/hddtemp-0.3-beta8'
make: *** [all] Error 2

_________________
----------------------------
! SeuLe La LuTTe PAYe !
----------------------------
Back to top
View user's profile Send private message
Vanzetti
n00b
n00b


Joined: 31 Oct 2003
Posts: 13
Location: France

PostPosted: Sat Nov 01, 2003 8:47 pm    Post subject: Reply with quote

maintenant l'erreur a changé :

Code:

hddtemp.c:409: (Chaque identificateur non déclaré est rapporté une seule fois
hddtemp.c:409: pour chaque fonction dans laquelle il apparaît.)
make[2]: *** [hddtemp-hddtemp.o] Erreur 1
make[2]: *** Attente des tâches non terminées....
make[2]: Leaving directory `/var/tmp/portage/hddtemp-0.3_beta8/work/hddtemp-0.3-beta8/src'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/var/tmp/portage/hddtemp-0.3_beta8/work/hddtemp-0.3-beta8'
make: *** [all] Erreur 2

!!! ERROR: app-admin/hddtemp-0.3_beta8 failed.
!!! Function src_compile, Line 34, Exitcode 2
!!! (no error message)

_________________
----------------------------
! SeuLe La LuTTe PAYe !
----------------------------
Back to top
View user's profile Send private message
yoyo
Bodhisattva
Bodhisattva


Joined: 04 Mar 2003
Posts: 4273
Location: Lyon - France

PostPosted: Mon Nov 03, 2003 10:50 am    Post subject: Reply with quote

Qu'as-tu fais depuis ???

Poste ce qui se trouve un peu plus au dessus dans le message d'erreur.
_________________
La connaissance s'accroît quand on la partage.
JCB
Back to top
View user's profile Send private message
Vanzetti
n00b
n00b


Joined: 31 Oct 2003
Posts: 13
Location: France

PostPosted: Mon Nov 03, 2003 6:45 pm    Post subject: Reply with quote

j'ai changé les locales...
_________________
----------------------------
! SeuLe La LuTTe PAYe !
----------------------------
Back to top
View user's profile Send private message
yoyo
Bodhisattva
Bodhisattva


Joined: 04 Mar 2003
Posts: 4273
Location: Lyon - France

PostPosted: Tue Nov 04, 2003 8:17 am    Post subject: Reply with quote

Vanzetti wrote:
j'ai changé les locales...

C'est à dire (quelles sont tes nouvelles locales) ???

Repeat :
Poste ce qui se trouve un peu plus au dessus dans le message d'erreur.
_________________
La connaissance s'accroît quand on la partage.
JCB
Back to top
View user's profile Send private message
guzu
n00b
n00b


Joined: 29 Oct 2003
Posts: 12
Location: France

PostPosted: Tue Nov 04, 2003 11:35 pm    Post subject: Reply with quote

Vérifie que le fichier /usr/include/locale.h est bien présent.
S'il est présent (il le devrait) c'est que le ./configure, fait par le emerge, foire.
Back to top
View user's profile Send private message
Leander256
l33t
l33t


Joined: 05 Jul 2003
Posts: 910
Location: Singapour

PostPosted: Thu Apr 15, 2004 1:51 pm    Post subject: Reply with quote

J'ai exactement le même problème avec la nouvelle version que portage me propose, à savoir hddtemp-0.3_beta11:
Code:
hddtemp.c: In function `main':
hddtemp.c:424: warning: implicit declaration of function `setlocale'
hddtemp.c:424: error: `LC_ALL' undeclared (first use in this function)
hddtemp.c:424: error: (Each undeclared identifier is reported only once
hddtemp.c:424: error: for each function it appears in.)


Pourtant le "configure" à l'air de bien se dérouler (je copie les lignes qui me paraissent pertinentes):
Code:
...
checking for setlocale... yes
...
checking for LC_MESSAGES... yes
...
checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
...

En ce qui concerne le fichier /usr/include/locale.h il existe bien.

En attendant une éventuelle réponse, je vais jeter un coup d'oeil aux sources.
Back to top
View user's profile Send private message
Leander256
l33t
l33t


Joined: 05 Jul 2003
Posts: 910
Location: Singapour

PostPosted: Thu Apr 15, 2004 3:24 pm    Post subject: Reply with quote

Bon je me réponds à moi-même pour me signaler que j'ai "trouvé" le bug, il manque un:
Code:
#include <locale.h>

dans le fichier incriminé, donc comme je m'ennuyais cette après-midi j'ai fait un patch et modifié l'ebuild, je les ai testés, ils marchent correctement.

Mais en fait ce n'est pas si simple. En effet, lorsque je fais le ./configure et make "à la main", aussi bien en user qu'en root, tout se passe comme il faut. Il s'agit donc d'un problème avec portage, et ce n'est pas causé par la sandbox, j'ai la même erreur en la désactivant. J'ai donc l'impression d'avoir contourné le problème plutôt que de l'avoir résolu, seulement je ne me vois pas faire une session debug de la commande emerge (parce que je ne comprends rien à Python).

Donc, en résumé, est-ce que je ne me suis pas emballé, et est-ce que ça vaut le coup que je propose mon ebuild et mon patch sur bugzilla?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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