Article View: gnu.gdb.bug
Article #79GDB 4.5 - Make problems on Sun3
From: Rob McMahon
Date: Tue, 14 Apr 1992 17:36
Date: Tue, 14 Apr 1992 17:36
60 lines
3258 bytes
3258 bytes
System is Sun3, SunOS 4.1, gcc 2.1 The prototype for sun3_saved_pc_after_call in tm-sun3.h doesn't have an external declaration of `struct frame_info', and then clashes with its definition. That's not very well explained, but this shows the problem: ============================================================================== Script started on Tue Apr 14 14:25:39 BST 1992 cudcv (41) >> make make against=stage2 AR=ar AR_FLAGS=qc CC=gcc\ -O2 RANLIB=ranlib LOADLIBES= LDFLAGS= BISON=bison\ -y MAKEINFO=makeinfo RULE1=not-used RULE2=libiberty.a HOST_OFILES="`cat needed-list`" "CC=gcc -O2" "CFLAGS=-g -I. -I./../include " "AR=ar" "AR_FLAGS=qc" "RANLIB=ranlib" make[2]: Nothing to be done for `all'. make[1]: Nothing to be done for `all'. make against=stage2 AR=ar AR_FLAGS=qc CC=gcc\ -O2 RANLIB=ranlib LOADLIBES= LDFLAGS= BISON=bison\ -y MAKEINFO=makeinfo subdir_do DO=all "DODIRS=doc" for i in doc; do if [ -d ./$i ] ; then if (cd ./$i; make against=stage2 AR=ar AR_FLAGS=qc CC=gcc\ -O2 RANLIB=ranlib LOADLIBES= LDFLAGS= BISON=bison\ -y MAKEINFO=makeinfo DO=all DODIRS=doc "against=stage2" "AR=ar" "AR_FLAGS=qc" "CC=gcc -O2" "RANLIB=ranlib" "MAKEINFO=makeinfo" "BISON=bison -y" all) ; then true ; else exit 1 ; fi ; else true ; fi ; done make[3]: Nothing to be done for `all'. make[1]: Nothing to be done for `all'. Glob doesn't work yet, but readline uses a piece of its src gcc -O2 -c -g -I. -I. -I./../include -I./../readline -I./vx-share m68k-tdep.c In file included from tm.h:19, from defs.h:659, from m68k-tdep.c:20: tm-sun3.h:72: warning: `struct frame_info' declared inside parameter list tm-sun3.h:72: warning: its scope is only this definition or declaration, tm-sun3.h:72: warning: which is probably not what you want. m68k-tdep.c: In function `sun3_saved_pc_after_call': m68k-tdep.c:383: argument `frame' doesn't match function prototype make[1]: *** [m68k-tdep.o] Error 1 make: *** [all-gdb] Error 1 41.740u 22.340s 4:15.03 25.1% 0+118k 76+1io 110pf+0w Exit 1 cudcv (42) >> x exit Script done on Tue Apr 14 14:37:05 BST 1992 ============================================================================== I believe this is the correct fix ... ============================================================================== RCS file: tm-68k.h,v retrieving revision 1.1 diff -c -r1.1 tm-68k.h *** 1.1 1992/04/14 13:41:40 --- tm-68k.h 1992/04/14 13:43:42 *************** *** 321,326 **** --- 321,331 ---- #define FRAME_NUM_ARGS(val,fi) (val = -1) #endif + #ifdef __STDC__ /* Forward decl's for prototypes */ + struct frame_info; + struct frame_saved_regs; + #endif + /* Return number of bytes at start of arglist that are not really args. */ #define FRAME_ARGS_SKIP 8 ============================================================================== Cheers, Rob
Technical Details
Message-ID:
<4480.199204141536@clover.csv.warwick.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!csv.warwick.ac.UK!cudcvShow Full Headers
Complete Article Headers
Newsgroups: gnu.gdb.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!csv.warwick.ac.UK!cudcv From: cudcv@csv.warwick.ac.UK (Rob McMahon) Subject: GDB 4.5 - Make problems on Sun3 Message-ID: <4480.199204141536@clover.csv.warwick.ac.uk> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Tue, 14 Apr 1992 17:36:25 GMT Approved: bug-gdb@prep.ai.mit.edu Lines: 61