From dev-return-17682-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Tue Dec 05 21:35:02 2006 Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 69245 invoked from network); 5 Dec 2006 21:35:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Dec 2006 21:35:01 -0000 Received: (qmail 77517 invoked by uid 500); 5 Dec 2006 21:35:08 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 77479 invoked by uid 500); 5 Dec 2006 21:35:08 -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 77468 invoked by uid 99); 5 Dec 2006 21:35:08 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Dec 2006 13:35:08 -0800 X-ASF-Spam-Status: No, hits=2.3 required=10.0 tests=DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [68.230.240.34] (HELO eastrmmtao05.cox.net) (68.230.240.34) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Dec 2006 13:34:56 -0800 Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao05.cox.net (InterMail vM.6.01.06.03 201-2131-130-104-20060516) with ESMTP id <20061205213433.YIST4144.eastrmmtao05.cox.net@eastrmimpo01.cox.net>; Tue, 5 Dec 2006 16:34:33 -0500 Received: from black ([70.181.32.198]) by eastrmimpo01.cox.net with bizsmtp id v9Zc1V0134GV2Jm0000000; Tue, 05 Dec 2006 16:33:37 -0500 Received: from bob by black with local (Exim 4.62) (envelope-from ) id 1Grhvr-0003Qu-W8; Tue, 05 Dec 2006 16:34:32 -0500 Date: Tue, 5 Dec 2006 16:34:31 -0500 From: Bob Rossi To: John Vandenberg Cc: "William A. Rowe, Jr." , dev@apr.apache.org Subject: Re: building apr on cygwin for mingw Message-ID: <20061205213431.GC12869@cox.net> Mail-Followup-To: John Vandenberg , "William A. Rowe, Jr." , dev@apr.apache.org References: <20061202031039.GB27385@cox.net> <20061205195353.GT30254@cox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.12-2006-07-14 X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Dec 06, 2006 at 08:30:55AM +1100, John Vandenberg wrote: > The problem appears to be that libtool is now emitting a blank line > before the line that contains the version string; try > > $ libtool --version 2>/dev/null | sed -e > '/^$/d;s/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q' Works like a charm. $ libtool --version 2>/dev/null | sed -e '/^$/d;s/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q' 1.5.23a > >> >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? > > > >Nope, great idea. Attached is the results. I'm going to try a native > >build of mingw to make sure the results are the same. How do these > >results look? > > They look comparable to the last msys/MinGW test results I have seen. > > http://marc2.theaimsgroup.com/?l=apr-dev&m=114506483217503&w=2 Intereseting. So everything appears to be correct? For some reason, testsock works now, and it didn't before. I'd love to see the sed command go into apr. I'm still wondering what should be done about the m4 macros. Thanks, Bob Rossi