This is the mail archive of the gdb@sources.redhat.com 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]

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.


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