1 |
saludos: |
2 |
|
3 |
Estoy tratando de compilar el módulo de cloop, hasta ahora he realizado |
4 |
lo siguiente. |
5 |
|
6 |
cloop-0.68 # emerge cloop |
7 |
|
8 |
Calculating dependencies ...done! |
9 |
>>> emerge (1 of 1) sys-apps/cloop-0.68 to / |
10 |
>>> md5 src_uri ;-) cloop_0.68-3.tar.gz |
11 |
>>> Unpacking source... |
12 |
>>> Unpacking cloop_0.68-3.tar.gz to /var/tmp/portage/cloop-0.68/work |
13 |
>>> Source unpacked. |
14 |
* /usr/src/linux is a symbolic link |
15 |
* Determining the real directory of the Linux kernel source code |
16 |
* Building for Linux 2.4.22-gentoo-r7 found in /usr/src/linux |
17 |
* You have not enabled the zlib compression and/or decompression options |
18 |
* in your Linux kernel. |
19 |
* |
20 |
* You must configure both options to be compiled into your kernel; cloop |
21 |
* will not compile if the zlib options are compiled as modules |
22 |
|
23 |
!!! ERROR: sys-apps/cloop-0.68 failed. |
24 |
!!! Function badconfig, Line 39, Exitcode 0 |
25 |
!!! (no error message) |
26 |
|
27 |
Al parecer me falta compilar el módulo zlib dentro del kernel lo que me |
28 |
extraña es que tengo soporte |
29 |
CONFIG_ZLIB_INFLATE=y |
30 |
CONFIG_ZLIB_DEFLATE=m |
31 |
|
32 |
Tambien estoy usando el kernel 2.6 el cual dice que no puede ser usado |
33 |
con este módulo. Pero según la documentación de knoppix si se podria. |
34 |
http://www.knoppix.net/docs/index.php/cloop |
35 |
|
36 |
En base a esta documentación he decidido compilar el módulo a mano. |
37 |
|
38 |
#cp /usr/portage/distfiles/cloop_0.68-3.tar.gz /usr/src/ |
39 |
#cd /usr/src/ |
40 |
#tar -xvzf cloop_0.68-3.tar.gz |
41 |
#cd cloop-0.68 |
42 |
#make KERNEL_DIR=/usr/src/linux-2.6.7-gentoo-r12/ |
43 |
gcc -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -s -I. |
44 |
-fno-strict-aliasing -fno-common -fomit-frame-pointer -D__KERNEL__ |
45 |
-DMODULE -fno-builtin -nostdlib |
46 |
-I/usr/src/linux-2.6.7-gentoo-r12//include compressed_loop.c -c -o |
47 |
compressed_loop.o |
48 |
compressed_loop.c:45: warning: type defaults to `int' in declaration of |
49 |
`EXPORT_NO_SYMBOLS' |
50 |
compressed_loop.c:45: warning: data definition has no type or storage class |
51 |
compressed_loop.c:47:41: missing binary operator before token "(" |
52 |
In file included from compressed_loop.c:71: |
53 |
/usr/src/linux-2.6.7-gentoo-r12/include/linux/blk.h:1:2: warning: |
54 |
#warning this file is obsolete, please use <linux/blkdev.h> instead |
55 |
compressed_loop.c:116: error: syntax error before "devfs_handle" |
56 |
compressed_loop.c:116: warning: type defaults to `int' in declaration of |
57 |
`devfs_handle' |
58 |
compressed_loop.c:116: warning: data definition has no type or storage class |
59 |
compressed_loop.c: In function `get_blksize': |
60 |
compressed_loop.c:147: error: `blksize_size' undeclared (first use in |
61 |
this function) |
62 |
compressed_loop.c:147: error: (Each undeclared identifier is reported |
63 |
only once |
64 |
compressed_loop.c:147: error: for each function it appears in.) |
65 |
compressed_loop.c: In function `make_clo_request': |
66 |
compressed_loop.c:271: warning: passing arg 2 of `blk_queue_bounce' |
67 |
makes pointer from integer without a cast |
68 |
compressed_loop.c:271: error: too many arguments to function |
69 |
`blk_queue_bounce' |
70 |
compressed_loop.c:271: error: void value not ignored as it ought to be |
71 |
compressed_loop.c:280: error: dereferencing pointer to incomplete type |
72 |
compressed_loop.c:296: error: dereferencing pointer to incomplete type |
73 |
compressed_loop.c:302: error: dereferencing pointer to incomplete type |
74 |
compressed_loop.c:303: error: dereferencing pointer to incomplete type |
75 |
compressed_loop.c:304: error: dereferencing pointer to incomplete type |
76 |
compressed_loop.c:343: error: dereferencing pointer to incomplete type |
77 |
compressed_loop.c: In function `clo_set_file': |
78 |
compressed_loop.c:360: error: structure has no member named `i_dev' |
79 |
compressed_loop.c: At top level: |
80 |
compressed_loop.c:529: error: syntax error before "kdev_t" |
81 |
compressed_loop.c:531: warning: function declaration isn't a prototype |
82 |
compressed_loop.c: In function `clo_set_fd': |
83 |
compressed_loop.c:532: error: `cloop_num' undeclared (first use in this |
84 |
function) |
85 |
compressed_loop.c:538: error: `arg' undeclared (first use in this function) |
86 |
compressed_loop.c: In function `clo_open': |
87 |
compressed_loop.c:617: warning: `MOD_INC_USE_COUNT' is deprecated |
88 |
(declared at /usr/src/linux-2.6.7-gentoo-r12/include/linux/module.h:529) |
89 |
compressed_loop.c: In function `clo_close': |
90 |
compressed_loop.c:636: warning: implicit declaration of function `fsync_dev' |
91 |
compressed_loop.c:638: warning: `MOD_DEC_USE_COUNT' is deprecated |
92 |
(declared at /usr/src/linux-2.6.7-gentoo-r12/include/linux/module.h:541) |
93 |
compressed_loop.c: In function `init_module': |
94 |
compressed_loop.c:675: warning: implicit declaration of function |
95 |
`devfs_register_blkdev' |
96 |
compressed_loop.c:682: error: `blk_size' undeclared (first use in this |
97 |
function) |
98 |
compressed_loop.c:683: error: `blksize_size' undeclared (first use in |
99 |
this function) |
100 |
compressed_loop.c:684: warning: implicit declaration of function |
101 |
`BLK_DEFAULT_QUEUE' |
102 |
compressed_loop.c:684: warning: passing arg 1 of |
103 |
`blk_queue_make_request' makes pointer from integer without a cast |
104 |
compressed_loop.c:684: warning: passing arg 2 of |
105 |
`blk_queue_make_request' from incompatible pointer type |
106 |
compressed_loop.c:686: error: too many arguments to function `register_disk' |
107 |
compressed_loop.c:688: warning: too many arguments for format |
108 |
compressed_loop.c:689: warning: implicit declaration of function |
109 |
`devfs_register_series' |
110 |
compressed_loop.c:689: error: `DEVFS_FL_DEFAULT' undeclared (first use |
111 |
in this function) |
112 |
compressed_loop.c: In function `cleanup_module': |
113 |
compressed_loop.c:706: warning: implicit declaration of function |
114 |
`devfs_unregister_blkdev' |
115 |
make: *** [compressed_loop.o] Error 1 |
116 |
|
117 |
Alguno de ustedes a podido dar soporte cloop al su kernel?. |
118 |
|
119 |
Gracias por cualquier ayuda.. |
120 |
|
121 |
|
122 |
|
123 |
-- |
124 |
gentoo-user-es@g.o mailing list |