Greetings,

GDB 5.1, configured with

./configure --prefix=/opt/gdb --host=hppa64-hp-hpux11.11

for HP-UX hpux B.11.11 U 9000/800:

Linking of gdb binary fails with:

gcc -g -O2  -D__HP_CURSES       -o gdb 
 main.o libgdb.a cli-decode.o cli-script.o cli-cmds.o cli-setshow.o
 cli-utils.o mi-out.o mi-console.o mi-cmds.o mi-cmd-var.o mi-cmd-break.o
 mi-cmd-stack.o mi-cmd-disas.o mi-main.o mi-parse.o mi-getopt.o
 ../bfd/libbfd.a ../readline/libreadline.a ../opcodes/libopcodes.a
 ./../intl/libintl.a ../libiberty/libiberty.a -lcurses     -lm
 ../libiberty/libiberty.a
libgdb.a(remote.o): In function `remote_open_1':
/home/azure/src/gdb-5.1/gdb/remote.c:2197: undefined reference to
 `no_shared_libraries'

This would seem to happen because remote.c assumes that
no_shared_libraries is provided whenever SOLIB_CREATE_INFERIOR_HOOK
is defined, but this is not the case when pa64solib.{c,h} is used
on HP-UX (and not solib.{c,h}, which does provide
no_shared_libraries).

-- 
Hannu

_______________________________________________
Bug-gdb mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gdb

Reply via email to