[PATCH]: Fix configure.ac to allow linking against PCRE on Cygwin

Tim Rice tim at multitalents.net
Sat Nov 24 13:24:38 EST 2001


On Fri, 23 Nov 2001 openssh-unix-dev at thewrittenword.com wrote:

> On Fri, Nov 23, 2001 at 10:51:53AM -0800, Tim Rice wrote:
> > On Fri, 23 Nov 2001, Corinna Vinschen wrote:
> >
> > > No, it doesn't, unfortunately.  recomp is defined in Cygwin even
> > > without the external regex library but it's a very old implementation
> > > which is incompatible with POSIX regex and which is still in Cygwin
> > > for some sort of backward compatibility.  That means the test for
> > > regcomp() works successfully and so the test is sure that using regex
> > > is sure even without linking against -lregex.  But the compiled ssh
> > > doesn't work then.
> > >
> > > Corinna
> >
> > Try this patch.
> > It gives preference to libregex over regex functions in libc.
>
> Ick. If the version in libc is incompatible with POSIX regex, why not
> AC_TRY_RUN with code that will work with POSIX regex but fail with the
> libc version. This would probably be more portable and a better
> long-term solution.
>

Yes, The more I think about it the more I don't like my fix.
Corinna, can you track down where ssh is failing with the libc regex
and write a small test program to test this?

>

-- 
Tim Rice				Multitalents	(707) 887-1469
tim at multitalents.net





More information about the openssh-unix-dev mailing list