* Problem compiling 6.2 on dec alpha
@ 2004-09-01 20:09 Mark Helzer
2004-09-01 20:47 ` Michael Chastain
0 siblings, 1 reply; 2+ messages in thread
From: Mark Helzer @ 2004-09-01 20:09 UTC (permalink / raw)
To: gdb
Hi,
On a dec alpha running digital unix v4.0, compiler Digital UNIX Compiler
Driver 3.11 (also tried the cxx v6.5 compiler, same error) I'm getting
the following error:
struct bfd_link_info *link_info,
----------------------------------------------------------^
cc: Error: bfd.c, line 1159: In this declaration, parameter 2 has a
different ty pe than specified in an earlier declaration of this
function. (mismatparam) bfd_get_relocated_section_contents (bfd *abfd, ^
cc: Error: bfd.c, line 1159: In this declaration, the type of
"bfd_get_relocated _section_contents" is not compatible with the type of
a previous declaration of "bfd_get_relocated_section_contents" at line
number 4090 in file bfd.h. (notcomp
at)
bfd_get_relocated_section_contents (bfd *abfd, ^
make[3]: *** [bfd.lo] Error 1
make[3]: Leaving directory `/adp/local/src/gdb-6.2/bfd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/adp/local/src/gdb-6.2/bfd'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/adp/local/src/gdb-6.2/bfd'
make: *** [all-bfd] Error 2
Any suggestions?
Mark Helzer
ADP Dealer Services
2525 S.W 1st Portland, OR.
(503) 402-3481
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Problem compiling 6.2 on dec alpha
2004-09-01 20:09 Problem compiling 6.2 on dec alpha Mark Helzer
@ 2004-09-01 20:47 ` Michael Chastain
0 siblings, 0 replies; 2+ messages in thread
From: Michael Chastain @ 2004-09-01 20:47 UTC (permalink / raw)
To: Mark_Helzer, gdb
Hmmm, try editing bfd-in.h and bfd-in2.h and adding
this line near the top:
#include "bfdlink.h"
I suspect that the Digital Unix compiler is bitching about a parameter
mismatch because it has an incomplete definition of struct bfd_link_info
when it parses the prototype for bfd_get_relocated_section_contents, and
then later on it has a complete definition of struct bfd_link_info when
it parses definition for bfd_get_relocated_section_contents.
Or, you could try using gcc to build gdb. I recently built gdb 6.0 on
native alphaev56-dec-osf4.0g with gcc 3.3.4. I can't build any later
gdb's because they run into PR gdb/1626. I haven't tried actually
*running* gdb on osf 4.0 after I built it, though.
Hope this helps,
Michael Chastain
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-09-01 20:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-01 20:09 Problem compiling 6.2 on dec alpha Mark Helzer
2004-09-01 20:47 ` Michael Chastain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox