OpenSSH
[Top] [All Lists]

Re: Static build under Cygwin?

To: OpenSSH <openssh-unix-dev@mindrot.org>
Subject: Re: Static build under Cygwin?
From: Chris Rapier <rapier@psc.edu>
Date: Thu, 05 Apr 2007 13:23:16 -0400
Delivered-to: sp-com-lists@consult.net
Delivered-to: openssh-unix-dev-list1@securepoint.com
Delivered-to: openssh-unix-dev-tmda@mindrot.org
Delivered-to: openssh-unix-dev@mindrot.org
In-reply-to: <20070405171157.GA13737@calimero.vinschen.de>
List-archive: <http://lists.mindrot.org/pipermail/openssh-unix-dev>
List-help: <mailto:openssh-unix-dev-request@mindrot.org?subject=help>
List-id: Development of portable OpenSSH <openssh-unix-dev.mindrot.org>
List-post: <mailto:openssh-unix-dev@mindrot.org>
List-subscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=subscribe>
List-unsubscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=unsubscribe>
References: <461510F4.3070408@psc.edu> <20070405165606.15061.qmail@cdy.org> <461523DA.3050202@psc.edu> <20070405170636.16603.qmail@cdy.org> <20070405171157.GA13737@calimero.vinschen.de>
Sender: openssh-unix-dev-bounces+openssh-unix-dev-list1=securepoint.com@mindrot.org
User-agent: Thunderbird 1.5.0.10 (Macintosh/20070221)

Corinna Vinschen wrote:
> On Apr  5 19:06, Peter Stuge wrote:
>> On Thu, Apr 05, 2007 at 12:29:14PM -0400, Chris Rapier wrote:
>>> Peter Stuge wrote:
>>>> On Thu, Apr 05, 2007 at 11:08:36AM -0400, Chris Rapier wrote:
>>>>> I was wondering if anyone has statically built OpenSSH under
>>>>> cygwin?
>>>>> Mostly I'm just trying to avoid the need to require a specific
>>>>> user to install cygwin in order to use the client. Does it
>>>>> involve mingw?
>>>> Yes, it would, but MinGW != Cygwin and I don't think OpenSSH likes it
>>>> very much in Win32 land.
>>>>
>>>> Cygwin is a POSIX compatibility layer for Win32.
>>>>
>>>> MinGW is gcc+friends for Win32 with little or no built-in
>>>> compatibility.
>>> So basically it would require voodoo. How many goats?
>>> ;)
>> 42.
>>
>> Back to the original question:
>>
>> http://www.sourceware.org/ml/cygwin/2000-12/msg01162.html
>> http://www.cygwin.com/ml/cygwin/2000-06/msg00756.html
> 
> You can't build statically against Cygwin and it's not intended to work.

Just curious, is this by specific design or did it just work out that way?

>> Seems it's not doable. But perhaps it's OK to distribute cygwin1.dll
>> along with ssh.exe ?

Heh. I was just in the middle of writing some mail about how much the 
cygwin people don't like this :)

> 
> http://cygwin.com/acronyms/#3PP.
> 
> Please don't. 

Which is pretty much why I was looking for a way to build openssh 
against cygwin statically. I'll probably just end up trying to port the 
hpn patch over to putty (convincing people to move the globus patch as 
well might be tough though :) )

> There should be only exactly one Cygwin DLL installed on
> a machine and that should ideally be the Cygwin DLL installed from the
> Cygwin net distribution.  Having two Cygwin DLLs with different version
> numbers on a machine is bound to result in trouble.  It's roughly
> equivalent to trying to run two Linux kernels on the same machine in
> parallel without virtualization layer.

I have seen this happen in the past actually. Usually its really not a 
problem though as the vast majority of people that can benefit from SSH 
(eg, all the people that only need the client) don't have a need for the 
rest of cygwin. However, in the cases where it is a problem its 
intensely annoying. As such, I wouldn't do it for a externally 
distributed product.
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

<Prev in Thread] Current Thread [Next in Thread>