Linking fortran to ROOT in IRIX6.5

Pasha Murat (murat@cdfsga.fnal.gov)
Wed, 19 May 1999 18:28:03 -0500 (CDT)


Scott Sampson writes:
>
> Hi,
>
> As I've mentionned before, my system has been upgraded from IRIX5.3
> to IRIX6.5, and I can no longer use ROOT shared libraries in my compiled
> code. Since I've had no luck getting a working ROOT for IRIX6.5,
> could someone help me with the following?
>
> I would like to use the version for IRIX5.3 and compile with the -o32
> option. That works. But I have a problem with fortran linking. I generate
> a .o file from fortran with the -o32 option, then when linking I use
>
> -I77 -lftn -L/cern/98/lib -lpdflib -lpacklib -lmathlib -lkernlib
>
> to link the fortran, but I get errors like
>
> ld: ERROR 33: Unresolved text symbol "s_copy" -- 1st referenced by
> /cern/98/lib/libpdflib.a(structm.o).
>
> Am I missing something? It did compile under IRIX5.3 with these
> arguments. Do I have to change something for IRIX6.5? Thanks,
>
> Scott
>

Hi Scott:
you have the wrong order of the libraries. Move the fortran
libraries down to the end of the link list:

-L/cern/98/lib -lpdflib -lpacklib -lmathlib -lkernlib -I77 -lftn

and you'll get to where you want.
-pasha