delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/14/07:08:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Dave Korn" <dk AT artimi DOT com>
To: "'cygwin mailing-list'" <cygwin AT cygwin DOT com>
Subject: RE: bfd_get_section_size() undeclared
Date: Wed, 14 Jul 2004 12:02:34 +0100
MIME-Version: 1.0
In-Reply-To: <n2m-g.cco2t3.3vvfdot.1@buzzy-box.bavag>
Message-ID: <NUTMEG50xgy9NYb17TW00000889@NUTMEG.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 14 Jul 2004 11:02:35.0484 (UTC) FILETIME=[119CB1C0:01C46992]

> -----Original Message-----
> From: cygwin-owner  On Behalf Of Bas van Gompel
> Sent: 10 July 2004 05:43
> To: cygwin
> Cc: Sean McCune
> Subject: Re: bfd_get_section_size() undeclared
> 
> Op Wed, 30 Jun 2004 12:03:20 +0100 schreef Dave Korn
> in <NUTMEGlx6EIfu4FbATc00000600 AT NUTMEG DOT CAM DOT ARTIMI DOT COM>:
> : > -----Original Message-----
> : > From: cygwin-owner On Behalf Of Sean McCune
> : > Sent: 30 June 2004 04:51

> : > In building the latest source (checked out tonight), I'm 
> getting the
> : > following error, stating that bfd_get_section_size() is 
> : > undeclared.  Was
> : > something not checked in to CVS fully?
> 
> [...]
> :    WFM this morning.
> 
> So, you have a local copy of bfd. [WAG]

  Correct!

> Therefore, you'll need to checkout bfd as well as winsup, newlib and
> libiberty currently, before you can complete the build of cygwin.
> 
> (This need will go away with the next binutils-release IIUC...)

  Funnily enough, I got bitten by this problem yesterday, despite having
binutils in my tree.  What happened was that I only wanted to build the dll,
so I did a configure and "make all-target".  The cygwin dll (and indeed the
entire winsup dir) count as part of the target build.  The problem is that
bfd.h is a generated file, and bfd is only built as part of the host rather
than target build.  Normally when you do make all, the host libs and so on
are built first, and so by the time the build process gets round to winsup,
the builddir/bfd directory contains bfd.h; but if you try only to build the
target files without first building the host files, or if you don't have bfd
configured in there, you end up including the bfd header from your host
system's installed toolchain, rather than the newly generated one which is
up to date with the bfd sources.


    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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