Subject: error compiling g03 on RedHat 8.0 with pgi v5.02

From: Rolf Trinoga <trinoga..at..mpi-muelheim.mpg.de>
Date: Wed, 3 Sep 2003 15:01:03 +0200

Hi,
after upgrading to the Portland Group Compiler V5.02 on a RedHat 8.0 system
it is not possible to compile g03 rev B01.

[root@icmaster g03]# uname -a
Linux icmaster 2.4.18-14custom #2 SMP Wed May 28 17:59:11 CEST 2003 i686 i686 
i386 GNU/Linux

First the location of the compiler and libs changed to:
$(PGI)/linux86/5.0/

I corrected this:
cd bsd
vi bldg03
Changes in bldg03:
#  else if (-e $PGI/linux86/bin/pgf77) then
  else if (-e $PGI/linux86i/5.0/bin/pgf77) then

vi i386.make
Changes in i386.make:
#PGILIBSL = $(PGI)/linux86/lib/libpgthread.so $(PGI)/linux86/lib/libpgc.so 
$(PGI)/linux86/lib/libpgftnrtl.a
PGILIBSL = $(PGI)/linux86/5.0/lib/libpgthread.so 
$(PGI)/linux86/5.0/lib/libpgc.so $(PGI)/linux86/5.0/lib/libpgftnrtl.a

[root@icmaster bsd]# cd ..
[root@icmaster g03]# chmod +x bsd/install
[root@icmaster g03]# bsd/install
[root@icmaster g03]# bsd/bldg03 >& bldg03.log&
[1] 2109
[root@icmaster g03]#

The compilation stops with this error:
Error while building g03:
make[1]: Leaving directory `/opt/g03'
pgf77   -mp  -O2 -tp p7 -Mreentrant -Mrecursive -Mnosave -Minfo -Mneginfo 
-time -fast -Munroll -Mvect=assoc,recog,cachesize:524288,prefetch,sse 
-fastsse -Mscalarsse -o l202.exe ml202.o  l202.a  util.so   -lm -lc
l202.a(prtsgop.o): In function `prtsgop_':
prtsgop.o(.text+0xa4): undefined reference to `irtyp_'
l202.a(bldgen.o): In function `bldgen_':
bldgen.o(.text+0x38): undefined reference to `iseat1_'
make: *** [l202.exe] Error 2
if ( -e flc ) then
endif

How can I correct this?
Thank you very much in advance.

Best wishes,

Rolf Trinoga
Max-Planck-Institut fuer Bioanorganische Chemie
Stiftstr. 34-36
D-45470 Muelheim a.d. Ruhr
Germany