"fatal error: Internal error: spill_at_range()"

Started by TbSE, November 01, 2010, 06:19:35 PM

Previous topic - Next topic

TbSE

I am using: Version 6.50.4 Release Candidate #2.

When I try to build the zlib dll, in the IDE, I get:
Building adler32.obj.
Building compress.obj.
Building crc32.obj.
Building deflate.obj.
Building gzclose.obj.
Building gzlib.obj.
Building gzread.obj.
Building gzwrite.obj.
Building infback.obj.
Building inffast.obj.
Building inflate.obj.
E:\src\zlib-1.2.5\inflate.c(1406): fatal error: Internal error: spill_at_range().
*** Error code: 1 ***
Done.


I've added a .zip file of a test project, with the inflate.c and the needed header files, that reproduces the error.

Tamir.

TimoVJL

And this with extracted code:
typedef struct {
    unsigned char op;
    unsigned char bits;
    unsigned short val;
} code;

typedef enum {
    CODES,
    LENS,
    DISTS
} codetype;

int inflate_table(codetype type, unsigned short *lens, unsigned codes, code * *table, unsigned *bits, unsigned short *work);

const char inflate_copyright[] =
   " inflate 1.2.5 Copyright 1995-2010 Mark Adler ";

int inflate_table(type, lens, codes, table, bits, work)
codetype type;
unsigned short *lens;
unsigned codes;
code * *table;
unsigned *bits;
unsigned short *work;
{
    return 0;
}

inftrees-1.c(25): error #2120: Redeclaration of 'inflate_table', previously declared at C:\code\PellesC\test_6.5\zlib_test\inftrees-1.c(13); expected 'int __cdecl function(codetype, unsigned short int *, unsigned int, code * *, unsigned int *, unsigned short int *)' but found 'int __cdecl function()'.
*** Error code: 1 ***
May the source be with you

Pelle

I can reproduce it, maybe even fix it... we'll see...
/Pelle

TimoVJL

May the source be with you