This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: strange compile problem


   From: John Barry <jbarry@eso.org>
   Date: Mon, 13 Sep 1999 20:49:34 +0200 (MET DST)

   >    ../../binutils-2.9.5.0.12/bfd/libbfd.c: In function `bfd_stat':
   >    ../../binutils-2.9.5.0.12/bfd/libbfd.c:638: argument `statbuf' doesn't match prototype
   >    ../../binutils-2.9.5.0.12/bfd/bfd.h:482: prototype declaration
   > 
   >    extern int bfd_stat PARAMS ((bfd *abfd, struct stat *));
   > 
   > I don't see that with the current development sources.  Do you see it
   > with the snapshot from the Cygnus site, or just with 2.9.5.0.12 (which
   > is a GNU/Linux specific release)?

   I've been getting this with every version of binutils I've built up since I
   started using -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64, this includes
   2.9.1 and every snapshop I've downloaded from cygnus. It's a Solaris only
   issue, didn't happen when I built it on a hppa2.0 Visualise C 3000

You can probably fix it by adding

#include <sys/types.h>
#include <sys/stat.h>

near the top of bfd/bfd-in2.h.

I'm somewhat uncomfortable with requiring every program which includes
bfd.h to also include those files.  Unfortunately, the only other
choice is probably to change the two uses of struct stat * to void *,
instead, and thus lose type checking.

Ian

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]