Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 52981 invoked from network); 4 Dec 2006 23:17:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Dec 2006 23:17:17 -0000 Received: (qmail 1307 invoked by uid 500); 4 Dec 2006 23:17:25 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 935 invoked by uid 500); 4 Dec 2006 23:17:24 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 924 invoked by uid 99); 4 Dec 2006 23:17:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2006 15:17:24 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jayvdb@gmail.com designates 64.233.184.234 as permitted sender) Received: from [64.233.184.234] (HELO wr-out-0506.google.com) (64.233.184.234) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2006 15:17:13 -0800 Received: by wr-out-0506.google.com with SMTP id i21so1255156wra for ; Mon, 04 Dec 2006 15:16:53 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=udaDvrvEbTSMtFtQovrEpJuHjbiJkXtgHmS5+1ybvTQDNGLjmpdg2QbEmhy6m6wRgFZijE64BrXKgcP/0hxhXJzGXQo0LwJfUHmTiIxWdiY/NM6QRiOrWnH67s/wCYtuy2U4fBuzjhL114ZGQqNFakdFImShkIa4b1xThPfs8Bg= Received: by 10.90.92.7 with SMTP id p7mr8772643agb.1165274212715; Mon, 04 Dec 2006 15:16:52 -0800 (PST) Received: by 10.90.65.2 with HTTP; Mon, 4 Dec 2006 15:16:52 -0800 (PST) Message-ID: Date: Tue, 5 Dec 2006 10:16:52 +1100 From: "John Vandenberg" To: "Bob Rossi" Subject: Re: building apr on cygwin for mingw Cc: dev@apr.apache.org In-Reply-To: <20061202031039.GB27385@cox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061202031039.GB27385@cox.net> X-Virus-Checked: Checked by ClamAV on apache.org Hi Bob, On 12/2/06, Bob Rossi wrote: > First, and oddly enough, the buildconf script fails for me because > build/buildcheck.sh doesn't recognize my libtool --version. I don't know > sed well enough, and thought someone here would quickly be able to spot > the problem. If not, I'll have to look deeper. > > $ libtool --version 2>/dev/null > > ltmain.sh (GNU libtool) 1.5.23a (1.1220.2.412 2006/10/13 14:13:30) > > Copyright (C) 2006 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > This command is failing by giving me no output. > $ libtool --version 2>/dev/null|sed -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q' The following worked for me on Fedora Core 3, MSYS (MINGW32_NT-5.1 - 1.0.11), and Cygwin (CYGWIN_NT-5.1 - 1.5.18): $ cat < ltmain.sh (GNU libtool) 1.5.23a (1.1220.2.412 2006/10/13 14:13:30) > > Copyright (C) 2006 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > EOF 1.5.23a Could you let us know which version of sed you are using. > So, after patching autoconf, and making these two patches to apr, I was > able to cross compile on cygwin with this command, > > ./configure apr_cv_tcp_nodelay_with_cork=no ac_cv_func_setpgrp_void=yes > ac_cv_file__dev_zero=no --build=i686-pc-cygwin --host=i686-pc-mingw32 > CC='gcc -mno-cygwin' CXX='g++ -mno-cygwin' > > I was able to take a sample program, and run it on a machine that did > not have cygwin installed, and it ran fine. It was simply a hello world > type program with apr stuff in it. Have you tried the test suite? -- John