Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Emerge alsa-driver -> Errore compilazione
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
lucabelluccini
n00b
n00b


Joined: 26 Apr 2006
Posts: 20

PostPosted: Wed May 17, 2006 11:11 pm    Post subject: [SOLVED] Emerge alsa-driver -> Errore compilazione Reply with quote

Sto tentando di far funzionare la vanilla-source-2.6.17-r4 dato che supporta la mia wi-fi...
Non riesco a compilare però gli alsa-driver: per necessità di notebook sono costretto a caricare come modulo l'alsa nel kernel e poi dovrei ri-emergere gli alsa-driver con l'opzione debug.
Al momento di fare l' emerge, dopo un pò di file compilati arriva al file 'serialmidi.c', dandomi
Code:
 error: structure has no member named `atomic_write'

Sono andato a controllare e, se non erro, la struct tty ha atomic_write_lock come possibile membro.
A quel punto o modificato serialmidi.c nei 3 if dove si presentava l'errore.
Risultato: vengono passati come warning (suspicious pointer, e ci può stare). Non è questa comunque la soluzione.

:\ Come posso fare? Ecco l'errore completo:
Code:
/var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/drivers/serialmidi.c: In function `tx_loop':
/var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/drivers/serialmidi.c:317: error: structure has no member named `atomic_write'
/var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/drivers/serialmidi.c:322: error: structure has no member named `atomic_write'
/var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/drivers/serialmidi.c:339: error: structure has no member named `atomic_write'


Nel caso io voglia controllare se gli alsa-driver-1.0.10 non sono affetti da tale problema, come faccio a mascherare tale pacchetto ed emergere il precedente?


Last edited by lucabelluccini on Thu May 18, 2006 7:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Thu May 18, 2006 1:33 pm    Post subject: Re: Emerge alsa-driver -> Errore compilazione Reply with quote

lucabelluccini wrote:
Nel caso io voglia controllare se gli alsa-driver-1.0.10 non sono affetti da tale problema, come faccio a mascherare tale pacchetto ed emergere il precedente?

man portage
specialmente la sezione relativa ai files in /etc/portage/
_________________
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne
Back to top
View user's profile Send private message
lucabelluccini
n00b
n00b


Joined: 26 Apr 2006
Posts: 20

PostPosted: Thu May 18, 2006 4:35 pm    Post subject: Reply with quote

Niente da fare neanche con gli alsa versione precedente... :|
Back to top
View user's profile Send private message
lucabelluccini
n00b
n00b


Joined: 26 Apr 2006
Posts: 20

PostPosted: Thu May 18, 2006 7:55 pm    Post subject: Reply with quote

Risolto!

Sono andato a controllare su include/linux/tty.h ...
Ho trovato:
Code:
       
        struct mutex atomic_read_lock;
        struct mutex atomic_write_lock;

A cui ho aggiunto :!:
Code:

        struct semaphore atomic_read;
        struct semaphore atomic_write;

Anche se la struct tty ora occupa ben 2 struct addizionali.... Non mi sembra di avere anomalie particolari cmq.
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Thu May 18, 2006 8:54 pm    Post subject: Reply with quote

Controlla su bugs.gentoo.org se ci sono bugs in corso simili o uguali al tuo, in caso contrario crea tu un nuovo bug con la possibile soluzione! 8)
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
Flameeyes
Retired Dev
Retired Dev


Joined: 30 Mar 2005
Posts: 189
Location: London, Europe

PostPosted: Mon Jun 19, 2006 1:13 pm    Post subject: Reply with quote

Fare una cosa del genere è chiedere problemi, visto che la struttura è utilizzata dal kernel.

Ad ogni modo, io non riesco a riprodurre il problema localmente, ma vedrò di correggerlo visto che è già stato riportato nel bug #137147, nel modo corretto.
_________________
You want to know what I'm working on right now? Just follow my blog.
Back to top
View user's profile Send private message
Flameeyes
Retired Dev
Retired Dev


Joined: 30 Mar 2005
Posts: 189
Location: London, Europe

PostPosted: Mon Jun 19, 2006 1:47 pm    Post subject: Reply with quote

Okay, ho committato il vero fix su alsa-driver-1.0.11. In un'oretta circa arriverà sui mirror.

Nota bene: non inviate bug sul Bugzilla se avete modificato il kernel in questo modo. Rischiate solo di far perdere tempo a qualche altro sviluppatore se qualcosa non funziona come dovrebbe. Metodo sicuro: rimuovete i sorgenti e ri-emergete gentoo-sources (o vanilla-sources o antani-sources), in modo da averli puliti.
_________________
You want to know what I'm working on right now? Just follow my blog.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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