Laurent Gautier
2002-Dec-25 06:26 UTC
[R] Compiling on IBM AIX. The package 'cluster' causes trouble...
Hi (and Merry Christmas),
I am trying to compile R on an AIX IBM machine using
the native C and FORTRAN compilers... and everything
goes smoothly (congratulations for the configure and
make files, this is very nice)... until the pacakge
'cluster' (see dump below)....
Any hint ?
Laurent
1501-510 Compilation successful for file pam.f.
cc -I/data1/laurent/R-1.6.1/include -I/usr/local/include -g -O2 -c
spannel.c -o spannel.o
f77 -O2 -c twins.f -o twins.o
** twins === End of Compilation 1 ==** averl === End of Compilation 2 ==**
banag === End of Compilation 3 ==** splyt === End of Compilation 4 ==**
supcl === End of Compilation 5 ==** bandy === End of Compilation 6
==1501-510 Compilation successful for file twins.f.
cc -Wl,-bM:SRE -Wl,-H512 -Wl,-T512 -Wl,-bnoentry -Wl,-bexpall -Wl,-bI:/d
ata1/laurent/R-1.6.1/etc/R.exp -L/usr/local/lib -o cluster.so clara.o daisy.o fa
nny.o meet.o mona.o pam.o spannel.o twins.o -L/usr/local/lib -lreadline -ldl -l
termcap -lm -lxlf90 -lxlopt -lxlf -lxlomp_ser -lm
ld: 0711-317 ERROR: Undefined symbol: .meet_
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
make: 1254-004 The error code from the last command is 8.
Stop.
ERROR: compilation failed for package 'cluster'
make: 1254-004 The error code from the last command is 5.
Thomas Lumley
2002-Dec-25 16:58 UTC
[R] Compiling on IBM AIX. The package 'cluster' causes trouble...
On Wed, 25 Dec 2002, Laurent Gautier wrote:> Hi (and Merry Christmas), > > I am trying to compile R on an AIX IBM machine using > the native C and FORTRAN compilers... and everything > goes smoothly (congratulations for the configure and > make files, this is very nice)... until the pacakge > 'cluster' (see dump below).... >In cluster.h and clara.c the Fortran function meet() is coded as meet_() and the AIX compilers don't append an underscore. You could remove the underscore or even better use F77_CALL(meet) -thomas