Gentoo Archives: gentoo-user-es

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