delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/07/19/21:41:47

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:to:references:subject
:content-type; q=dns; s=default; b=IFmRMNhu5+ibJGdPssl/MiVcOkGOH
lzjcaeYMYCn25pAT8nQBoCUR0+/4ssy8fepY1kond43uf1dkhBDtFYMAmmSRkzUF
dWMoVOWGmfNWNiII8xv84Dw4RwrfwckwnLmf6kAf4NA+PGIzlWhVB/1k5xgOudmN
se0N/YzW9wy3A8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:to:references:subject
:content-type; s=default; bh=30RA3eywTc3xS0AQTmxu1Zh3kBI=; b=VIx
qIfwVFH23KdtFBYHMjWjRToHXxb7bGs5mOzESku7PHw+UPhNC5Qe1qgR/be3ncPr
SxyROVwS0cfaewdYiFrTNXQTQoINV6O1UkxVtAvNKuD/Kq2cAZzMzvVofIX97G6n
G2iySOEhmrN4/g6Bfco0eMXVhJTHtE4b3y7Jae2k=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
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)
Message-ID: <59700a43.482cca0a.52c69.999a@mx.google.com>
Date: Wed, 19 Jul 2017 18:41:23 -0700 (PDT)
From: Steven Penny <svnpenn AT gmail DOT com>
X-Google-Original-From: Steven Penny
To: cygwin AT cygwin DOT com
References: <CAM9TqJ75_0nyEn-2bpGUP90rJCD3bUmZKEj_6+fRh77jtkDSxQ AT mail DOT gmail DOT com>
Subject: Re: Link error with static version of zlib?
User-Agent: Tryst/2.0.1 (github.com/svnpenn/tryst)

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019