X-Recipient: archive-cygwin@delorie.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:mime-version:to:subject
	:references:in-reply-to:content-type; q=dns; s=default; b=DdXQX4
	QgVnljS8THQR4deFVPf5puFyGNRxZX+K1HcavTS5J0qbm8vW/eUgRN8yjnNmfgjt
	AturrLzmck2ei/EH2d6I3uP1IsqHRG6PvpAj81Y/sL2fPNXidcjCjCGhZQy6RS64
	Q4RF+cKOeflxUpkUUoFU/IpOza06RP5a8D2UQ=
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:mime-version:to:subject
	:references:in-reply-to:content-type; s=default; bh=YCEdDA/bYNer
	wGqxMO88nllvHnQ=; b=adY8O6whr5Bg2mcwm2OzoPIXr+OiW/mDbP+WI4jUmCu4
	JMV7k4kQUj1Mlo1SOolh87t3CatzVaoCIw4aTLHSISCvJohDFz4iWzAS9513H8VU
	nH26bIwAgNhq87Enf+UkyUYQXtiet9MmU27gEU+TPTjsZqhnzvjl75SZRXpiF10=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-pd0-f173.google.com
X-Received: by 10.68.230.200 with SMTP id ta8mr8702250pbc.10.1396012352669;        Fri, 28 Mar 2014 06:12:32 -0700 (PDT)
Message-ID: <53357528.6010607@gmail.com>
Date: Fri, 28 Mar 2014 21:12:08 +0800
From: JonY <10walls@gmail.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: does using mingw-gcc require to compile all libraries with it?
References: <1951436002.150323390.1395997203952.JavaMail.root@zimbra60-e10.priv.proxad.net>
In-Reply-To: <1951436002.150323390.1395997203952.JavaMail.root@zimbra60-e10.priv.proxad.net>
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uDedUqUqtjuQhfLql1tg36rswmq190cAt"
X-IsSubscribed: yes

--uDedUqUqtjuQhfLql1tg36rswmq190cAt
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 3/28/2014 17:00, tonioc@free.fr wrote:
> Hello,=20
> I just installed mingw-gcc-4.7.3 on top of my cygwin installation.=20
>=20
> Trying to build a library that needs openssl lib, I get undefined referen=
ces to __errno and __getreent from this library.=20
> - I understood those variables are from cygwin1.dll, is it correct?=20
> - does this mean that I should build libcrypto on my own from sources usi=
ng mingw-gcc also ? (and same for any other lib currently available in my c=
ygwin installation?=20
> - or am I missing some option in my build ?=20
>=20

Yes, you have to build with mingw-gcc, you mustn't use any libraries
built by Cygwin gcc, since those are for Cygwin, not mingw.

> Note: I get the same lib correctly built with :=20
> - mingw standalone toolchain, but I'd rather use mingw-gcc in cycgwin if =
possible.=20
> - cygwin's gcc, but running a JNI lib that uses printf or other stdio stu=
ff hangs the VM.=20
>=20

Do not mix Cygwin with native code, use the mingw-gcc (cross compiler
from cygwin) with JNI instead.



--uDedUqUqtjuQhfLql1tg36rswmq190cAt
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (MingW32)

iQIbBAEBAgAGBQJTNXUyAAoJEHE7X+KcFF1FRhMP93YPQOozEyzp5tb/d1LMEQkS
uwHeuBK+K2hZUgoYpqNSwyD6DlxcrOyEl9E4A+dJK5c62qCkk8WbdbOVE6VC3pTL
fAtjkY+XhlUxEOMHu8nKVPz87M3VNQX9VkvxslaXWV2EZF62B0rJpNr9AoTis3qP
fUqpTMWhCaqJSYg21NwzVjrkMLhXRyVSDMegfP+wSzrMZ9m1Gp+YdoxpiKYw73Wo
QPUgLuR0m7oSNXcIkRy0HlG4s4ioS3pISuZXn9jm+jmaky4DvVHngpcvxzbhztxX
j57dhcAVWr322BN1Ua1VuUjTjwmnJm7kg+A6lWzNkXjQjJyfzCBPwSPN/cwCVA85
vc9IT99KVx/Dl+0qUWfPNqPBddLk9mhCO06Q/EfpWe96tGdrNWEiwf7RkfRwG+FH
2nzIfoqa2WZ5/fQSZq8Qwbxf6hYdW+tSyo6t6571OHXIdRRmA6vDoq5f7eEFByrx
Ei9lw3bfFRp0y43Vr+xpYlcAFngtWg63pF1MNT4oGK5BrwoyDFKNfT2rw4Vcgudf
2Cx7SXkLdYFCkFY4QounnNg2fP91A6cPWIIFJ5UJRn4T+6uf/PeoROxsujvXkei+
4iuN0Az1MxlTK0Qt5c1TbYsRnbjdBT/QwBQtXwd5SJFTkUqU+fAoy70JwzhOJUcx
Db4HMkoRLw5E0IjbkPc=
=CCt+
-----END PGP SIGNATURE-----

--uDedUqUqtjuQhfLql1tg36rswmq190cAt--
