delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/11/07/10:44:21

Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com
Date: Wed, 7 Nov 2001 16:39:19 +0100
From: Corinna Vinschen <cygwin-apps AT cygwin DOT com>
To: cygapp <cygwin-apps AT cygwin DOT com>
Subject: Re: Did I find an error in the current binutils or what???
Message-ID: <20011107163919.Y2965@cygbert.vinschen.de>
Mail-Followup-To: cygapp <cygwin-apps AT cygwin DOT com>
References: <20011107131736 DOT U2965 AT cygbert DOT vinschen DOT de> <3BE94852 DOT 8080303 AT ece DOT gatech DOT edu>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <3BE94852.8080303@ece.gatech.edu>; from cwilson@ece.gatech.edu on Wed, Nov 07, 2001 at 09:42:26AM -0500

On Wed, Nov 07, 2001 at 09:42:26AM -0500, Charles Wilson wrote:
> Corinna Vinschen wrote:
> 
> > Hi,
> > 
> > I'm just trying to build the new born openssh-3.0p1 for Cygwin.
> > 
> > There's a slight difference between 1.3.3 and 1.3.4 in so far as
> > __progname is defined in 1.3.4 while it wasn't in 1.3.3.
> > 
> > Unfortunately, __progname isn't defined in any header file.  So what
> > happens (and what should work fine in theory) is, I'm getting the
> > following message at the end of the link stage:
> > 
> > Warning: resolving ___progname by linking to __imp____progname (auto-import)
> 
> 
> Okay, so your program (ssh) was compiled without the appropriate 
> __declspec(dllimport) decorator on __progname ('cause it isn't defined in 
> ANY header).  Therefore, the auto-import stuff kicks in, and magically 
> searchs for "__imp__" + desired_symbol.  It finds it (__imp____progname). 
> So far, so good.
> 
> 
> > Hum, the problem is that I'm getting _another_ message right after
> > the above one:
> > 
> > nmth000000.o(.idata$4+0x0): undefined reference to `_nm____progname'
> > collect2: ld returned 1 exit status
> 
> 
> Except that the cygwin1.dll/libcygwin.a that you are linking against does 
> not have the requisite auto-import support thunks (_nm__*).  Perhaps this 
> cygwin was compiled using a (very) old binutils?  pre-20010802 ?

Yes.  It has been cross-compiled on a Linux box.  The binutils are...
uhm... compiled on 2001-07-12 so they are definitely pre-20010802.
Somehow I don't understand how that stuff is supposed to work.  I'm
not a binutils expert...

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019