From Jagat.K.Sheth at wellsfargo.com  Wed Jul  2 15:42:50 2008
From: Jagat.K.Sheth at wellsfargo.com (Jagat.K.Sheth at wellsfargo.com)
Date: Wed, 2 Jul 2008 08:42:50 -0500
Subject: [Rd] AIX 5.3 --enable-R-shlib make error with R-2.7.1
References: <8A880C79FFE28546933CE022FE244C7C02BDC611@msgswbiadsm48.wellsfargo.com>
	<dc41e1260807010605l25659e6dl9514c1c31a7b00c7@mail.gmail.com>
Message-ID: <8A880C79FFE28546933CE022FE244C7C02C08234@msgswbiadsm48.wellsfargo.com>

The patches were successful on this end. 

Many thanks to Ei-ji.


-----Original Message-----
From: rim.nakama at gmail.com [mailto:rim.nakama at gmail.com] On Behalf Of
Ei-ji Nakama
Sent: Tuesday, July 01, 2008 8:06 AM
To: Sheth, Jagat K
Cc: r-devel at r-project.org
Subject: Re: [Rd] AIX 5.3 --enable-R-shlib make error with R-2.7.1

Hi

Perhaps I think that there is a possibility that success of former link
was my hallucination...

Please try this patch if you like.
http://prs.ism.ac.jp/~nakama/AIX/aix_R-2.7.1_Rshlib_include_configure.pa
tch

Some problems are left in gcc, but think that the make is possible.

If you want to eat iconv, please cook the following.
http://prs.ism.ac.jp/~nakama/AIX/AIX_iconv_CookBook.txt

However, a problem occurred in checkFF and nls when I built it in gcc.

Because nls and checkFF do not have any problem with a commercial
compiler, I think that there is a problem in recent gcc side

2008/7/1  <Jagat.K.Sheth at 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
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>
>



--
EI-JI Nakama <nakama at ki.rim.or.jp>
"\u4e2d\u9593\u6804\u6cbb" <nakama at ki.rim.or.jp>



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