<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>27343</bug_id>
          
          <creation_ts>2003-08-25 23:57 0000</creation_ts>
          <short_desc>Cant emerge cloop</short_desc>
          <delta_ts>2004-01-15 14:30:10 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mafteah@gentoo.org.il</reporter>
          <assigned_to>stuart@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>mafteah@gentoo.org.il</who>
            <bug_when>2003-08-25 23:57:34 0000</bug_when>
            <thetext># emerge cloop
Calculating dependencies ...done!
&gt;&gt;&gt; emerge (1 of 1) sys-apps/cloop-1.0 to /
&gt;&gt;&gt; md5 src_uri ;-) cloop_1.0-1.tar.gz
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking cloop_1.0-1.tar.gz to /usr/var/tmp/portage/cloop-1.0/work
&gt;&gt;&gt; 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&apos; in declaration of
`EXPORT_NO_SYMBOLS&apos;
compressed_loop.c:45: warning: data definition has no type or storage class
compressed_loop.c:47:41: missing binary operator before &apos;(&apos;
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 &lt;linux/blkdev.h&gt; instead
compressed_loop.c:118: parse error before &quot;devfs_handle&quot;
compressed_loop.c:118: warning: type defaults to `int&apos; in declaration of
`devfs_handle&apos;
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 &quot;OF&quot;
/usr/src/linux/lib/inflate.c:143: parse error before &quot;OF&quot;
/usr/src/linux/lib/inflate.c:144: parse error before &quot;OF&quot;
/usr/src/linux/lib/inflate.c:145: parse error before &quot;OF&quot;
/usr/src/linux/lib/inflate.c:146: parse error before &quot;OF&quot;
/usr/src/linux/lib/inflate.c:147: parse error before &quot;OF&quot;
/usr/src/linux/lib/inflate.c:148: parse error before &quot;OF&quot;
/usr/src/linux/lib/inflate.c:149: parse error before &quot;OF&quot;
/usr/src/linux/lib/inflate.c: In function `huft_build&apos;:
/usr/src/linux/lib/inflate.c:312: warning: implicit declaration of function
`memzero&apos;
/usr/src/linux/lib/inflate.c:315: warning: implicit declaration of function
`Tracecv&apos;
/usr/src/linux/lib/inflate.c:315: `stderr&apos; 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&apos;
/usr/src/linux/lib/inflate.c:423: warning: implicit declaration of function
`huft_free&apos;
/usr/src/linux/lib/inflate.c: In function `huft_free&apos;:
/usr/src/linux/lib/inflate.c:508: warning: implicit declaration of function `free&apos;
/usr/src/linux/lib/inflate.c: In function `inflate_codes&apos;:
/usr/src/linux/lib/inflate.c:536: `outcnt&apos; undeclared (first use in this function)
/usr/src/linux/lib/inflate.c:543: warning: implicit declaration of function
`get_byte&apos;
/usr/src/linux/lib/inflate.c:555: `window&apos; undeclared (first use in this function)
/usr/src/linux/lib/inflate.c:556: warning: implicit declaration of function
`Tracevv&apos;
/usr/src/linux/lib/inflate.c:556: `stderr&apos; 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&apos; undeclared (first use in this function)
/usr/src/linux/lib/inflate.c:559: warning: implicit declaration of function
`flush_window&apos;
/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&apos;:
/usr/src/linux/lib/inflate.c:640: `outcnt&apos; undeclared (first use in this function)
/usr/src/linux/lib/inflate.c:662: `window&apos; undeclared (first use in this function)
/usr/src/linux/lib/inflate.c:663: `WSIZE&apos; 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&apos;:
/usr/src/linux/lib/inflate.c:874: warning: implicit declaration of function `error&apos;
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&apos;:
/usr/src/linux/lib/inflate.c:972: `outcnt&apos; undeclared (first use in this function)
/usr/src/linux/lib/inflate.c:981: warning: implicit declaration of function
`gzip_mark&apos;
/usr/src/linux/lib/inflate.c:983: warning: implicit declaration of function
`gzip_release&apos;
/usr/src/linux/lib/inflate.c:996: `inptr&apos; 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&apos;:
/usr/src/linux/lib/inflate.c:1175: `bytes_out&apos; undeclared (first use in this
function)
compressed_loop.c: In function `get_blksize&apos;:
compressed_loop.c:149: `blksize_size&apos; undeclared (first use in this function)
compressed_loop.c: In function `do_clo_request&apos;:
compressed_loop.c:272: `INIT_REQUEST&apos; undeclared (first use in this function)
compressed_loop.c:273: `CURRENT&apos; undeclared (first use in this function)
compressed_loop.c:274: structure has no member named `rq_dev&apos;
compressed_loop.c:303: `io_request_lock&apos; undeclared (first use in this function)
compressed_loop.c:335: warning: passing arg 1 of `end_request&apos; makes pointer
from integer without a cast
compressed_loop.c:335: too few arguments to function `end_request&apos;
compressed_loop.c:341: too few arguments to function `end_request&apos;
compressed_loop.c: In function `clo_set_file&apos;:
compressed_loop.c:359: structure has no member named `i_dev&apos;
compressed_loop.c: In function `clo_ioctl&apos;:
compressed_loop.c:552: incompatible types in initialization
compressed_loop.c:557: incompatible types in initialization
compressed_loop.c: In function `clo_open&apos;:
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&apos; is deprecated (declared at
/usr/src/linux/include/linux/module.h:482)
compressed_loop.c: In function `clo_close&apos;:
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&apos;
compressed_loop.c:621: warning: `MOD_DEC_USE_COUNT&apos; is deprecated (declared at
/usr/src/linux/include/linux/module.h:494)
compressed_loop.c: In function `init_module&apos;:
compressed_loop.c:655: warning: implicit declaration of function
`devfs_register_blkdev&apos;
compressed_loop.c:662: `blk_size&apos; undeclared (first use in this function)
compressed_loop.c:663: `blksize_size&apos; undeclared (first use in this function)
compressed_loop.c:664: warning: implicit declaration of function `BLK_DEFAULT_QUEUE&apos;
compressed_loop.c:664: warning: passing arg 1 of `blk_init_queue&apos; makes pointer
from integer without a cast
compressed_loop.c:664: warning: passing arg 2 of `blk_init_queue&apos; from
incompatible pointer type
compressed_loop.c:666: too many arguments to function `register_disk&apos;
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&apos;
compressed_loop.c:669: `DEVFS_FL_DEFAULT&apos; undeclared (first use in this function)
compressed_loop.c: In function `cleanup_module&apos;:
compressed_loop.c:686: warning: implicit declaration of function
`devfs_unregister_blkdev&apos;
compressed_loop.c:688: warning: passing arg 1 of `blk_cleanup_queue&apos; 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&apos; defined but not used
/usr/src/linux/lib/inflate.c:1074: warning: `gunzip&apos; 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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stuart@gentoo.org</who>
            <bug_when>2003-08-26 05:06:29 0000</bug_when>
            <thetext>Which Linux kernel does /usr/src/linux point to?  cloop only compiles against 
2.4-series kernels. 
 
Best regards, 
Stu </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mafteah@gentoo.org.il</who>
            <bug_when>2003-08-26 05:38:41 0000</bug_when>
            <thetext>2.4 and 2.6 the same error</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stuart@gentoo.org</who>
            <bug_when>2003-08-26 05:53:39 0000</bug_when>
            <thetext>Hrm - which 2.4 kernel are you using?  I&apos;ve just pointed /usr/src/linux -&gt; 
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 &apos;make config ; 
make dep&apos; before the kernel can be used to compile modules against. 
 
Best regards, 
Stu </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mafteah@gentoo.org.il</who>
            <bug_when>2003-08-26 05:57:42 0000</bug_when>
            <thetext>gentoo-sources-r6</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stuart@gentoo.org</who>
            <bug_when>2003-08-26 06:36:31 0000</bug_when>
            <thetext>Okay, I&apos;ll get gentoo-sources-r6 down and see what&apos;s going on. 
 
In the meantime, I&apos;ve updated the ebuild for cloop-0.68 to check that it is being 
compiled against the 2.4 kernel. 
 
Best regards, 
Stu </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mafteah@gentoo.org.il</who>
            <bug_when>2003-08-26 06:43:01 0000</bug_when>
            <thetext>cloop-0.68 
 
works.... </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stuart@gentoo.org</who>
            <bug_when>2003-08-26 07:17:58 0000</bug_when>
            <thetext>cloop 1.0 works for me too.  Have you enabled the two &apos;zlib&apos; options under the 
Library Routines section of the kernel config?  It seems that they can&apos;t be modules; 
they must be compiled into the kernel image. 
 
I&apos;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&apos;ve rsync&apos;d. 
 
Best regards, 
Stu </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mafteah@gentoo.org.il</who>
            <bug_when>2003-08-26 08:43:55 0000</bug_when>
            <thetext>You were right!
its the zlib...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mafteah@gentoo.org.il</who>
            <bug_when>2003-08-26 08:46:20 0000</bug_when>
            <thetext>btw
dont put it in KV_VERSION_FULL
put it in the dir from the Makefile</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stuart@gentoo.org</who>
            <bug_when>2003-08-26 14:01:06 0000</bug_when>
            <thetext>Sorry, I don&apos;t understand.  cloop&apos;s makefile doesn&apos;t have a &apos;make install&apos; 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&apos;t it? 
 
Where do you think the cloop module should go? 
 
Best regards, 
Stu </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mafteah@gentoo.org.il</who>
            <bug_when>2003-08-27 00:20:42 0000</bug_when>
            <thetext>Look my EXTRAVERSION in the Makefile isn&apos;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 &quot;EXTRAVERSION =&quot;|awk &apos;{print $3}&apos;`
b=`cat /usr/src/linux/Makefile|grep &quot;VERSION =&quot;|grep -v EXTRAVERSION|awk &apos;{print $3}&apos;`
c=`cat /usr/src/linux/Makefile|grep &quot;PATCHLEVEL =&quot;|awk &apos;{print $3}&apos;`
d=`cat /usr/src/linux/Makefile|grep &quot;SUBLEVEL =&quot;|awk &apos;{print $3}&apos;`

echo $b.$c.$d$a</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mafteah@gentoo.org.il</who>
            <bug_when>2003-08-27 00:38:37 0000</bug_when>
            <thetext># 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
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stuart@gentoo.org</who>
            <bug_when>2003-08-27 04:02:32 0000</bug_when>
            <thetext>Okay, I&apos;ve updated the eclass to support local changes to EXTRAVERSION too.  
The eclass displays a warning when the version information in the Makefile doesn&apos;t 
match the directory name.  Look for kernel-mod.eclass v1.3 next time you rsync. 
 
I&apos;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&apos;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&apos;s the most obvious cause of your problems.  If that&apos;s not 
the cause, let me know, and I&apos;ll see if I can build a gentoo-sources-r6 box later this 
week. 
 
Best regards, 
Stu </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mafteah@gentoo.org.il</who>
            <bug_when>2003-08-27 10:00:01 0000</bug_when>
            <thetext>I did all fine
but still i got the errors :|</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>axxackall@yahoo.com</who>
            <bug_when>2004-01-15 02:29:02 0000</bug_when>
            <thetext>How do you enable ZLIB?

In my case (linux-2.4.22) menuconfig doesn&apos;t let me enter to &quot;Library Routine&quot; category. I guess that is the place where ZLIB is located.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stuart@gentoo.org</who>
            <bug_when>2004-01-15 14:30:10 0000</bug_when>
            <thetext>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</thetext>
          </long_desc>
      
    </bug>

</bugzilla>