Newsgroup: it.comp.os.linux.iniziare
Titolo: UDF errori

Ciao a tutti, uso mdk 9.0.
Qualcuno e' riuscito ad installare il supporto per gli udf ?
A me da problemi di installazione:
gia' al:
make config
mi chiede linux source
e io gli do /usr/
poi mi dice non esiste e mi chiede in quale target
e io gli da
/include
(solo dandogli questi parametri mi tira fuori la versione del kernell ecc. 
altrimenti mi da errore)
gli do quindi
make udf.o
e qui una sfilza di errori lunghissima:
--------------------------
[p3@localhost udf-0.9.6]$ make udf.o
make[1]: Entering directory `/home/p3/tmp/udf-0.9.6/module'
gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -DMODVERSIONS -include 
../include/linux/modversions.h  -g -D__KERNEL__ -DMODULE -I../include -I. 
-I/usr/include  -DCONFIG_UDF_FS_EXT -c -o balloc.o ../linux-2.4/balloc.c
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning:   as it has already been specified as a non-system directory
In file included from ../include/linux/udf_fs.h:62,
                 from ../linux-2.4/udfdecl.h:4,
                 from ../linux-2.4/balloc.c:27:
/usr/include/linux/version.h:2:2: #error 
"======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include 
/usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation 
of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files 
from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as 
recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and 
may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They 
should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header 
files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly 
include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do 
the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources 
installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic 
link"
/usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname -r`/build 
exists and points to"
/usr/include/linux/version.h:20:2: #error "   the matching kernel source 
directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy 
/boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error "   /lib/modules/`uname 
-r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to 
use the following"
/usr/include/linux/version.h:26:2: #error "   compiler option to use the 
correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error "   -I/lib/modules/`uname 
-r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error "   instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile 
accordingly."
/usr/include/linux/version.h:35:2: #error 
"======================================================="
In file included from ../linux-2.4/udfdecl.h:4,
                 from ../linux-2.4/balloc.c:27:
../include/linux/udf_fs.h:65:40: missing binary operator before '('
In file included from /usr/include/linux/prefetch.h:13,
                 from /usr/include/linux/list.h:6,
                 from /usr/include/linux/wait.h:14,
                 from /usr/include/linux/fs.h:11,
                 from ../linux-2.4/udfdecl.h:8,
                 from ../linux-2.4/balloc.c:27:
/usr/include/asm/processor.h:55: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here 
(not in a function)
/usr/include/asm/processor.h:55: requested alignment is not a constant
In file included from /usr/include/linux/fs.h:333,
                 from ../linux-2.4/udfdecl.h:8,
                 from ../linux-2.4/balloc.c:27:
../include/linux/udf_fs_i.h:50:41: missing binary operator before '('
In file included from /usr/include/linux/fs.h:767,
                 from ../linux-2.4/udfdecl.h:8,
                 from ../linux-2.4/balloc.c:27:
../include/linux/udf_fs_sb.h:117:40: missing binary operator before '('
In file included from ../linux-2.4/udfdecl.h:13,
                 from ../linux-2.4/balloc.c:27:
/usr/include/linux/version.h:2:2: #error 
"======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include 
/usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation 
of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files 
from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as 
recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and 
may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They 
should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header 
files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly 
include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do 
the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources 
installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic 
link"
/usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname -r`/build 
exists and points to"
/usr/include/linux/version.h:20:2: #error "   the matching kernel source 
directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy 
/boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error "   /lib/modules/`uname 
-r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to 
use the following"
/usr/include/linux/version.h:26:2: #error "   compiler option to use the 
correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error "   -I/lib/modules/`uname 
-r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error "   instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile 
accordingly."
/usr/include/linux/version.h:35:2: #error 
"======================================================="
In file included from /usr/include/linux/highmem.h:5,
                 from /usr/include/linux/pagemap.h:16,
                 from /usr/include/linux/locks.h:8,
                 from ../linux-2.4/balloc.c:29:
/usr/include/asm/pgalloc.h: In function `get_pgd_fast':
/usr/include/asm/pgalloc.h:78: warning: implicit declaration of function 
`smp_processor_id'
make[1]: *** [balloc.o] Error 1
make[1]: Leaving directory `/home/p3/tmp/udf-0.9.6/module'
make: *** [udf.o] Error 2
-------------------------
Mi sarebbe molto utile almeno leggere questo formato.
Qualcuno sa come risolvere?
Grazie in anticipo, p3.
-- 
Libero come il Mare
L   I   N   U   X

 Qualcuno sa come risolvere?
Se hai bisogno solo di leggere cd in udf, ti basta ricompilare il 
kernel, ammesso che il supporto non sia già disponibile come modulo.
Se vuoi anche la "scrittura", nel sito in firma c'è un mini how-to.
Ciao.
-- 
***  Per E-mail rimuovi ModE dall'indirizzo  ***
  *** Linux user # 198661 --- ICQ 33500725 ***
*** homepage 
http://web.tiscalinet.it/kailed
 ***
            *** Powered by Linux ***

 
OK ho caricato il modulo: 
#modprobe udf
poi
#lsmod
e appare tra gli alri anche il modulo UDF
Ho anche installato l'udftools (anche se non so se mi serve)
Adeso devo creare il device pktcdvd0, come descritto nell' howto? Mdk9.0 usa 
il devfs, ma per essere creato il device in automatico devo modificare 
modules.conf? (Con quale stringa? se non te la ricordi fa nulla cerchero' 
in qualche modo)
Poi dopo aver creato il device devo modificare /etc/fstab per montare il 
dispositivo?
In questo modo si puo' leggere e scrivere l'udf?
Ciao, p3.


 nulla cerchero' in qualche modo)
Ma hai patchato e ricompilato il kernel??? Non conosco il kernel fornito 
con la Mdk ma non credo che abbia il supporto adatto. Se lo devi 
patchare, ti devi procurare un kernel "liscio", altrimenti non 
riuscirai ad applicare la patch.
Una volta attivato il supporto, il device pktcvd0 dovrebbe essere creato 
automaticamente dal devfs.


 
La Mdk 9.0 ha il kernel 2.4.19-16mdk . Sappi che per me ricompilare il 
kernel e' un'operazione che mi mette un po' a disagio, e vorrei fare tutto 
il possibile per evitarlo.
La domanda e' la seguente: 
se il modulo e' disponibile con modprobe, e con lsmod vedo il modulo 
caricato, allora il mio kernel supporta l'udf come modulo, basta solo dire 
a mdk di caricare all' avvio anche questo modulo . Quindi perche' devo 
patchare e ricompilare il kernell? (correggimi se sbaglio)
Ritornando quindi, in modules.conf dovrebbe essere inserita una stringa che 
carichi il modulo in automatico all'avvio, quindi questo dovrebbe produrre 
anche la creazione del device? O forse ci va qualcosa anche in 
/etc/devfsd.conf ??


 devo patchare e ricompilare il kernell? (correggimi se sbaglio)
La patch al kernel, ti serve SOLO se vuoi scrivere i cd alla "direct 
cd".


 
Perbacco funziona!!!
Il mio fstab per cio' che riguarda il cdrom e il masterizzatore e' cosi', 
come lo modifico per far montare anche in udf i cd?
------------------------------
/dev/scd0 /mnt/cdrom auto 
user,iocharset=iso8859-15,umask=0,exec,codepage=850,ro,noauto 0 0
/dev/scd1 /mnt/cdrom2 auto 
user,iocharset=iso8859-15,umask=0,exec,codepage=850,ro,noauto 0 0
----------------------------
(scusa se approfitto della tua competenza) Grazie mille.


 ----------------------------
Visto che hai "auto" come filesystem (cioè il kernel tenta di 
riconoscere da solo il tipo di fs..), non dovresti fare niente.
Fai qualche prova e se non dovesse funzionare, allora ti crei un nuovo 
mountpoint e aggiungi a fstab una nuova entri con udf come filesystem e 
col nuovo mountpoint (il resto uguale ha quello che c'è già..)
Ciao.
