Menu

#283 Z_SOLO macro in LibZLib.vcxproj

closed
nobody
None
5
2020-08-11
2016-12-30
No

Hi,

I compile sox using Visual Studio 2015; I use the VS projects you provide in the msvc10 folder.
The zlib project defines a macro Z_SOLO. You say in the readme the project worked with zlib-1.2.5.
I tried zlib-1.2.8 and it does not work. sox.exe failed during generation of a spectrogram png.
spectrogram.c has the line: assert(uncompress(font, &font_len, fixed, sizeof(fixed)-1) == Z_OK);
uncompress calls zlib's inflateInit which calls inflateInit2. This function fails when ZSOLO is defined. and the structure passed in is not prepeared properly, which is the case when called by inflateInit.

Can you confirm?
Why do you define Z_SOLO in the first place?

Best,
Bernhard Döbler

Discussion

  • Mans Rullgard

    Mans Rullgard - 2020-08-11
    • status: open --> closed
     
  • Mans Rullgard

    Mans Rullgard - 2020-08-11

    We're no longer pretending to support MSVC.

     

Log in to post a comment.

MongoDB Logo MongoDB