View previous topic :: View next topic |
Author |
Message |
lucabelluccini n00b
Joined: 26 Apr 2006 Posts: 20
|
Posted: Wed May 17, 2006 11:11 pm Post subject: [SOLVED] Emerge alsa-driver -> Errore compilazione |
|
|
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 |
|
|
Cazzantonio Bodhisattva
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Thu May 18, 2006 1:33 pm Post subject: Re: Emerge alsa-driver -> Errore compilazione |
|
|
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 |
|
|
lucabelluccini n00b
Joined: 26 Apr 2006 Posts: 20
|
Posted: Thu May 18, 2006 4:35 pm Post subject: |
|
|
Niente da fare neanche con gli alsa versione precedente... |
|
Back to top |
|
|
lucabelluccini n00b
Joined: 26 Apr 2006 Posts: 20
|
Posted: Thu May 18, 2006 7:55 pm Post subject: |
|
|
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 |
|
|
Scen Retired Dev
Joined: 29 Jul 2003 Posts: 2470 Location: Padova, Italy
|
Posted: Thu May 18, 2006 8:54 pm Post subject: |
|
|
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! _________________ 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 |
|
|
Flameeyes Retired Dev
Joined: 30 Mar 2005 Posts: 189 Location: London, Europe
|
Posted: Mon Jun 19, 2006 1:13 pm Post subject: |
|
|
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 |
|
|
Flameeyes Retired Dev
Joined: 30 Mar 2005 Posts: 189 Location: London, Europe
|
Posted: Mon Jun 19, 2006 1:47 pm Post subject: |
|
|
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 |
|
|
|