Menu

#2258 zlib1.dll & libz-1.dll discrepancy

INSTALLER
closed
nobody
None
Bug
works-for-me
Aged_issue
False
2017-02-13
2015-05-30
No

After fresh installation*, gcc thinks "zlib1.dll" is missing, however it is just misnamed as "libz-1.dll". By renaming the "libz-1.dll" file to "zlib1.dll" i was able to successfully compile a hello world C program.

*following this guide: http://mingw.org/wiki/InstallationHOWTOforMinGW

Win 7 Home Prem SP 1 x64

C:\Users\admin\Desktop\c>ld -v
GNU ld (GNU Binutils) 2.24

C:\Users\admin\Desktop\c>gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.8.1/lto-wrapper.exe
Target: mingw32
Configured with: ../gcc-4.8.1/configure --prefix=/mingw --host=mingw32 --build=mingw32 --without-pic --enable-shared --enable-static --with-gnu-ld --e
nable-lto --enable-libssp --disable-multilib --enable-languages=c,c++,fortran,objc,obj-c++,ada --disable-sjlj-exceptions --with-dwarf2 --disable-win32
-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --with-gmp=/usr/src/pkg/gmp-5.1.2-1-mingw32-src/bld --with-mpc=/usr/src/pkg/
mpc-1.0.1-1-mingw32-src/bld --with-mpfr= --with-system-zlib --with-gnu-as --enable-decimal-float=yes --enable-libgomp --enable-threads --with-libiconv
-prefix=/mingw32 --with-libintl-prefix=/mingw --disable-bootstrap LDFLAGS=-s CFLAGS=-D_USE_32BIT_TIME_T
Thread model: win32
gcc version 4.8.1 (GCC)

Discussion

  • Keith Marshall

    Keith Marshall - 2017-02-13
    • status: unread --> closed
    • Resolution: none --> works-for-me
    • Category: Unknown --> Aged_issue
     
  • Keith Marshall

    Keith Marshall - 2017-02-13

    MinGW has always distributed zlib, named as libz-1.dll. This is to comply with the request, from the upstream zlib project, that any build other than their own, (and particularly when their utter abortion of a build system has not been used), should be differently named.

    This different name has never been an issue, AFAIK. In any case, the GCC-4.8.1 release had other more serious issues, and has long been supeseded. This is a definite "won't fix"; closing as "aged away".