From Jagat.K.Sheth at wellsfargo.com  Mon Jun 30 18:47:50 2008
From: Jagat.K.Sheth at wellsfargo.com (Jagat.K.Sheth at wellsfargo.com)
Date: Mon, 30 Jun 2008 11:47:50 -0500
Subject: [Rd] AIX 5.3 --enable-R-shlib make error with R-2.7.1
Message-ID: <8A880C79FFE28546933CE022FE244C7C02BDC611@msgswbiadsm48.wellsfargo.com>

Using AIX 5.3 and gcc-4.2.1 for building R-2.7.1 with the following
configure flags

OBJECT_MODE=64
CC="gcc -maix64" 
CXX="g++ -maix64" 
F77="gfortran -maix64" 
FC="gfortran -maix64" 
CFLAGS="-g -O3" 
CXXFLAGS="-g -O3" 
FFLAGS="-g -O3" 
FCFLAGS="-g -O3" 
LDFLAGS="-L/$HOME/usr/local/lib/ppc64 -L/$HOME/usr/local/lib" 
CPPFLAGS="-I/$HOME/usr/include" 
./configure --disable-nls --without-iconv --prefix=$HOME/usr/local
--enable-R-shlib 

After a successful configuration, the make stops with the following
error on this system

make[3]: Entering directory
`/home/apps/crm_cm/n731661x/src/R-2.7.1/src/main'
gcc -maix64 -std=gnu99 -I../../src/extra/zlib -I../../src/extra/bzip2
-I../../src/extra/pcre  -I. -I../../src/include -I../../src/include
-I//users/apps/crm_cm/n731661x/usr/include -DHAVE_CONFIG_H
-mminimal-toc   -g -O3 -c Rmain.c -o Rmain.o
gcc -maix64 -std=gnu99 -Wl,-brtl -Wl,-bexpall -Wl,-bpT:0x100000000
-Wl,-bpD:0x110000000 -lc
-L//users/apps/crm_cm/n731661x/usr/local/lib/ppc64
-L//users/apps/crm_cm/n731661x/usr/local/lib -o R.bin Rmain.o
-L../../lib -lR
ld: 0711-317 ERROR: Undefined symbol: R_running_as_main_program
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
make[3]: *** [R.bin] Error 1
make[3]: Leaving directory
`/home/apps/crm_cm/n731661x/src/R-2.7.1/src/main'
make[2]: *** [R] Error 2
make[2]: Leaving directory
`/home/apps/crm_cm/n731661x/src/R-2.7.1/src/main'
make[1]: *** [R] Error 1
make[1]: Leaving directory `/home/apps/crm_cm/n731661x/src/R-2.7.1/src'
make: *** [R] Error 1

On the other hand, no problems on this system with the above
configuration building R<=2.6.2. Can also successfully build R-2.7.1
here without --enable-R-shlib.

Will be glad to experiment or provide more details if needed anytime. 

Thanks,
Jagat 


--
Jagat K. Sheth                                       
Prepayment Modeling and Economics  
Wells Fargo Home Mortgage                 
7911 Forsyth Boulevard
Suite 500, M5001-061
Clayton, MO 63105

Tel: (314)-726-4496
Fax: (314)-726-4483
jagat.k.sheth at wellsfargo.com



[Rd] AIX 5.3 --enable-R-shlib make error with R-2.7.1
Jagat.K.Sheth at wellsfargo.com