From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30484 invoked by alias); 20 Jul 2017 01:41:30 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 29993 invoked by uid 89); 20 Jul 2017 01:41:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=mistaken, libz.a, libza, minizip X-HELO: mail-oi0-f66.google.com Received: from mail-oi0-f66.google.com (HELO mail-oi0-f66.google.com) (209.85.218.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 20 Jul 2017 01:41:28 +0000 Received: by mail-oi0-f66.google.com with SMTP id p188so1381631oia.5 for ; Wed, 19 Jul 2017 18:41:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:references:subject :user-agent; bh=knDYQ+f5xzab/ErabIU5KL5SfzgqPtfj/tn+ZPpSz24=; b=f4yZYQNHEsy4bBXsWlfBMzOAXWYWI+ewHe9MKBHZEziZLlyzw7wbw8QZi92wW+QU+B azNbEXurCyMYlNR1NAECqsG8VyVCaHN4Ox/amAtKKksJMbBS/xlNrmJctm205JR3f/9T f9ESFSNCbBNXndMgSeOjVsE3DZeFXwa49cqS+YaDOqHWwulK89b0IhbFHO/TS2/9xJ1u R1d2boXN1d9kTLuF3x9sib8goNsGpU5f6X61Zmqy8T42o0vynx3yqoJCH2le7icCUY/o 9AAweKVNu66+nhNnO7UuWYvYzn3cGwhesLr6V6naYF1sc6wcwyRNfkK7di2RNxjEPtDd 3pRg== X-Gm-Message-State: AIVw111ucRRkRqgSGrIFeNHyagTKEUHVeEZZs/1qttiHfIQsnxdSnfBD hJSYFkbhomeCZZsB X-Received: by 10.202.190.68 with SMTP id o65mr4007829oif.10.1500514885055; Wed, 19 Jul 2017 18:41:25 -0700 (PDT) Received: from SUt ([2605:6000:9fc0:56:813:bad7:424c:e627]) by smtp.gmail.com with ESMTPSA id s69sm12255166ois.15.2017.07.19.18.41.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Jul 2017 18:41:23 -0700 (PDT) Message-ID: <59700a43.482cca0a.52c69.999a@mx.google.com> Date: Thu, 20 Jul 2017 14:07:00 -0000 From: Steven Penny X-Google-Original-From: Steven Penny To: cygwin@cygwin.com References: Subject: Re: Link error with static version of zlib? Content-Type: text/plain; charset=utf8; format=flowed User-Agent: Tryst/2.0.1 (github.com/svnpenn/tryst) X-SW-Source: 2017-07/txt/msg00280.txt.bz2 On Wed, 19 Jul 2017 11:07:42, J wrote: > If I am not mistaken, when selecting the package mingw64-x86_64-zlib > with the installer, it installs the library, which has been compiled > as both a DLL and a static library. > > But it appears that the minizip library included within the zlib > package is only present in DLL form. 1. mingw64-x86_64-zlib package does not include minizip $ sage listfiles mingw64-x86_64-zlib usr/x86_64-w64-mingw32/sys-root/mingw/lib/libz.a usr/x86_64-w64-mingw32/sys-root/mingw/lib/libz.dll.a 2. mingw64-x86_64-zlib doesnt even pull in the minizip package: $ sage-cost.sh mingw64-x86_64-zlib 73,920 desktop-file-utils 52,608 gamin 478,080 gsettings-desktop-schemas 11,592 libfam0 2,885,964 libglib2.0_0 693,532 libxml2 56,616 mingw64-x86_64-pkg-config 109,828 mingw64-x86_64-zlib 56,536 pkg-config 299,232 shared-mime-info 3. The package you are looking for is mingw64-x86_64-minizip, which doesnt get pulled in from anything: $ sage rdepends mingw64-x86_64-minizip mingw64-x86_64-minizip you have to manually install it. 4. You are rigth about the DLL: $ sage listfiles mingw64-x86_64-minizip usr/x86_64-w64-mingw32/sys-root/mingw/bin/libminizip-1.dll usr/x86_64-w64-mingw32/sys-root/mingw/lib/libminizip.dll.a If you want the static version, you need to build it yourself, or post issue here: http://github.com/cygwinports/mingw64-x86_64-zlib Good luck on this though: - http://github.com/cygwinports/mingw64-x86_64-lua/issues/1 - http://github.com/cygwinports/mingw64-x86_64-nghttp2/issues/1 - http://github.com/cygwinports/mingw64-x86_64-pcre/issues/1 - http://github.com/cygwinports/mingw64-x86_64-expat/issues/1 Alternatively you can get it from here: http://repo.msys2.org/mingw/x86_64 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple