This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: build problems on hppa64-hp-hpux11.00
- From: Nick Clifton <nickc at redhat dot com>
- To: Dara Hazeghi <dhazeghi at yahoo dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Mon, 08 Sep 2003 16:55:58 +0100
- Subject: Re: build problems on hppa64-hp-hpux11.00
- References: <20030822190455.27519.qmail@web41104.mail.yahoo.com>
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