All of lore.kernel.org
 help / color / mirror / Atom feed
* zlib support...
@ 2005-10-30 22:21 David Masover
  2005-10-31  2:00 ` Jake Maciejewski
  2005-11-01 16:47 ` Edward Shishkin
  0 siblings, 2 replies; 4+ messages in thread
From: David Masover @ 2005-10-30 22:21 UTC (permalink / raw)
  To: reiserfs-list

[-- Attachment #1: Type: text/plain, Size: 2502 bytes --]

Compiling a 2.6.12.5 <http://2.6.12.5> kernel on my Powerbook, I discovered
something odd. Reiser4 (vanilla patch) was insisting on being a module.

Alright, why does it still depend on CONFIG_ZLIB_INFLATE and
CONFIG_ZLIB_DEFLATE, even when the cryptocompress plugin isn't being used at
all, and is in fact nonfunctional?

Anyway, I can live with a little RAM bloat, but for some reason, I couldn't
find the options to enable any zlib in the kernel. I could enable INFLATE
support by forcing something I know uses it to be compiled in -- compressed
isofs support. But I couldn't find something sane to force DEFLATE on.
DEFLATE defaults to being a module, and INFLATE seems to follow whatever I
set isofs support to be -- if I want INFLATE compiled in, to compile Reiser4
in, I have to compile isofs in.

Still workable, but very, very stupid, especially considering zlib is never
actually used, only compiled against and depended on.

Ok, first actual bug:
I could try to compile Reiser4 in at this point, but the final link fails,
because it does need deflate support, even though it doesn't depend on
CONFIG_ZLIB_DEFLATE.
Solution: Either remove cryptocompress until it works, or depend on
CONFIG_ZLIB_DEFLATE.

Now, second actual bug, not actually your fault:
Neither DEFLATE nor INFLATE can be configured manually, yet you depend on
one (or both) of them, without actually setting them. Thus, if
CONFIG_ZLIB_DEFLATE is compiled as a module, Reiser4 must be a module, and
there's no way to change that from inside menuconfig. Editing the .config
file manually doesn't work.
Solution: Make it possible to select INFLATE and DEFLATE support manually,
just like CRC32 and other library functions, or have Reiser4 enable them
when it needs them, instead of insisting on being a module.

The real surprise is, this problem only started happening on my PPC system.
I'm not sure if it's a config script glitch, an architecture-specific
problem, or something else entirely. But then, my PPC is the only
2.6.12system I currently run that tries to compile in Reiser4 support
-- the
desktop loads it from a ramdisk, because it needs the ramdisk anyway, and
the other amd64 box is running 2.6.13. Maybe configure is supposed to work
this way, but the dependencies are wrong.



I realize this is all probably old news, but I'm sending it anyway, because
maybe it's not. I'm sending it from a gmail address because I don't have
networking on said Powerbook yet.

[-- Attachment #2: Type: text/html, Size: 2671 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: zlib support...
  2005-10-30 22:21 zlib support David Masover
@ 2005-10-31  2:00 ` Jake Maciejewski
  2005-10-31  2:16   ` David Masover
  2005-11-01 16:47 ` Edward Shishkin
  1 sibling, 1 reply; 4+ messages in thread
From: Jake Maciejewski @ 2005-10-31  2:00 UTC (permalink / raw)
  To: ninja; +Cc: reiserfs-list

On Sun, 2005-10-30 at 16:21 -0600, David Masover wrote:
> Compiling a 2.6.12.5 kernel on my Powerbook, I discovered something
> odd.  Reiser4 (vanilla patch) was insisting on being a module.
> 
> Alright, why does it still depend on CONFIG_ZLIB_INFLATE and
> CONFIG_ZLIB_DEFLATE, even when the cryptocompress plugin isn't being
> used at all, and is in fact nonfunctional?
> 
> Anyway, I can live with a little RAM bloat, but for some reason, I
> couldn't find the options to enable any zlib in the kernel.  I could
> enable INFLATE support by forcing something I know uses it to be
> compiled in -- compressed isofs support.  But I couldn't find
> something sane to force DEFLATE on.  DEFLATE defaults to being a
> module, and INFLATE seems to follow whatever I set isofs support to be
> -- if I want INFLATE compiled in, to compile Reiser4 in, I have to
> compile isofs in.
> 
> Still workable, but very, very stupid, especially considering zlib is
> never actually used, only compiled against and depended on.
> 
> Ok, first actual bug:
> I could try to compile Reiser4 in at this point, but the final link
> fails, because it does need deflate support, even though it doesn't
> depend on CONFIG_ZLIB_DEFLATE.
> Solution:  Either remove cryptocompress until it works, or depend on
> CONFIG_ZLIB_DEFLATE.
> 
> Now, second actual bug, not actually your fault:
> Neither DEFLATE nor INFLATE can be configured manually, yet you depend
> on one (or both) of them, without actually setting them.  Thus, if
> CONFIG_ZLIB_DEFLATE is compiled as a module, Reiser4 must be a module,
> and there's no way to change that from inside menuconfig.  Editing
> the .config file manually doesn't work.
> Solution:  Make it possible to select INFLATE and DEFLATE support
> manually, just like CRC32 and other library functions, or have Reiser4
> enable them when it needs them, instead of insisting on being a
> module.
> 
> The real surprise is, this problem only started happening on my PPC
> system.  I'm not sure if it's a config script glitch, an
> architecture-specific problem, or something else entirely.  But then,
> my PPC is the only 2.6.12 system I currently run that tries to compile
> in Reiser4 support -- the desktop loads it from a ramdisk, because it
> needs the ramdisk anyway, and the other amd64 box is running 2.6.13.
> Maybe configure is supposed to work this way, but the dependencies are
> wrong.

Have you actually gotten reiser4 to work on PPC? I can't even mount
reiser4 filesystems on PCC. I've tried reporting it twice, but as far as
I know no effort has been made to fix the problem.

> I realize this is all probably old news, but I'm sending it anyway,
> because maybe it's not.  I'm sending it from a gmail address because I
> don't have networking on said Powerbook yet.
-- 
Jake Maciejewski <maciejej@msoe.edu>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: zlib support...
  2005-10-31  2:00 ` Jake Maciejewski
@ 2005-10-31  2:16   ` David Masover
  0 siblings, 0 replies; 4+ messages in thread
From: David Masover @ 2005-10-31  2:16 UTC (permalink / raw)
  To: Jake Maciejewski; +Cc: reiserfs-list

Jake Maciejewski wrote:

> Have you actually gotten reiser4 to work on PPC? I can't even mount
> reiser4 filesystems on PCC. I've tried reporting it twice, but as far as
> I know no effort has been made to fix the problem.

Not yet, but I haven't gotten it to boot yet, either.  And that's not a
Reiser4 problem, as I'm trying to use XFS.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: zlib support...
  2005-10-30 22:21 zlib support David Masover
  2005-10-31  2:00 ` Jake Maciejewski
@ 2005-11-01 16:47 ` Edward Shishkin
  1 sibling, 0 replies; 4+ messages in thread
From: Edward Shishkin @ 2005-11-01 16:47 UTC (permalink / raw)
  To: ninja; +Cc: reiserfs-list

David Masover wrote:

> Compiling a 2.6.12.5 <http://2.6.12.5> kernel on my Powerbook, I 
> discovered something odd.


hmm.. this is an old bug.
I put the fix for 2.6.12 here:
ftp://ftp.namesys.com/pub/reiser4-for-2.6/2.6.12/zlib_fix_dependence.patch

Thanks,
Edward.

>   Reiser4 (vanilla patch) was insisting on being a module.
>
> Alright, why does it still depend on CONFIG_ZLIB_INFLATE and 
> CONFIG_ZLIB_DEFLATE, even when the cryptocompress plugin isn't being 
> used at all, and is in fact nonfunctional?
>
> Anyway, I can live with a little RAM bloat, but for some reason, I 
> couldn't find the options to enable any zlib in the kernel.  I could 
> enable INFLATE support by forcing something I know uses it to be 
> compiled in -- compressed isofs support.  But I couldn't find 
> something sane to force DEFLATE on.  DEFLATE defaults to being a 
> module, and INFLATE seems to follow whatever I set isofs support to be 
> -- if I want INFLATE compiled in, to compile Reiser4 in, I have to 
> compile isofs in.
>
> Still workable, but very, very stupid, especially considering zlib is 
> never actually used, only compiled against and depended on.
>
> Ok, first actual bug:
> I could try to compile Reiser4 in at this point, but the final link 
> fails, because it does need deflate support, even though it doesn't 
> depend on CONFIG_ZLIB_DEFLATE.
> Solution:  Either remove cryptocompress until it works, or depend on 
> CONFIG_ZLIB_DEFLATE.
>
> Now, second actual bug, not actually your fault:
> Neither DEFLATE nor INFLATE can be configured manually, yet you depend 
> on one (or both) of them, without actually setting them.  Thus, if 
> CONFIG_ZLIB_DEFLATE is compiled as a module, Reiser4 must be a module, 
> and there's no way to change that from inside menuconfig.  Editing the 
> .config file manually doesn't work.
> Solution:  Make it possible to select INFLATE and DEFLATE support 
> manually, just like CRC32 and other library functions, or have Reiser4 
> enable them when it needs them, instead of insisting on being a module.
>
> The real surprise is, this problem only started happening on my PPC 
> system.  I'm not sure if it's a config script glitch, an 
> architecture-specific problem, or something else entirely.  But then, 
> my PPC is the only 2.6.12 system I currently run that tries to compile 
> in Reiser4 support -- the desktop loads it from a ramdisk, because it 
> needs the ramdisk anyway, and the other amd64 box is running 2.6.13.  
> Maybe configure is supposed to work this way, but the dependencies are 
> wrong.
>
>
>
> I realize this is all probably old news, but I'm sending it anyway, 
> because maybe it's not.  I'm sending it from a gmail address because I 
> don't have networking on said Powerbook yet.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-01 16:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-30 22:21 zlib support David Masover
2005-10-31  2:00 ` Jake Maciejewski
2005-10-31  2:16   ` David Masover
2005-11-01 16:47 ` Edward Shishkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.