This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
gdb/procfs.c linkage failure on alpha-dec-osf4.0f
- From: rbrown64 at csc dot com dot au
- To: Michael Snyder <msnyder at redhat dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 22 Jan 2002 19:37:19 +1100
- Subject: gdb/procfs.c linkage failure on alpha-dec-osf4.0f
gdb fails to link on alpha-dec-osf4.0f as follows :-
/usr/bin/ld:
Unresolved:
elfcore_write_prstatus
elfcore_write_prfpreg
elfcore_write_prpsinfo
collect2: ld returned 1 exit status
make[1]: *** [gdb] Error 1
make[1]: Leaving directory
`/user/rand/rdb/src/gdb+dejagnu-20020112.obj/gdb'
The target is a ?COFF platform so gdb/procfs.c calling elfcore_write
routines is
inappropriate (& the structures don't exist).
I don't think the current configury gives enough information to distinguish
the cases
- the choices are being made based on NEW_PROC_API , HAVE_PSTATUS_T
and HAVE_PROCFS_PIOCSET.
To distinguish Solaris 2.5.1 from OSF1 V4.0f
(Both are !NEW_PROC_API && HAVE_PROCFS_PIOCSET)
you probably need to check for HAVE_PRSTATUS_T in sys/procfs.h like bdf
does.
HAVE_PROCFS_PIOCSET NEW_PROC_API
HAVE_PSTATUS_T
Solaris 2.5.1 TRUE FALSE
FALSE
OSF1 V4.0 TRUE FALSE
FALSE
Solaris 2.7 TRUE TRUE
FALSE
UnixWare 7.1.0 FALSE TRUE
TRUE
Solaris has HAVE_PRSTATUS_T in 2.5.1 and 2.7.