Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* CVS build for Solaris 5.8 fails: elfcore_write_prpsinfo undefined
@ 2008-10-31 17:57 Klaus Zeitler
  2008-11-01  1:19 ` Joel Brobecker
  0 siblings, 1 reply; 4+ messages in thread
From: Klaus Zeitler @ 2008-10-31 17:57 UTC (permalink / raw)
  To: gdb-patches

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-11-01 23:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-31 17:57 CVS build for Solaris 5.8 fails: elfcore_write_prpsinfo undefined Klaus Zeitler
2008-11-01  1:19 ` Joel Brobecker
2008-11-01 22:18   ` Joel Brobecker
2008-11-01 23:31     ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox