public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: cyg Simple <cygsimple@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Link error with static version of zlib?
Date: Tue, 25 Jul 2017 14:42:00 -0000	[thread overview]
Message-ID: <e31e6bf4-0222-af69-0669-44159719c549@gmail.com> (raw)
In-Reply-To: <1500939076.11511.4.camel@gmail.com>

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

      reply	other threads:[~2017-07-25 11:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-19 15:47 J
2017-07-20 14:07 ` Steven Penny
2017-07-20 14:16   ` J
2017-07-21  0:32     ` Hans-Bernhard Bröker
2017-07-21 10:11       ` Steven Penny
2017-07-24 23:55         ` J (Jean-Claude Gervais)
2017-07-25 14:42           ` cyg Simple [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e31e6bf4-0222-af69-0669-44159719c549@gmail.com \
    --to=cygsimple@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).