This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
solib.c won't compile on ARM Linux...
- To: GDB Mailing List <gdb at sourceware dot cygnus dot com>
- Subject: solib.c won't compile on ARM Linux...
- From: Scott Bambrough <scottb at netwinder dot org>
- Date: Thu, 07 Sep 2000 10:42:39 -0400
- Organization: Rebel.com
gcc -c -g -O2 -I. -I../../gdb-main/gdb -I../../gdb-main/gdb/config
-DHAVE_CONFIG_H
-I../../gdb-main/gdb/../include/opcode -I../../gdb-main/gdb/../readline/..
-I../bfd -I../../gdb-main/gdb/../bfd
-I../../gdb-main/gdb/../include -I../intl -I../../gdb-main/gdb/../intl
-DUI_OUT=1 -Wimplicit -Wreturn-type -Wcomment
-Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized
../../gdb-main/gdb/solib.c
../../gdb-main/gdb/solib.c:163: field `lm32' has incomplete type
../../gdb-main/gdb/solib.c: In function `first_link_map_member':
../../gdb-main/gdb/solib.c:1043: sizeof applied to an incomplete type
../../gdb-main/gdb/solib.c:1044: invalid use of undefined type `struct
r_debug32'
../../gdb-main/gdb/solib.c: In function `open_symbol_file_object':
../../gdb-main/gdb/solib.c:1104: storage size of `lmcopy' isn't known
../../gdb-main/gdb/solib.c: In function `current_sos':
../../gdb-main/gdb/solib.c:1261: sizeof applied to an incomplete type
../../gdb-main/gdb/solib.c: In function `symbol_add_stub':
../../gdb-main/gdb/solib.c:1324: warning: `lowest_index' might be used
uninitialized in this function
../../gdb-main/gdb/solib.c: In function `info_sharedlibrary_command':
../../gdb-main/gdb/solib.c:1650: warning: `addr_width' might be used
uninitialized in this function
../../gdb-main/gdb/solib.c:1651: warning: `addr_fmt' might be used uninitialized
in this function
../../gdb-main/gdb/solib.c: At top level:
../../gdb-main/gdb/solib.c:147: storage size of `debug32_copy' isn't known
make[1]: *** [solib.o] Error 1
make[1]: Leaving directory `/home/scottb/cvstree/gdb-main-build/gdb'
make: *** [all-gdb] Error 2
I had a look at this. The problem is in configuration.
HAVE_STRUCT_LINK_MAP32=1 and I don't have it. I had a look at the test, and it
seems to try to compile a file with #include sys/link.h. I don't have any such
file. I suspect the compile fails, and the define gets set to 1 incorrectly.
I'm using glibc 2.1.3 on a NetWinder.
Scott
--
Scott Bambrough - Software Engineer
REBEL.COM http://www.rebel.com
NetWinder http://www.netwinder.org