# emerge cloop Calculating dependencies ...done! >>> emerge (1 of 1) sys-apps/cloop-1.0 to / >>> md5 src_uri ;-) cloop_1.0-1.tar.gz >>> Unpacking source... >>> Unpacking cloop_1.0-1.tar.gz to /usr/var/tmp/portage/cloop-1.0/work >>> Source unpacked. gcc -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -s -I. -fno-strict-aliasing -fno-common -fomit-frame-pointer -mpreferred-stack-boundary=2 -march=i386 -D__KERNEL__ -DMODULE -fno-builtin -nostdlib -I/usr/src/linux/include compressed_loop.c -c -o compressed_loop.o gcc -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -s -I. -fno-strict-aliasing -fno-common -fomit-frame-pointer -mpreferred-stack-boundary=2 -march=i386 -c -o create_compressed_fs.o create_compressed_fs.c gcc -o compressloop compressloop.c -lz compressed_loop.c:45: warning: type defaults to `int' in declaration of `EXPORT_NO_SYMBOLS' compressed_loop.c:45: warning: data definition has no type or storage class compressed_loop.c:47:41: missing binary operator before '(' In file included from compressed_loop.c:72: /usr/src/linux/include/linux/blk.h:1:2: warning: #warning this file is obsolete, please use <linux/blkdev.h> instead compressed_loop.c:118: parse error before "devfs_handle" compressed_loop.c:118: warning: type defaults to `int' in declaration of `devfs_handle' compressed_loop.c:118: warning: data definition has no type or storage class In file included from compressed_loop.c:121: /usr/src/linux/lib/inflate.c:117:18: gzip.h: No such file or directory In file included from compressed_loop.c:121: /usr/src/linux/lib/inflate.c:141: parse error before "OF" /usr/src/linux/lib/inflate.c:143: parse error before "OF" /usr/src/linux/lib/inflate.c:144: parse error before "OF" /usr/src/linux/lib/inflate.c:145: parse error before "OF" /usr/src/linux/lib/inflate.c:146: parse error before "OF" /usr/src/linux/lib/inflate.c:147: parse error before "OF" /usr/src/linux/lib/inflate.c:148: parse error before "OF" /usr/src/linux/lib/inflate.c:149: parse error before "OF" /usr/src/linux/lib/inflate.c: In function `huft_build': /usr/src/linux/lib/inflate.c:312: warning: implicit declaration of function `memzero' /usr/src/linux/lib/inflate.c:315: warning: implicit declaration of function `Tracecv' /usr/src/linux/lib/inflate.c:315: `stderr' undeclared (first use in this function) /usr/src/linux/lib/inflate.c:315: (Each undeclared identifier is reported only once /usr/src/linux/lib/inflate.c:315: for each function it appears in.) /usr/src/linux/lib/inflate.c:316: warning: left-hand operand of comma expression has no effect /usr/src/linux/lib/inflate.c:316: warning: left-hand operand of comma expression has no effect /usr/src/linux/lib/inflate.c:316: warning: left-hand operand of comma expression has no effect /usr/src/linux/lib/inflate.c:419: warning: implicit declaration of function `malloc' /usr/src/linux/lib/inflate.c:423: warning: implicit declaration of function `huft_free' /usr/src/linux/lib/inflate.c: In function `huft_free': /usr/src/linux/lib/inflate.c:508: warning: implicit declaration of function `free' /usr/src/linux/lib/inflate.c: In function `inflate_codes': /usr/src/linux/lib/inflate.c:536: `outcnt' undeclared (first use in this function) /usr/src/linux/lib/inflate.c:543: warning: implicit declaration of function `get_byte' /usr/src/linux/lib/inflate.c:555: `window' undeclared (first use in this function) /usr/src/linux/lib/inflate.c:556: warning: implicit declaration of function `Tracevv' /usr/src/linux/lib/inflate.c:556: `stderr' undeclared (first use in this function) /usr/src/linux/lib/inflate.c:556: warning: left-hand operand of comma expression has no effect /usr/src/linux/lib/inflate.c:556: warning: left-hand operand of comma expression has no effect /usr/src/linux/lib/inflate.c:557: `WSIZE' undeclared (first use in this function) /usr/src/linux/lib/inflate.c:559: warning: implicit declaration of function `flush_window' /usr/src/linux/lib/inflate.c:559: warning: left-hand operand of comma expression has no effect /usr/src/linux/lib/inflate.c:588: warning: left-hand operand of comma expression has no effect /usr/src/linux/lib/inflate.c:588: warning: left-hand operand of comma expression has no effect /usr/src/linux/lib/inflate.c:588: warning: left-hand operand of comma expression has no effect /usr/src/linux/lib/inflate.c:604: warning: left-hand operand of comma expression has no effect /usr/src/linux/lib/inflate.c:604: warning: left-hand operand of comma expression has no effect /usr/src/linux/lib/inflate.c:608: warning: left-hand operand of comma expression has no effect In file included from compressed_loop.c:121: /usr/src/linux/lib/inflate.c: In function `inflate_stored': /usr/src/linux/lib/inflate.c:640: `outcnt' undeclared (first use in this function) /usr/src/linux/lib/inflate.c:662: `window' undeclared (first use in this function) /usr/src/linux/lib/inflate.c:663: `WSIZE' undeclared (first use in this function) /usr/src/linux/lib/inflate.c:665: warning: left-hand operand of comma expression has no effect /usr/src/linux/lib/inflate.c: In function `inflate_dynamic': /usr/src/linux/lib/inflate.c:874: warning: implicit declaration of function `error' gcc -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -s -I. -fno-strict-aliasing -fno-common -fomit-frame-pointer -mpreferred-stack-boundary=2 -march=i386 -c -o extract_compressed_fs.o extract_compressed_fs.c /usr/src/linux/lib/inflate.c: In function `inflate': /usr/src/linux/lib/inflate.c:972: `outcnt' undeclared (first use in this function) /usr/src/linux/lib/inflate.c:981: warning: implicit declaration of function `gzip_mark' /usr/src/linux/lib/inflate.c:983: warning: implicit declaration of function `gzip_release' /usr/src/linux/lib/inflate.c:996: `inptr' undeclared (first use in this function) /usr/src/linux/lib/inflate.c:1000: warning: left-hand operand of comma expression has no effect /usr/src/linux/lib/inflate.c: In function `gunzip': /usr/src/linux/lib/inflate.c:1175: `bytes_out' undeclared (first use in this function) compressed_loop.c: In function `get_blksize': compressed_loop.c:149: `blksize_size' undeclared (first use in this function) compressed_loop.c: In function `do_clo_request': compressed_loop.c:272: `INIT_REQUEST' undeclared (first use in this function) compressed_loop.c:273: `CURRENT' undeclared (first use in this function) compressed_loop.c:274: structure has no member named `rq_dev' compressed_loop.c:303: `io_request_lock' undeclared (first use in this function) compressed_loop.c:335: warning: passing arg 1 of `end_request' makes pointer from integer without a cast compressed_loop.c:335: too few arguments to function `end_request' compressed_loop.c:341: too few arguments to function `end_request' compressed_loop.c: In function `clo_set_file': compressed_loop.c:359: structure has no member named `i_dev' compressed_loop.c: In function `clo_ioctl': compressed_loop.c:552: incompatible types in initialization compressed_loop.c:557: incompatible types in initialization compressed_loop.c: In function `clo_open': compressed_loop.c:582: incompatible types in initialization compressed_loop.c:588: incompatible types in initialization compressed_loop.c:600: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/src/linux/include/linux/module.h:482) compressed_loop.c: In function `clo_close': compressed_loop.c:610: incompatible types in initialization compressed_loop.c:616: incompatible types in initialization compressed_loop.c:619: warning: implicit declaration of function `fsync_dev' compressed_loop.c:621: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/src/linux/include/linux/module.h:494) compressed_loop.c: In function `init_module': compressed_loop.c:655: warning: implicit declaration of function `devfs_register_blkdev' compressed_loop.c:662: `blk_size' undeclared (first use in this function) compressed_loop.c:663: `blksize_size' undeclared (first use in this function) compressed_loop.c:664: warning: implicit declaration of function `BLK_DEFAULT_QUEUE' compressed_loop.c:664: warning: passing arg 1 of `blk_init_queue' makes pointer from integer without a cast compressed_loop.c:664: warning: passing arg 2 of `blk_init_queue' from incompatible pointer type compressed_loop.c:666: too many arguments to function `register_disk' compressed_loop.c:668: warning: null format string compressed_loop.c:668: warning: too many arguments for format compressed_loop.c:669: warning: implicit declaration of function `devfs_register_series' compressed_loop.c:669: `DEVFS_FL_DEFAULT' undeclared (first use in this function) compressed_loop.c: In function `cleanup_module': compressed_loop.c:686: warning: implicit declaration of function `devfs_unregister_blkdev' compressed_loop.c:688: warning: passing arg 1 of `blk_cleanup_queue' makes pointer from integer without a cast gcc -o create_compressed_fs create_compressed_fs.o -lz /usr/src/linux/include/linux/blkdev.h: At top level: /usr/src/linux/lib/inflate.c:1027: warning: `makecrc' defined but not used /usr/src/linux/lib/inflate.c:1074: warning: `gunzip' defined but not used make: *** [compressed_loop.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: sys-apps/cloop-1.0 failed. !!! Function src_compile, Line 25, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. 2. 3.
Which Linux kernel does /usr/src/linux point to? cloop only compiles against 2.4-series kernels. Best regards, Stu
2.4 and 2.6 the same error
Hrm - which 2.4 kernel are you using? I've just pointed /usr/src/linux -> linux-2.4.21 (vanilla-sources), and it compiled and installed just fine. It might be enough to just unpack the sources. You might need to 'make config ; make dep' before the kernel can be used to compile modules against. Best regards, Stu
gentoo-sources-r6
Okay, I'll get gentoo-sources-r6 down and see what's going on. In the meantime, I've updated the ebuild for cloop-0.68 to check that it is being compiled against the 2.4 kernel. Best regards, Stu
cloop-0.68 works....
cloop 1.0 works for me too. Have you enabled the two 'zlib' options under the Library Routines section of the kernel config? It seems that they can't be modules; they must be compiled into the kernel image. I've added a new version of the cloop-1.0 ebuild which checks for this, and throws an error. Please test it, and let me know how you get on. Look for v1.2 of the cloop-1.0 ebuild after you've rsync'd. Best regards, Stu
You were right! its the zlib...
btw dont put it in KV_VERSION_FULL put it in the dir from the Makefile
Sorry, I don't understand. cloop's makefile doesn't have a 'make install' target. The modules for gentoo-sources-r6 go in /lib/modules/2.4.20-gentoo-r6, which is the same as /lib/modules/KV_FULL_VERSION, isn't it? Where do you think the cloop module should go? Best regards, Stu
Look my EXTRAVERSION in the Makefile isn't gentoo-r6 but it was installed there. I think you need to get the EXTRAVERSION from the Makefile a=`cat /usr/src/linux/Makefile|grep "EXTRAVERSION ="|awk '{print $3}'` b=`cat /usr/src/linux/Makefile|grep "VERSION ="|grep -v EXTRAVERSION|awk '{print $3}'` c=`cat /usr/src/linux/Makefile|grep "PATCHLEVEL ="|awk '{print $3}'` d=`cat /usr/src/linux/Makefile|grep "SUBLEVEL ="|awk '{print $3}'` echo $b.$c.$d$a
# modprobe cloop /lib/modules/2.4.20-mafteah/misc/cloop.o: unresolved symbol zlib_inflate_workspacesize_Rce5ac24f /lib/modules/2.4.20-mafteah/misc/cloop.o: unresolved symbol zlib_inflateEnd_R9ef45f92 /lib/modules/2.4.20-mafteah/misc/cloop.o: unresolved symbol zlib_inflate_R64cf8602 /lib/modules/2.4.20-mafteah/misc/cloop.o: unresolved symbol zlib_inflateInit__R456e911d /lib/modules/2.4.20-mafteah/misc/cloop.o: unresolved symbol zlib_inflateReset_Ref76d642 /lib/modules/2.4.20-mafteah/misc/cloop.o: insmod /lib/modules/2.4.20-mafteah/misc/cloop.o failed /lib/modules/2.4.20-mafteah/misc/cloop.o: insmod cloop failed
Okay, I've updated the eclass to support local changes to EXTRAVERSION too. The eclass displays a warning when the version information in the Makefile doesn't match the directory name. Look for kernel-mod.eclass v1.3 next time you rsync. I've just installed cloop 1.0 on vanilla-sources 2.4.21, and used it to mount the live filing system from a very recent KNOPPIX CD. It works for me. I don't have a machine that I can boot into gentoo-sources-r6, so I cannot test this locally right now. Have you re-installed your kernel, and rebooted, since enabling the zlib options? Sorry - it's the most obvious cause of your problems. If that's not the cause, let me know, and I'll see if I can build a gentoo-sources-r6 box later this week. Best regards, Stu
I did all fine but still i got the errors :|
How do you enable ZLIB? In my case (linux-2.4.22) menuconfig doesn't let me enter to "Library Routine" category. I guess that is the place where ZLIB is located.
Have you read /usr/src/linux-2.4.22/lib/Config.in? It has your answers. To even get the option of switching on zlib, you need to have one of the following switched on in your kernel: * Compressed ROM FS * PPP w/ Deflate * Crypto w/ Deflate * Journalling Flash File System v2 (just switching on v1 will not do) * Compressed ISOFS support Best regards, Stu