[botan-devel] [Botan-devel] Trouble running configure on cygwin

William K. Foster wkf at alum.mit.edu
Sat Feb 19 19:25:37 EST 2011


Hello Jack,

Those patches together both get the configure to work well and the build to
succeed.

Please note it is '--link-method=copy' and not '--link-style=copy' as
written below.

Thanks.

-William


On Fri, Feb 18, 2011 at 8:31 AM, Jack Lloyd <lloyd at randombit.net> wrote:

> Hi William,
>
> An interesting case!
>
> Can you try the attached patch? After applying, rerun configure.py
> with the additional option --link-style=copy to force using a copy
> instead of a link.
>
> Thanks,
>   Jack
>
> On Fri, Feb 18, 2011 at 08:09:16AM -0800, William K. Foster wrote:
> > Hi Jack,
> >
> > I'll try that out, thanks.
> >
> > I had already worked around with --os=cygwin and it runs into another
> issue
> > with symlinks.  The file system I am building on is a samba mounted linux
> > drive.  When Botan goes to create symbolic links for header files in
> (from
> > memory) build/include/*.h the files appear to the build as regular file
> > whose contents is some binary data including the tag <symlink>.  I'm
> > guessing this is a Windows style symbolic link, but it needs to be a
> linux
> > style symbolic link.
> >
> > Thanks again.
> >
> > -William
> >
> > On Fri, Feb 18, 2011 at 5:32 AM, Jack Lloyd <lloyd at randombit.net> wrote:
> >
> > > On Thu, Feb 17, 2011 at 05:04:41PM -0800, William K. Foster wrote:
> > > > Hello,
> > > >
> > > > I am trying to build Botan v1.8.11 on Windows XP using Cygwin.
> > > >
> > > > The configure fails with the message:
> > > >
> > > >   Unknown OS "cygwin_nt-5.1"; available options: aix beos cygwin
> darwin
> > > > dragonfly freebsd hpux irix linux mingw netbsd openbsd qnx solaris
> tru64
> > > > windows
> > > >
> > > > Where does the 'cygwin_nt-5.1' come from and how do I correct it to
> just
> > > be
> > > > 'cygwin'?
> > >
> > > Hi William,
> > >
> > > The cygwin_nt-5.1 comes from what Python's platform module
> > > reports the system to be.
> > >
> > > You can override the guess by passing --os=cygwin to configure.py
> > >
> > > The following patch should also fix it; it will be included in
> > > the next release (if you could test and confirm it fixes the
> > > problem, that it would be appreciated):
> > >
> > > --- configure.py        646ee5cb324b79ecddbb270259b4ced7f05fc35c
> > > +++ configure.py        3cd55f8893b71cd6e869233f62e5c09129de243a
> > > @@ -1059,6 +1059,10 @@ def main(argv = None):
> > >     if options.os == "java":
> > >         raise Exception("Jython detected: need --os and --cpu to set
> > > target")
> > >
> > > +    if re.match('^cygwin_.*', options.os):
> > > +        logging.debug("Converting '%s' to 'cygwin'", options.os)
> > > +        options.os = 'cygwin'
> > > +
> > >     options.base_dir = os.path.dirname(argv[0])
> > >     options.src_dir = os.path.join(options.base_dir, 'src')
> > >
> > >
> > > Thanks,
> > >  Jack
> > > _______________________________________________
> > > botan-devel mailing list
> > > botan-devel at randombit.net
> > > http://lists.randombit.net/mailman/listinfo/botan-devel
> > >
>
> _______________________________________________
> botan-devel mailing list
> botan-devel at randombit.net
> http://lists.randombit.net/mailman/listinfo/botan-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.randombit.net/pipermail/botan-devel/attachments/20110219/d04c24ac/attachment.html>


More information about the botan-devel mailing list