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]

[RFA] config/i386/i386sol2.mh: Add XM_CLIBS definition


As ser-tcp.o is now used unconditionally on most platforms, Solaris x86 GDB
no longer links:

gcc -g -O2 -W -Wall         -o gdb main.o libgdb.a    ../bfd/libbfd.a ../readli
ne/libreadline.a ../opcodes/libopcodes.a  ../libiberty/libiberty.a -ltermlib
 -ldl -lm -lsocket ../mmalloc/libmmalloc.a ../libiberty/libiberty.a
Undefined                       first referenced
 symbol                             in file
gethostbyname                       libgdb.a(ser-tcp.o)  (symbol belongs to impl
icit dependency /usr/lib/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written to gdb


The obvious fix, copied from config/sparc/sun4sol2.mh (and yes I know,
XM_CLIBS should perhaps be autoconfed, but it would affect platforms I don't
have access to): 

	* config/i386/i386sol2.mh:  Add XM_CLIBS definition to resolve
	reference to gethostbyname.

*** ./config/i386/i386sol2.mh.orig	Tue Feb  1 04:19:14 2000
--- ./config/i386/i386sol2.mh	Fri Sep 15 21:36:50 2000
***************
*** 2,7 ****
--- 2,8 ----
  
  XM_FILE= xm-i386v4.h
  XDEPFILES= 
+ XM_CLIBS= -lsocket -lnsl
  
  NAT_FILE= nm-i386sol2.h
  NATDEPFILES= core-regset.o fork-child.o i386v4-nat.o corelow.o procfs.o \

-- 
Peter Schauer			pes@regent.e-technik.tu-muenchen.de

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