This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: build/824: gdb v5.2.1 build on a ncr/mpras failed with conflictingtypes
- From: Kevin Pendleton <kevin at electron-pc dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 16 Feb 2004 23:28:00 -0000
- Subject: Re: build/824: gdb v5.2.1 build on a ncr/mpras failed with conflictingtypes
- Reply-to: Kevin Pendleton <kevin at electron-pc dot com>
The following reply was made to PR build/824; it has been noted by GNATS.
From: Kevin Pendleton <kevin@electron-pc.com>
To: gdb-gnats@sources.redhat.com
Cc:
Subject: Re: build/824: gdb v5.2.1 build on a ncr/mpras failed with conflicting
types
Date: Mon, 16 Feb 2004 16:25:35 -0700
I have receive the same errors building gdb 6.0 on ncr/mpras
(i686-ncr-sysv4.3) using:
gcc (GCC) 3.3.2 (with --disable-nls)
GNU assembler 2.14 20030612 (binutils 2.14)
GNU Make 3.80
First I had to fix arpa/inet.h to remove the conflicting types (htons
and ntohs) and added #include "string.h" to
/usr/local/src/gdb-6.0/gdb/procfs.c to fix some declarations of strncmp,
etc. I still get these errors though:
/usr/gnu/bin/gcc -c -g -O2 -I. -I/usr/local/src/gdb-6.0/gdb
-I/usr/local/src/gdb-6.0/gdb/config
-DLOCALEDIR="\"/usr/gnu/share/locale\"" -DHAVE_CONFIG_H
-I/usr/local/src/gdb-6.0/gdb/../include/opcode
-I/usr/local/src/gdb-6.0/gdb/../readline/.. -I../bfd
-I/usr/local/src/gdb-6.0/gdb/../bfd
-I/usr/local/src/gdb-6.0/gdb/../include -I../intl
-I/usr/local/src/gdb-6.0/gdb/../intl -DMI_OUT=1 -Wimplicit
-Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses
-Wpointer-arith -Wuninitialized /usr/local/src/gdb-6.0/gdb/procfs.c
/usr/local/src/gdb-6.0/gdb/procfs.c: In function `create_procinfo':
/usr/local/src/gdb-6.0/gdb/procfs.c:678: warning: `parent' might be used
uninitialized in this function
/usr/local/src/gdb-6.0/gdb/procfs.c: In function `proc_nsysarg':
/usr/local/src/gdb-6.0/gdb/procfs.c:1282: error: structure has no member
named `pr_nsysarg'
/usr/local/src/gdb-6.0/gdb/procfs.c: In function `proc_sysargs':
/usr/local/src/gdb-6.0/gdb/procfs.c:1302: error: structure has no member
named `pr_sysarg'
/usr/local/src/gdb-6.0/gdb/procfs.c: In function `proc_syscall':
/usr/local/src/gdb-6.0/gdb/procfs.c:1322: error: structure has no member
named `pr_syscall'
/usr/local/src/gdb-6.0/gdb/procfs.c: In function `proc_get_nthreads':
/usr/local/src/gdb-6.0/gdb/procfs.c:3051: error: structure has no member
named `pr_nlwp'
/usr/local/src/gdb-6.0/gdb/procfs.c: In function `proc_get_current_thread':
/usr/local/src/gdb-6.0/gdb/procfs.c:3099: error: structure has no member
named `pr_who'
make[1]: *** [procfs.o] Error 1
make[1]: Leaving directory `/usr/local/src/gdb60/gdb'
make: *** [all-gdb] Error 2
My current version of GDB is 4.16.
Is there something else I need to be able to compile this? I'll send
any files or information that will help.
Thanks,
Kevin