apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Vandenberg" <jay...@gmail.com>
Subject Re: building apr on cygwin for mingw
Date Tue, 05 Dec 2006 21:30:55 GMT
On 12/6/06, Bob Rossi <bob_rossi@cox.net> wrote:
> On Tue, Dec 05, 2006 at 10:16:52AM +1100, John Vandenberg wrote:
> > Hi Bob,
> >
> > On 12/2/06, Bob Rossi <bob_rossi@cox.net> 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 <<EOF | sed -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'
> > > 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.
>
> $ sed --version
> GNU sed version 4.1.5
>
> That's on Cygwin of course.

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'

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

--
John

Mime
View raw message