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:subject:to:references:from:cc:reply-to
	:message-id:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=opZm5GhD1ZGDkkG7
	p327rScXrAR0Z2Ql/6SdAWuMeTCUfB6PwoYZN5Y5ctnrfK9GCDUED2vXaIOtW4Kw
	B4vkjy+L6fr7IDDgHWnHWGNkQ1FmdY8TF5EjERVCM0Bc5eqnTGoz7T2qsOTPgSC0
	ZBmjVFh0DYrg/Lqcddl3cywRdFc=
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:cc:reply-to
	:message-id:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=mPA962eV/oS298dbDLV4Vb
	7PFl0=; b=usaPmKmXl96bqTATHw17G/q0Az+BbW0wijL7r3Yh2zyFpogWHc8zvS
	ubpulFPLHloxYIaSaWp9NooVimO0tm0bHV8vIWdR6YcDyH5cIdTPAL5GhgWNy/iU
	jBD+nxqHckv2VfdAL4SK1ygAdO7fAZBLeXzBascnN8QjsHBLGUaV0=
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=2.6 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_COUK,SPF_PASS autolearn=no version=3.3.2
X-HELO: out.ipsmtp3nec.opaltelecom.net
X-SMTPAUTH: drstacey@tiscali.co.uk
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2EvBABvJ0FW/8RV0lUNUYQOb79vQSOFa?= =?us-ascii?q?AMCAoF8EAEBAQEBAQEDgz4XFQsxAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE?= =?us-ascii?q?BDgINBlkBAQQ4QAEQLBYECwkDAgECAUUTCAEBiDewGIdGihMBAQEBAQUBAQEBA?= =?us-ascii?q?QEBARcEgi+Na1+EEgWSZ4NhhR6kTjiCb4FAcgEBAQGFYgEBAQ?=
X-IPAS-Result: =?us-ascii?q?A2EvBABvJ0FW/8RV0lUNUYQOb79vQSOFaAMCAoF8EAEBAQE?= =?us-ascii?q?BAQEDgz4XFQsxAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBDgINBlkBAQQ4Q?= =?us-ascii?q?AEQLBYECwkDAgECAUUTCAEBiDewGIdGihMBAQEBAQUBAQEBAQEBARcEgi+Na1+?= =?us-ascii?q?EEgWSZ4NhhR6kTjiCb4FAcgEBAQGFYgEBAQ?=
Subject: Building Poco for Cygwin (was: Re: Cannot fork process for: g++: cygPocoFoundation.32.dll: Loaded to different address)
To: cygwin@cygwin.com
References: <563D9CA2.5090605@orange.fr> <563DA445.5060800@gmail.com> <563DB2AE.4030304@tiscali.co.uk> <563E66EE.9030209@tiscali.co.uk> <563E6A81.7070803@gmail.com> <563F661D.50503@orange.fr> <563F72D7.5070908@cornell.edu> <5640BA7D.2030102@orange.fr> <5640CD6F.4030003@orange.fr>
From: David Stacey <drstacey@tiscali.co.uk>
Cc: francis.andre.kampbell@orange.fr
Reply-To: cygwin@cygwin.com
Message-ID: <564128A7.3010605@tiscali.co.uk>
Date: Mon, 9 Nov 2015 23:13:43 +0000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
MIME-Version: 1.0
In-Reply-To: <5640CD6F.4030003@orange.fr>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Hi Francis.

If you're still keen to build Poco for Cygwin yourself, then it's 
probably worth looking at the patches and compiler settings that I use, 
as you may want to make use of them. Download the source, either using 
Cygwin's setup.exe or directly from a mirror [1], and unpack. The 
'poco.cygport' file is used for building; it has bash-like syntax. There 
should be four patch files, each with the '.patch' extension.

The most important thing is to build using the '-frepo' compiler flag 
when building Poco. This fixes a truly horrible crash when Poco's wide 
character strings are passed across a DLL boundary. This works at the 
expense of slowing the build somewhat. I wrote this up on a Poco GitHub 
ticket [2].

Cygwin's Poco is built unbundled, i.e. it uses the system zlib, pcre, 
etc. There are a couple of patches to support this. There is also a 
patch to fix 'testDequeue', as this test tries to compare two internal 
clocks of different accuracy, which fails randomly on Cygwin. The final 
patch gets Data/ODBC building with the iODBC library.

There are some notes towards the end of the 'poco.cygport' file about 
running the testsuite, and you might find these useful.

Hope this helps.

Dave.

[1] - 
https://www.mirrorservice.org/sites/sourceware.org/pub/cygwin/x86/release/poco/poco-1.6.1-1-src.tar.xz
[2] - https://github.com/pocoproject/poco/issues/723#issuecomment-93853102


--
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

