[Mono-list] SharpZipLib and NCvsLib compiles under mono.

Erik Bågfors erik@bagfors.nu
31 Jul 2002 23:38:51 +0200


Hi all.

Just wanted you all to know that both SharpZipLib and NCvsLib (from
SharpDevelop fame) compiles under mono/mcs.  I had to do some small
changes in SharpZipLib to get around bugs #28189 and #28407. But that's
not rocket science :).  I also had to change NCvsLib to use SharpZipLib
instead of NZipLib (the old name of SharpZipLib, NCvsLib still used that
old name, I guess I could have gotten cvs-code instead of zip-files)

The resulting dll's seams to have some errors in them though

------------------

[bagfors@pitr viewzipfile]$ pwd
/home/bagfors/usr/src/SharpZipLib/samples/cs/viewzipfile

# SharpZipLib.dll compiled by mcs.
[bagfors@pitr viewzipfile]$ mcs -r ./SharpZipLib.dll ViewZipFile.cs
Compilation succeeded

[bagfors@pitr viewzipfile]$ mono ViewZipFile.exe
../../../../030SharpZipLib.zip Name : Changes.txt
Date : Sunday, 14 July 2002 09:37:32
Size : (-1, if the size information is in the footer)
      Uncompressed : 2485
      Compressed   : 1193
Show Entry (y/n) ?n

Name : COPYING.txt
Date : Friday, 07 December 2001 16:49:48
Size : (-1, if the size information is in the footer)
      Uncompressed : 18349
      Compressed   : 6956
Show Entry (y/n) ?y
		    GNU GENERAL PUBLIC LICENSE
		       Version 2, June 1991

 Copyright (C) 1989, 1991 Free Software Foundation, Inc.

[THE REST OF THE FILE]
** (process:3099): WARNING **: unhandled exception
ICSharpCode.SharpZipLib.ZipException: "System.FormatException
broken uncompressed blockSystem.FormatExceptionin <0x002bb>
ICSharpCode.SharpZipLib.Zip.Compression.Inflater:Decode ()
in <0x000e0> ICSharpCode.SharpZipLib.Zip.Compression.Inflater:Inflate
(byte[],int,int)
in <0x00053>
ICSharpCode.SharpZipLib.Zip.Compression.Streams.InflaterInputStream:Read
(byte[],int,int)
"
in <0x000a4>
ICSharpCode.SharpZipLib.Zip.Compression.Streams.InflaterInputStream:Read
(byte[],int,int)
in <0x00121> ICSharpCode.SharpZipLib.Zip.ZipInputStream:Read
(byte[],int,int)
in <0x002c4> .MainClass:Main (string[])


With the binary dll-download from the SharpZipLib website:

[bagfors@pitr viewzipfile]$ mcs -r ./SharpZipLib.dll ViewZipFile.cs
Compilation succeeded
[bagfors@pitr viewzipfile]$ mono ViewZipFile.exe
../../../../030SharpZipLib.zip Name : Changes.txt
Date : Sunday, 14 July 2002 09:37:32
Size : (-1, if the size information is in the footer)
      Uncompressed : 2485
      Compressed   : 1193
Show Entry (y/n) ?n

Name : COPYING.txt
Date : Friday, 07 December 2001 16:49:48
Size : (-1, if the size information is in the footer)
      Uncompressed : 18349
      Compressed   : 6956
Show Entry (y/n) ?y
		    GNU GENERAL PUBLIC LICENSE
		       Version 2, June 1991

 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
                       59 Temple Place, Suite 330, Boston, MA 
02111-1307  USA
[REST OF FILE]

Name : Documentation.chm
Date : Monday, 15 July 2002 10:21:12
Size : (-1, if the size information is in the footer)
      Uncompressed : 321684
      Compressed   : 266795
Show Entry (y/n) ?

That works alot better.

In NCvsLib I didn't even get the test-program running.

Still.  It's VERY close to working.  You guys have done an incredible
job.  I hope to have #Develop running some time in the future (maybe
using gtk# instead of winforms)

/Erik