This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Build failure for gdb-19981224 on UnixWare 2.1.1



Building the gdb-19981224 snapshot on UnixWare 2.1.1 failed with the following
link error.

gcc -g -O2        -o gdb \
 init.o version.o blockframe.o breakpoint.o findvar.o stack.o thread.o \
 source.o values.o eval.o valops.o valarith.o valprint.o printcmd.o symtab.o \
 symfile.o symmisc.o infcmd.o infrun.o command.o expprint.o environ.o \
 gdbarch.o gdbtypes.o copying.o i386-tdep.o i387-tdep.o ser-unix.o corelow.o \
 core-regset.o solib.o procfs.o fork-child.o i386v4-nat.o remote.o dcache.o \
 remote-utils.o tracepoint.o ax-general.o ax-gdb.o mem-break.o target.o \
 parse.o language.o c-exp.tab.o f-exp.tab.o m2-exp.tab.o buildsym.o exec.o \
 bcache.o objfiles.o minsyms.o maint.o demangle.o dbxread.o coffread.o \
 elfread.o dwarfread.o dwarf2read.o mipsread.o stabsread.o corefile.o \
 c-lang.o ch-exp.o ch-lang.o f-lang.o m2-lang.o scm-exp.o scm-lang.o \
 scm-valprint.o complaints.o typeprint.o c-typeprint.o ch-typeprint.o \
 f-typeprint.o m2-typeprint.o c-valprint.o cp-valprint.o ch-valprint.o \
 f-valprint.o m2-valprint.o nlmread.o serial.o mdebugread.o os9kread.o top.o \
 utils.o annotate.o main.o inflow.o gnu-regex.o \
 ../bfd/libbfd.a ../readline/libreadline.a ../opcodes/libopcodes.a \
 ./../intl/libintl.a ../libiberty/libiberty.a \
 -ltermlib -lsocket -lnsl -lm ../libiberty/libiberty.a 
UX:ld: ERROR: /usr/lib/libnsl.so: libelf error:  Memory error: vm stats
elf_begin: 
make[1]: *** [gdb] Error 1
make[1]: Leaving directory `/var/src/gdb-19981224/gdb'
make: *** [all-gdb] Error 2

$ uname -a
UNIX_SV marmalade 4.2MP 2.1.1 i386 x86at
$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/i386-pc-sysv4.2uw2.1.1/2.7.2p/specs
gcc version 2.7.2p snapshot 970713
$ cat config.status
#!/bin/sh
# This file was generated automatically by configure.  Do not edit.
# This directory was configured as follows:
./configure --host=i386-pc-sysv4.2uw2.1.1 --norecursion 
# using "mh-frag"

To get this far I needed to add the following lines to gdb/config.h for
gdb/procfs.c to compile.

#define HAVE_PSTATUS_T  1
#define HAVE_NO_PRRUN_T 1
#define UNIXWARE    1
#define PROCFS_USE_READ_WRITE   1

I'll try again with egcs-1.1.1 and maybe a new binutils ld
(When I've built them).