From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26069 invoked by alias); 25 Jul 2017 11:57:53 -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 19937 invoked by uid 89); 25 Jul 2017 11:57:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=gervais, Gervais, jeanclaude, jean-claude X-HELO: mail-io0-f173.google.com Received: from mail-io0-f173.google.com (HELO mail-io0-f173.google.com) (209.85.223.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 25 Jul 2017 11:57:47 +0000 Received: by mail-io0-f173.google.com with SMTP id c74so54609938iod.4 for ; Tue, 25 Jul 2017 04:57:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=IrymyoLPoOPDYxvLxcfsNhE+JGMRcp1+sFay/02o8kM=; b=RS2KAGkbhFEoPtfYFkJci2+o8ADHYgsxzM8TBWByIPQpErraSCTWA6/Sk6r2456DFG 4Ch1+mIZcm7prycSJiSR6YQzppFFvTA6g1sFLOH0eRlCqD+OxMBEprY9/3PmDEjAFESC 33x751KAT0oT9iq1iq4w08BpVGl7/Kbg5ziWTXuMziJkuqjPVrX7JR9B/9cIyJFfN8Pk ctKNj0OkXCtx3oHNRG8Qpd8JyKNWOSPugIs+M2eSndVXMVuDrBTCh9IXwd86gtYeo9az sMZ1CXJuaNsRJD6jvnCvlqeU6mgbBeEZr1axcrK+OphXh1glTOaxwxPljxFhE6NWrijr 9X4Q== X-Gm-Message-State: AIVw111B2J03ffCrCpGSDBh7VSARxugK50sDB8zdyGHylViSZwGBsS2A u2XObIhK/34Glz3I X-Received: by 10.107.20.130 with SMTP id 124mr17213339iou.94.1500983865372; Tue, 25 Jul 2017 04:57:45 -0700 (PDT) Received: from [192.168.0.6] (d4-50-42-50.try.wideopenwest.com. [50.4.50.42]) by smtp.gmail.com with ESMTPSA id w6sm5032764itb.2.2017.07.25.04.57.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jul 2017 04:57:44 -0700 (PDT) Subject: Re: Link error with static version of zlib? To: cygwin@cygwin.com References: <003a8d3c-691b-738f-96e7-ec3bf53b82a9@t-online.de> <59715271.482cca0a.8fce9.85d2@mx.google.com> <1500939076.11511.4.camel@gmail.com> From: cyg Simple Message-ID: Date: Tue, 25 Jul 2017 14:42:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1500939076.11511.4.camel@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00351.txt.bz2 On 7/24/2017 7:31 PM, J (Jean-Claude Gervais) wrote: > Hello Steven and Hans-Bernhard, > > I believe the problem stems from a missing component in the runtime. > > When I use Gentoo's Crossdev and generate either the 32 or 64 bit > version of MinGW, it allows me to compile and link the app with no > other dependencies than msvcrt.dll. I can run the cross-compiled app > directly on Windows. > > But for some reason, the MinGW compiler present in Cygwin looks for > threading support which is not there. > > This is strange because I manually compiled the source for both > libraries (zlib with minizip in the contrib folder) and it gives the > same error. > > Searching the source for any mention of threads in the code yields > nothing except comments about whether routines are thread-safe or not. > > The link complains about those functions missing from libpthread.a, > even though that library is not invoked. > > I've tried linking the pthread library, but it does not supply the > missing symbols. > > So those symbols have to either be present in a lib that is missing > from the link-line, which would be strange because the same link-line > works with the linux version of MinGW > > or > > the runtime library needs to supply them? > > I'll try and narrow it down more. > You might get more help if you give the commands used to link the package. Note you must have the library specifications after the objects being linked which is my guess as to the issue. -- cyg Simple -- 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