Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!bu.edu!purdue!ccncsu!handel.CS.ColoState.Edu!flatau From: flatau@handel.CS.ColoState.Edu (flatau) Newsgroups: comp.unix.aix Subject: Problem when linking fairly large FORTRAN object files Keywords: AIX3.1, RISC6000, link, FORTRAN Message-ID: <11256@ccncsu.ColoState.EDU> Date: 16 Nov 90 05:43:02 GMT Sender: news@ccncsu.ColoState.EDU Reply-To: flatau@handel.UUCP (flatau) Organization: Colorado State University, Fort Collins, CO 80523 Lines: 43 I am having problems linking (fairly large, 30K lines) FORTRAN program on RISC6000/320 AIX3.1 + 3002 (September) update, 16Mb: I have a library, say "rams.a" made with "ar r" command. This library contains about 10 modules (approx 1000 lines each), and each module contains several FORTRAN subroutines (i.e. I am NOT fsplitting them). Next, I am linking several *.o files with xlf -o ramsexe *.o rams.a this results in unsatisfied external refs, even though, I am certain these externals are in the library. I have traced the problem a bit further: seems like removing one particular object file from *.o list makes the problem to go away. However, this particular object file is not unusual in any way. If I keep the library in the object form and link everything (model + library) as xlf -o ramsexe *.o (i.e. *.o contains all objects needed) the executable is created and no problem with unsatisfied externals appears. However, all objects have to be in ONE subdirectory. Clues: a) I tried the same procedure on SUN -- the library stuff works just as expected. b) I tried the same procedure on RISC600 but with small files and it works. c) If I fsplit files before making the library, the problem goes away. Questions: 1) Are there any problems on RISC6000 when linking many, fairly large, objects ? 2) Any suggestions ? Peter