From zaitcev Sun May 21 21:26:09 2000
Received: (from zaitcev@localhost)
	by ns1.metabyte.com (8.9.1a/8.9.1/akolb/110398) id VAA15897;
	Sun, 21 May 2000 21:25:52 -0700 (PDT)
From: Pete Zaitcev <zaitcev@metabyte.com>
Message-Id: <200005220425.VAA15897@ns1.metabyte.com>
Subject: gdb-5.0 build failure on Sparclinux (32 bits)
To: bug-gdb@gnu.org
Date: Sun, 21 May 2000 21:25:51 -0700 (PDT)
Cc: zaitcev@metabyte.com, jakub@redhat.com
X-Mailer: ELM [version 2.5 PL2]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Status: OR

Host and target are sparc-unknown-linux-gnu. Stock 5.0 fails to compile
with the following message:

../../gdb-5.0/gdb/sparc-tdep.c:1333: parse error before `prgregset_t'
../../gdb-5.0/gdb/sparc-tdep.c:1333: warning: data definition has no type or storage class

The following patch fixes the problem and allows to build:

diff -ur gdb-5.0/gdb/config/sparc/nm-linux.h gdb-5.0-p3/gdb/config/sparc/nm-linux.h
--- gdb-5.0/gdb/config/sparc/nm-linux.h	Mon Dec  6 19:56:12 1999
+++ gdb-5.0-p3/gdb/config/sparc/nm-linux.h	Sun May 21 14:06:28 2000
@@ -18,7 +18,17 @@
    Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-#include <nm-sysv4.h>
+/* Our /proc is "better than" (== "incompatible with") svr4 /proc. */
+#undef USE_PROC_FS
+
+/* SVR4 machines can easily do attach and detach via /proc (procfs.c)
+   support */
+
+#define ATTACH_DETACH
+
+/* Use SVR4 style shared library support */
+
+#define SVR4_SHARED_LIBS
 #include "solib.h"
 
 #define FETCH_INFERIOR_REGISTERS

Thank you,
--Pete

