Subject: problems with ld
To: None <port-sun3@NetBSD.ORG>
From: Tuomo Tikkanen <>
List: port-sun3
Date: 07/19/1996 15:03:43

This is exactly a NetBSD issue, but I thought that here could be some gurus

My problem is that the ld in 4.1.1 doesn't work like supposed. I have
managed to compile tcsh and gcc OK with unpatched ld, but now as I have
tried to compile xterm the compilation stops to an error at linking phase
giving folowing error:

gcc -fpcc-struct-return -o xterm -O2      -L/opt/X11R6.1/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 -lSM -lICE
-lXext -lX11     -ltermcap
collect2: ld returned 2 exit status
ld: Undefined symbol
*** Error code 1
make: Fatal error: Command failed for target `xterm'

I have applied all the patches I could found for ld from and they helped just so much that before the
patches ld dumped a core at same phase. The problem is exactly the same
even if I use cc suplied with SunOS4.1.1.

Do you have any ideas what is going wrong here. My X11R6.1 is got from the
binary distribution from and gcc is version 2.7.2
compiled by myself. I'd like to get xterm compiled because it is a part of
my lifestyle :-).


 << Tuomo-Markus Tikkanen <<>>  Work: >>
 << Nokia Research Center <<>> Univ.:      >>
 << P.O. Box 45           <<>> Voice: +358 0 4376 6480                  >>
 << FIN-00211 HELSINKI    <<>>   FAX: +358 0 4376 6850                  >>
 <<         HOMEPAGE         >>