From nakama at ki.rim.or.jp  Thu Jul 17 17:12:25 2008
From: nakama at ki.rim.or.jp (Ei-ji Nakama)
Date: Fri, 18 Jul 2008 00:12:25 +0900
Subject: [Rd] AIX 5.3 --enable-R-shlib --with-x ---with-iconv make error
	with R-2.7.0 and R-2.7.1
In-Reply-To: <e936a3d0807170359p62155163oe85a437d91506b98@mail.gmail.com>
References: <e936a3d0807170359p62155163oe85a437d91506b98@mail.gmail.com>
Message-ID: <dc41e1260807170812q32f9e9f1y4599dfbbbb348f53@mail.gmail.com>

Hi, sorry buggy English.

Did you cook this patch?
http://prs.ism.ac.jp/~nakama/AIX/aix_R-2.7.1_Rshlib_include_configure.patch

However, cooking of this patch is bad on AIX.
Therefore I put the thing which was finished with cooking.

http://prs.ism.ac.jp/~nakama/AIX/R-2.7.1.aix080701.tar.gz

I do a wish of tasting to you.

2008/7/17 F?n L?ng <foylong at gmail.com>:
> ----------------------------------------------------------
> ./configure \
>           CC="xlc_r -q64" \
>           CFLAGS="-O -qstrict" \
>           CXX="xlC_r -q64" \
>           CXXFLAGS="-O -qstrict" \
>           F77="xlf_r -q64" \
>           AR="ar -X64" \
>           CPPFLAGS="-I/my_libiconv_dir/include -I/usr/lpp/X11/include/X11" \
>           LDFLAGS="-L/my_libiconv_dir/lib -L/usr/lib -L/usr/X11R6/lib
> -L/my_buildR_dir/R-2.7.0/lib" \
>           --prefix=/my_R_dir \
>           --enable-R-shlib \
>           --enable-BLAS-shlib \
>           --with-x \
>           --with-readline=no \
>           --with-libiconv-prefix="/my_libiconv_dir"

``export OBJECT_MODE=64'' had better set it.
--with-libiconv-prefix are not reflected.

>  Options enabled:           shared BLAS, R profiling, Java

libjpeg and libjpeg-6b of java do conflict in my environment.
I remove PATH of the JAVA at the time of the construction.

> You see the symbols d1mach, interv, TYPEOF, R_CHAR and Rf_isString,
> were not found. As for the library dependence, I add
> /my_libiconv_dir/lib to my LIBPATH to make sure libR.so etc. can find
> the libiconv. Thus, stats.so and tools.so could have be loaded. I
> don't know where I made a mistake. After looking up the R manual and
> diving into Google for help, I've got no usable answer.

I had the sense that GC of ld turned into recently.
Probably former specifications may be bugs.

> Below environment variables may associated:
> LIBPATH="/my_libiconv_dir/lib:.:/rnd/homes/my/rdir/AIX/R-2.7.0/lib/R/lib:.:/usr/lib:/lib"
     <snip>
> R_HOME="/rnd/homes/my/rdir/AIX/R-2.7.0"

Because R add it in a shell of ``bin/R'', let's add LIBPATH when it
was said that there is not it.

best,
-- 
EI-JI Nakama <nakama (a) ki.rim.or.jp>
"\u4e2d\u9593\u6804\u6cbb" <nakama (a) ki.rim.or.jp>



[Rd] AIX 5.3 --enable-R-shlib --with-x ---with-iconv make error with R-2.7.0 and R-2.7.1
Ei-ji Nakama