This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
GCC from CVS and alpha-dec-osf5.0
- To: gcc at gcc dot gnu dot org
- Subject: GCC from CVS and alpha-dec-osf5.0
- From: Albert Chin-A-Young <china at thewrittenword dot com>
- Date: Fri, 15 Dec 2000 11:16:12 -0600
While building the latest CVS on alpha-dec-osf5.0:
cc -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I../../gcc
-I../../gcc/. -I../../gcc/config -I../../gcc/../include \
-DTARGET_MACHINE=\"alpha-dec-osf5.0\" -DUSE_COLLECT2 \
-c ../../gcc/collect2.c
cc: Warning: ../../gcc/collect2.c, line 2685: In this declaration,
parameter 2 has a different type than specified in an earlier
declaration of this function. (mismatparam)
extern int ldtbread PARAMS ((LDFILE *, long, GCC_SYMENT *));
-----------^
cc: Error: ../../gcc/collect2.c, line 2685: In this declaration, the
type of "ldtbread" is not compatible with the type of a previous
declaration of "ldtbread" at line number 222 in file
/usr/include/ldfcn.h. (notcompat)
extern int ldtbread PARAMS ((LDFILE *, long, GCC_SYMENT *));
-----------^
From ldtbread(3):
int ldtbread (ldptr, symindex, symbol)
LDFILE *ldptr ;
long symindex ;
pSYMR *symbol ;
[Ditto for IRIX 6.2, 6.5, Tru64 UNIX 4.0D]
From /usr/include/dlfcn.h:
extern int ldtbread __((LDFILE *, int, pSYMR));
From /usr/include/sym.h:
typedef struct {
coff_long value; /* value of symbol */
coff_int iss; /* index into String Space of name */
coff_uint st : 6; /* symbol type */
coff_uint sc : 5; /* storage class - text, data, etc */
coff_uint reserved : 1; /* reserved */
coff_uint index : 20; /* index into sym/aux table */
} SYMR, *pSYMR;
From gcc/collect2.c:
# define GCC_SYMENT SYMR
extern int ldtbread PARAMS ((LDFILE *, long, GCC_SYMENT *));
What is the solution? Should we also have a pGCC_SYMENT defined as
pSYMR?
--
albert chin (china@thewrittenword.com)