On Wed, Mar 19, 2008 at 9:03 AM, Luis Lavena <[EMAIL PROTECTED]> wrote:
>
> On Wed, Mar 19, 2008 at 11:58 AM, Berger, Daniel
> <[EMAIL PROTECTED]> wrote:
> >
> >
> > Here's the code in question from zlib.c:
> >
> > static void
> > gzfile_free(gz)
> > struct gzfile *gz;
> > {
> > struct zstream *z = &gz->z;
> >
> > if (ZSTREAM_IS_READY(z)) {
> > if (z->func == &deflate_funcs) {
> > finalizer_warn("Zlib::GzipWriter object must be closed
> > explicitly.");
> > }
> > zstream_finalize(z);
> > }
> > free(gz);
> > }
> >
> > static void
> > finalizer_warn(msg)
> > const char *msg;
> > {
> > fprintf(stderr, "zlib(finalizer): %s\n", msg);
> > }
> >
> > static void
> > zstream_finalize(z)
> > struct zstream *z;
> > {
> > int err = z->func->end(&z->stream);
> > if (err == Z_STREAM_ERROR)
> > finalizer_warn("the stream state was inconsistent.");
> > if (err == Z_DATA_ERROR)
> > finalizer_warn("the stream was freed prematurely.");
> > }
> >
> > Nothing jumps out at me at the moment. Anyone else?
> >
>
> That warning is shown before but is not related to the segmentation
> fault, at least, not directly. I'll try to debug it later today to see
> what is happening down there :-P
See if you can fix these warnings while you're down there:
"zlib.c", line 297: warning: argument #2 is incompatible with prototype:
prototype: pointer to const unsigned char : "zlib.c", line 272
argument : pointer to char
"zlib.c", line 450: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"zlib.c", line 469: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"zlib.c", line 482: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"zlib.c", line 488: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"zlib.c", line 503: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"zlib.c", line 523: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"zlib.c", line 567: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"zlib.c", line 718: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"zlib.c", line 722: warning: argument #2 is incompatible with prototype:
prototype: pointer to const char : "zlib.c", line 596
argument : pointer to unsigned char
"zlib.c", line 723: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"zlib.c", line 754: warning: argument #2 is incompatible with prototype:
prototype: pointer to const char : "zlib.c", line 596
argument : pointer to unsigned char
"zlib.c", line 767: warning: argument #2 is incompatible with prototype:
prototype: pointer to const char : "zlib.c", line 596
argument : pointer to unsigned char
"zlib.c", line 782: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"zlib.c", line 788: warning: argument #2 is incompatible with prototype:
prototype: pointer to const char : "zlib.c", line 596
argument : pointer to unsigned char
"zlib.c", line 793: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "../../intern.h", line 404
argument : pointer to unsigned char
"zlib.c", line 804: warning: argument #2 is incompatible with prototype:
prototype: pointer to const char : "zlib.c", line 596
argument : pointer to unsigned char
"zlib.c", line 808: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "../../intern.h", line 404
argument : pointer to unsigned char
"zlib.c", line 972: warning: argument #2 is incompatible with prototype:
prototype: pointer to unsigned char : "zlib.c", line 708
argument : pointer to char
"zlib.c", line 1205: warning: argument #2 is incompatible with prototype:
prototype: pointer to unsigned char : "zlib.c", line 708
argument : pointer to char
"zlib.c", line 1265: warning: argument #2 is incompatible with prototype:
prototype: pointer to unsigned char : "zlib.c", line 708
argument : pointer to char
"zlib.c", line 1270: warning: argument #2 is incompatible with prototype:
prototype: pointer to unsigned char : "zlib.c", line 708
argument : pointer to char
"zlib.c", line 1344: warning: argument #2 is incompatible with prototype:
prototype: pointer to unsigned char : "zlib.c", line 708
argument : pointer to char
"zlib.c", line 1405: warning: argument #2 is incompatible with prototype:
prototype: pointer to const unsigned char :
"/usr/include/zlib.h", line 444
argument : pointer to char
"zlib.c", line 1470: warning: argument #2 is incompatible with prototype:
prototype: pointer to unsigned char : "zlib.c", line 708
argument : pointer to char
"zlib.c", line 1471: warning: argument #2 is incompatible with prototype:
prototype: pointer to unsigned char : "zlib.c", line 708
argument : pointer to char
"zlib.c", line 1522: warning: argument #2 is incompatible with prototype:
prototype: pointer to unsigned char : "zlib.c", line 708
argument : pointer to char
"zlib.c", line 1527: warning: argument #2 is incompatible with prototype:
prototype: pointer to unsigned char : "zlib.c", line 708
argument : pointer to char
"zlib.c", line 1623: warning: argument #2 is incompatible with prototype:
prototype: pointer to unsigned char : "zlib.c", line 774
argument : pointer to char
"zlib.c", line 1667: warning: argument #2 is incompatible with prototype:
prototype: pointer to const unsigned char :
"/usr/include/zlib.h", line 553
argument : pointer to char
"zlib.c", line 1961: warning: argument #2 is incompatible with prototype:
prototype: pointer to const char : "zlib.c", line 495
argument : pointer to unsigned char
"zlib.c", line 1983: warning: argument #2 is incompatible with prototype:
prototype: pointer to const char : "zlib.c", line 495
argument : pointer to unsigned char
"zlib.c", line 1999: warning: assignment type mismatch:
pointer to const unsigned char "=" pointer to char
"zlib.c", line 2037: warning: argument #1 is incompatible with prototype:
prototype: pointer to const unsigned char : "zlib.c", line 1899
argument : pointer to char
"zlib.c", line 2075: warning: argument #1 is incompatible with prototype:
prototype: pointer to const unsigned char : "zlib.c", line 1909
argument : pointer to char
"zlib.c", line 2076: warning: argument #1 is incompatible with prototype:
prototype: pointer to const unsigned char : "zlib.c", line 1909
argument : pointer to char
"zlib.c", line 2123: warning: argument #2 is incompatible with prototype:
prototype: pointer to unsigned char : "zlib.c", line 708
argument : pointer to char
"zlib.c", line 2140: warning: argument #2 is incompatible with prototype:
prototype: pointer to const unsigned char :
"/usr/include/zlib.h", line 838
argument : pointer to char
"zlib.c", line 2215: warning: argument #2 is incompatible with prototype:
prototype: pointer to unsigned char : "zlib.c", line 708
argument : pointer to char
"zlib.c", line 2762: warning: argument #2 is incompatible with prototype:
prototype: pointer to unsigned char : "zlib.c", line 708
argument : pointer to char
"zlib.c", line 2784: warning: argument #2 is incompatible with prototype:
prototype: pointer to unsigned char : "zlib.c", line 2091
argument : pointer to char
"zlib.c", line 2798: warning: argument #2 is incompatible with prototype:
prototype: pointer to unsigned char : "zlib.c", line 2091
argument : pointer to char
Regards,
Dan
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers