This is the mail archive of the gdb-patches@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]

[PATCH]: configure's member som_addr in struct so_map check


I will be committing this change shortly.

On old *BSD systems, nlist.h must be included before link.h.  This was
fixed for solib-legacy.c back in march, but the configure script needs
to do the same thing when checking for member som_addr in struct so_map.
Otherwise, the check fails and as a result the "guts" of legacy_svr4_-
fetch_link_map_offsets() are ommitted.

I discovered this when testing on one of my NetBSD 1.3 machines.

        --jtc

2001-06-22  J.T. Conklin  <jtc@redback.com>

	* configure.in: include nlist.h when checking for member som_addr
	in struct so_map.
	* configure: regenerate.

Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.63
diff -c -r1.63 configure.in
*** configure.in	2001/03/31 18:09:02	1.63
--- configure.in	2001/06/22 15:52:52
***************
*** 341,346 ****
--- 341,349 ----
    AC_MSG_CHECKING(for member som_addr in struct so_map)
    AC_CACHE_VAL(gdb_cv_have_struct_so_map_with_som_members,
      [AC_TRY_COMPILE([#include <sys/types.h>
+ #ifdef HAVE_NLIST_H
+ #include <nlist.h>
+ #endif
  #include <link.h>],
                      [struct so_map lm; (void) lm.som_addr;],
                      gdb_cv_have_struct_so_map_with_som_members=yes,



-- 
J.T. Conklin
RedBack Networks


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