This is the mail archive of the binutils@sources.redhat.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]
Other format: [Raw text]

Re: build problems on hppa64-hp-hpux11.00


Hi Dara,

> trying to build latest binutils (cvs) on hppa64, I'm
> hitting a problem building ld. I get:

> ld: Unsatisfied symbol "alloca" in file ldgram.o

> I'm using aCC (in ANSI mode, -Ae) to build. Any
> suggestions? Thanks,

In theory the code at the start of ldgram.c should take care of this:

  #ifndef alloca
  #ifdef __GNUC__
  #define alloca __builtin_alloca
  #else /* not GNU C.  */
  #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
  #include <alloca.h>
  #else /* not sparc */
  #if defined (MSDOS) && !defined (__TURBOC__)
  #include <malloc.h>
  #else /* not MSDOS, or __TURBOC__ */
  #if defined(_AIX)
  #include <malloc.h>
   #pragma alloca
  #else /* not MSDOS, __TURBOC__, or _AIX */
  #ifdef __hpux
  #ifdef __cplusplus
  extern "C" {
  void *alloca (unsigned int);
  };
  #else /* not __cplusplus */
  void *alloca ();
  #endif /* not __cplusplus */
  #endif /* __hpux */
  #endif /* not _AIX */
  #endif /* not MSDOS, or __TURBOC__ */
  #endif /* not sparc.  */
  #endif /* not GNU C.  */
  #endif /* alloca not defined.  */
  
Is <alloca.h> being included ?  If not then perhaps it needs to be.

Alternatively if you add "+Olibcalls" to the aCC command line, does
the link complete ?

Cheers
        Nick
        


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