This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Building Poco for Cygwin (was: Re: Cannot fork process for: g++: cygPocoFoundation.32.dll: Loaded to different address)
- From: David Stacey <drstacey at tiscali dot co dot uk>
- To: cygwin at cygwin dot com
- Cc: francis dot andre dot kampbell at orange dot fr
- Date: Mon, 9 Nov 2015 23:13:43 +0000
- Subject: Building Poco for Cygwin (was: Re: Cannot fork process for: g++: cygPocoFoundation.32.dll: Loaded to different address)
- Authentication-results: sourceware.org; auth=none
- References: <563D9CA2 dot 5090605 at orange dot fr> <563DA445 dot 5060800 at gmail dot com> <563DB2AE dot 4030304 at tiscali dot co dot uk> <563E66EE dot 9030209 at tiscali dot co dot uk> <563E6A81 dot 7070803 at gmail dot com> <563F661D dot 50503 at orange dot fr> <563F72D7 dot 5070908 at cornell dot edu> <5640BA7D dot 2030102 at orange dot fr> <5640CD6F dot 4030003 at orange dot fr>
- Reply-to: cygwin at cygwin dot com
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