[Rd] Compiling R (1.3.0) on AIX (4.3) fails (PR#1034)

Kurt Hornik Kurt.Hornik@ci.tuwien.ac.at
Mon, 30 Jul 2001 09:35:17 +0200


>>>>> Thomas Vogels writes:

> ripley@stats.ox.ac.uk writes:

>> On Sun, 29 Jul 2001 vogels@cmu.edu wrote:
>> 
>> > Hi,
>> >
>> > This email reports bugs in acinclude.m4, src/library/tcltk/src/Makefile,
>> > and share/perl/Rd2contents.pl.  It is based on R-patched.tgz from 07/27/2001
>> > (R 1.3.0) and comes from trying to compile R on AIX 4.3.
>> 
>> Would that be 2001-07-27?  Not all of us live in countries that flout ISO
>> standards!

> Oops.  Should have used the contents of the date stamp file...

>> > 1) acinclude.m4:  A string on line 3096 starts with a single quote: ' but
>> > is terminated with a double quote: ".  (This leads to the weird error
>> > message that configure can't execute 'shared' on line 4060.)
>> >      The fix is simply to use single quotes both times:
>> > allow_undefined_flag='${wl}-berok'
>> 
>> That is a generated file.  It coems from m4/libtool.m4.

> ...which means I should have said...
>  Line 1473 in m4/libtool.m4 contains the unterminated string.

> Hmm, should the name of the file suggest to me that it's part of some
> other package, like 'libtool', and I should file a bug report with
> it's maintainer?

Fixed now.  The file comes from libtool 1.4.  Unfortunately, we have to
patch it ourselves, as the libtool 1.4 `patch release' suddenly requires
autoconf 2.50 ...

>> > 2) after configure (with CC=gcc but using AIX's linker /usr/bin/ld), the
>> > Makefile in src/library/tcltk/src doesn't protect the linker flags -bI
>> > with -Xlinker! (-Xlinker is required when using gcc so that the linker flags
>> > are passed on to ld correctly.  Which I know that you know...)
>> >   The fix is to add -Xlinker before every -bI. Sorry, haven't looked into
>> > patching configure yet...

Very strange.  Configure has

  *aix4.[2-9]*)
    EXPORTFILE="\$(top_builddir)/etc/R.exp"
    cpicflags=
    cxxpicflags=
    fpicflags=
    wl="-Wl,"
    main_ldflags="${wl}-bdynamic ${wl}-bE:${EXPORTFILE} ${wl}-bM:SRE"
    shlib_ldflags="${wl}-bM:SRE ${wl}-H512 ${wl}-T512 ${wl}-bnoentry \
      ${wl}-bexpall ${wl}-bI:\$(R_HOME)/etc/R.exp"
    SHLIB_LIBADD="\$(LIBM)"
    ;;

so unless I am missing something obvious all linker flages are protected
via `-Wl,' (which should also work if the C compiler is not gcc).

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._