Hi, I have some Problems compiling/linking R under AIX 4.3 Here what kind of compilers I use: $ /usr/local/bin/gcc -v Reading specs from /usr/local/lib/gcc/powerpc-ibm-aix4.3.2.0/3.4.3/specs Configured with: ../gcc-3.4.3/configure --disable-nls --disable-aix64 Thread model: aix gcc version 3.4.3 $ /usr/local/bin/ld -v GNU ld version 2.16 and then the IBM Fortran Compiler 'xlf95' I run configure. then start make (gnu-make) Had problem in pcre but fixed this if I use: /usr/local/bin/make MAIN_LD="/usr/local/bin/gcc" then I run into the following problem with dynamic linking: make[4]: Entering directory `/home/mau/sy/R-2.2.0/src/modules/X11' /usr/local/bin/gcc -Wl,-bM:SRE -Wl,-H512 -Wl,-T512 -Wl,-bnoentry -Wl,-bexpall -Wl,-bI:../../../etc/R.exp -L/usr/local/lib -o R_X11.so dataentry.lo devX11.lo rotated.lo rbitmap.lo -lSM -lICE -lX11 -ljpeg -lpng -lz /usr/local/lib/gcc/powerpc-ibm-aix4.3.2.0/3.4.3/../../../../powerpc-ibm-aix4.3.2.0/bin/ld: -static and -shared may not be used together collect2: ld returned 1 exit status make[4]: *** [R_X11.so] Error 1 If I add -Wl,-G the same error! If I unset SHLIB_LDFLAGS % $MAKE SHLIB_LDFLAGS=" " make[4]: Entering directory `/home/mau/sy/R-2.2.0/src/modules/X11' /usr/local/bin/gcc -L/usr/local/lib -o R_X11.so dataentry.lo devX11.lo rotated.lo rbitmap.lo -lSM -lICE -lX11 -ljpeg -lpng -lz /lib/crt0.o: :(.pr+0x88): undefined reference to `.main' collect2: ld returned 1 exit status SHLIB_LDFLAGS="-Wl,-Bdynamic" Entering directory `/home/mau/sy/R-2.2.0/src/modules/X11' /usr/local/bin/gcc -Wl,-Bdynamic -L/usr/local/lib -o R_X11.so dataentry.lo devX11.lo rotated.lo rbitmap.lo -lSM -lICE -lX11 -ljpeg -lpng -lz /lib/crt0.o: :(.pr+0x88): undefined reference to `.main' collect2: ld returned 1 exit status make[4]: *** [R_X11.so] Error 1 make[4]: Leaving directory `/home/mau/sy/R-2.2.0/src/modules/X11' That it until now. Does anbody has compiled and linked R under AIX 4.3 ? Should I try to get the IBM C Compiler will this work better ? Thanks for an information Reinhard