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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=oVTaNnbSzbCobjym 3uIw6RANSpwVCDBcKBe8A2R4m1O3yeziv1sip16VFHAdnEUB0x+7QMsCFbHBgeGD mTkFztR//gB3mpQ4RpL4JlO1w0q+sWg47HAtdd4VzC2uB1TgB71LeEhA6DX6DmnM vjrjgEIbaeP3YyO1GU0LY/dkXsU= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=q4h/8it5I7PI1fAmeblKMN WvXRc=; b=a1yuvBZpp9RnfRfswyBThx0mQsrh8RJjSxsKehbSEbrmN6a9faDlcA LsjVUdr5hUmVDhBRL+1pnatzjpzs2iFFxtt5+1G/C2NSa3QV9Z9iU1aEmh13kjiB aGz+CgnyfLts8yN3O7wtJ4W85js/Ij0Uir7sPTXdmmSDXWQGSIuwM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=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 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) Subject: Re: Link error with static version of zlib? To: cygwin AT cygwin DOT com References: <003a8d3c-691b-738f-96e7-ec3bf53b82a9 AT t-online DOT de> <59715271 DOT 482cca0a DOT 8fce9 DOT 85d2 AT mx DOT google DOT com> <1500939076 DOT 11511 DOT 4 DOT camel AT gmail DOT com> From: cyg Simple Message-ID: Date: Tue, 25 Jul 2017 07:57:47 -0400 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 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