This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

CVS build for Solaris 5.8 fails: elfcore_write_prpsinfo undefined


The CVS version of gdb gives the following error for a Solaris 5.8 build:

gcc -g -O2      \
                -o gdb gdb.o libgdb.a \
                   ../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a -lintl ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a     -ldl -lncurses -lz -lsocket -lnsl -lm   ../libiberty/libiberty.a  gnulib/libgnu.a
Undefined                       first referenced
 symbol                             in file
elfcore_write_prpsinfo              libgdb.a(procfs.o)
elfcore_write_prstatus              libgdb.a(procfs.o)
ld: fatal: Symbol referencing errors. No output written to gdb
collect2: ld returned 1 exit status
make[2]: *** [gdb] Error 1
make[2]: Leaving directory `/vol/freeware/SunOS-5.8/build/gdb-cvs/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/vol/freeware/SunOS-5.8/build/gdb-cvs'
make: *** [all] Error 2
ERROR: gdb: make


I noticed that these 2 functions are defined in elf.c.
They are enclosed there with:
#if defined (HAVE_PRPSINFO_T) || defined (HAVE_PSINFO_T)
but the function calls in procfs.c are not.

I'm not sure if any of the 2 defines HAVE_PRPSINFO_T or HAVE_PSINFO_T
should be set for Solaris 5.8 (I guess I'd have to understand the code
in the configure script), but I think that the calls in procfs.c
need the same #ifs as in elf.c.

I enclosed the 2 function calls in procfs.c also with
#if defined (HAVE_PRPSINFO_T) || defined (HAVE_PSINFO_T)
and was able to build (and run) gdb.


Klaus

-- 
 -----------------------------------------------------
|  Klaus Zeitler      Between a rock and a hard place |
|  Email:             kzeitler@alcatel-lucent.com     |
 -----------------------------------------------------
---
If you think nobody cares if you're alive, try missing
a couple of car payments.               -- Earl Wilson


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