PDA

Visualizza versione completa : [Debian] problema compilazione - file non trovato


Gergio
15-02-2008, 11.50.04
Ciao, sto cercando di compilare una cosa, ma ho un problema: lanciando il comando make, ottengo una serie di errori
fs/cramfs/uncompress.c:21:24: linux/zlib.h: No such file or directory
fs/cramfs/uncompress.c:24: parse error before "stream"
fs/cramfs/uncompress.c:24: warning: type defaults to `int' in declaration of `stream'
fs/cramfs/uncompress.c:24: warning: data definition has no type or storage class
fs/cramfs/uncompress.c: In function `cramfs_uncompress_block':
fs/cramfs/uncompress.c:32: request for member `next_in' in something not a structure or union
fs/cramfs/uncompress.c:33: request for member `avail_in' in something not a structure or union
fs/cramfs/uncompress.c:35: request for member `next_out' in something not a structure or union
fs/cramfs/uncompress.c:36: request for member `avail_out' in something not a structure or union
fs/cramfs/uncompress.c:38: warning: implicit declaration of function `zlib_inflateReset'
fs/cramfs/uncompress.c:39: `Z_OK' undeclared (first use in this function)
fs/cramfs/uncompress.c:39: (Each undeclared identifier is reported only once
fs/cramfs/uncompress.c:39: for each function it appears in.)
fs/cramfs/uncompress.c:41: warning: implicit declaration of function `zlib_inflateEnd'
fs/cramfs/uncompress.c:42: warning: implicit declaration of function `zlib_inflateInit'
fs/cramfs/uncompress.c:45: warning: implicit declaration of function `zlib_inflate'
fs/cramfs/uncompress.c:45: `Z_FINISH' undeclared (first use in this function)
fs/cramfs/uncompress.c:46: `Z_STREAM_END' undeclared (first use in this function)
fs/cramfs/uncompress.c:48: request for member `total_out' in something not a structure or union
fs/cramfs/uncompress.c: In function `cramfs_uncompress_init':
fs/cramfs/uncompress.c:59: request for member `workspace' in something not a structure or union
fs/cramfs/uncompress.c:59: warning: implicit declaration of function `zlib_inflate_workspacesize'
fs/cramfs/uncompress.c:60: request for member `workspace' in something not a structure or union
fs/cramfs/uncompress.c:64: request for member `next_in' in something not a structure or union
fs/cramfs/uncompress.c:65: request for member `avail_in' in something not a structure or union
fs/cramfs/uncompress.c: In function `cramfs_uncompress_exit':
fs/cramfs/uncompress.c:75: request for member `workspace' in something not a structure or union
make[5]: *** [fs/cramfs/uncompress.o] Error 1
make[4]: *** [fs/cramfs] Error 2
make[3]: *** [fs] Error 2
make[2]: *** [zImage] Error 2
make[1]: *** [install-recurse] Error 1
make: *** [everything] Error 2credo che tutti gli errori dipendano dal primo:
linux/zlib.h: No such file or directory

facendo una ricerca della libreria, pero', vedo che e' presente
/fox/devboard-R2_01/os/linux-2.6-tag--devboard-R2_01-1/include/config/jffs2/zlib.h
/fox/devboard-R2_01/os/linux-tag--devboard-R2_01/include/linux/zlib.h
/fox/devboard-R2_01/os/linux-tag--devboard-R2_01/arch/ppc/boot/include/zlib.h
/fox/devboard-R2_01/os/linux-tag--devboard-R2_01/arch/ppc64/boot/zlib.h
/fox/devboard-R2_01/apps/ppp-2.4-R2_0_5/common/zlib.h
/fox/devboard-R2_01/apps/ppp-2.4-R2_0_5/pppdump/zlib.h
/usr/include/linux/zlib.h
/usr/include/zlib.h
/home/user/.Trash/zlib.hnote:
- il file in questione fa parte del pacchetto zlib1g-dev, che ho provato a reinstallare piu' volte (anche diverse versioni)

- dato che non avevo spazio su disco, ho aggiunto un hd, montato in /fox

avete suggerimenti?

sacarde
17-02-2008, 09.18.49
credo che la cerchi in:

/usr/src/<versionekernel>/include

prova a farne un link


p.s.
nei sorgenti del kernel

Gergio
21-02-2008, 11.13.34
innanzitutto mi scuso per il ritardo e poi ringrazio per la risposta. Dopo aver postato ho trovato un amico "esperto" su msn che mi ha fatto assistenza da remoto: prova a fare questo, installa quell'altro, aggiorna di qua, mastruzza di la'...
dopo mezzora avevo il sistema inusabile e ne ho approfittato per reinstallare tutto sullo stesso hard disk.
Ci ho messo un po' a trovare tutte le librerie necessarie alla compilazione (ovviamente non mi ero segnato cosa mi serviva) e adesso sono a posto :)