Subject: ld: internal error
To: MacBSD General <macbsd-general@NetBSD.ORG>
From: Dave Leonard <d@leonard.dialup.dstc.edu.au>
List: macbsd-general
Date: 06/13/1995 17:17:31
erm, anyone know what causes this? I've made clean and changed -L options
and remade from scratch a couple of times now. Other programs link fine..

	gcc -o xterm -O3 -L/usr/X11R6/lib main.o input.o charproc.o
	 cursor.o util.o tabs.o screen.o scrollbar.o button.o
	 Tekproc.o misc.o VTPrsTbl.o TekPrsTbl.o data.o menu.o -lXaw
	 -lXmu -lXt -lX11 -lXt -lSM -lICE -lXext -lX11 -ltermcap

	ld: internal error:wrong number (356) of global symbols
	 written into output file, should be 358 *** Error code 1

it works when i statically link..
could it be something to do with -lc or -ltermcap?

 720 -r--r--r--  1 bin   bin    354725 May  4  1994 /usr/lib/libc.so.9.0
 672 -r--r--r--  1 bin   bin    333864 Oct 20  1994 /usr/lib/libc.so.12.0
 816 -r--r--r--  1 bin   bin    408802 May 23 08:27 /usr/lib/libc.so.12.3
 880 -r--r--r--  1 bin   bin    435968 May 23 08:27 /usr/lib/libc.a
   6 -r--r--r--  2 bin   bin      2938 May 23 08:30 /usr/lib/libtermcap.a
  34 -r--r--r--  2 bin   bin     17034 May 23 08:30 /usr/lib/libtermcap.so.0.0

d
-- 
David Leonard                            BE(Comp)/BCompSc 5th year student
The University of Queensland             s160828@student.uq.edu.au