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

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
   __Q_get_rp_rd
   _dlclose
   _dlopen
   _dlsym
   _nl_langinfo
*** Error code 1
make: Fatal error: Command failed for target `xterm'


I have applied all the patches I could found for ld from
doener.unix-ag.uni-kl.de 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 doener.unix-ag.uni-kl.de 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 :-).

Yours,

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