[R] R 1.7.0 fails to compile on OS X 10.2.5

Kieran Healy khealy at kieranhealy.org
Mon Apr 21 00:02:01 CEST 2003


Hello -

I'm trying to compile R 1.7.0 on a PowerBook running OS X 10.2.5. I've 
compiled R (1.6.2) successfully before on this machine, under either 
10.2.3 or 10.2.4. My gcc is from the latest Apple Developer Tools 
release and the g77 is up-to-date via Fink. R passes ./configure just 
fine, with the following options:

R is now configured for powerpc-apple-darwin6.5

   Source directory:          .
   Installation directory:    /usr/local

   C compiler:                gcc  -g -O2
   C++ compiler:              g++  -g -O2
   Fortran compiler:          g77  -g -O2

   Interfaces supported:      X11, tcltk
   External libraries:
   Additional capabilities:   PNG, JPEG, bzip2, PCRE
   Options enabled:           R profiling

   Recommended packages:      yes

Compilation proceeds as normal for a while (though with occasional 
warnings), and then terminates with the following series of warnings 
and errors:

gcc -bundle -flat_namespace -undefined suppress -L/sw/lib 
-L/usr/local/lib -o R_X11.so  dataentry.lo devX11.lo rotated.lo 
rbitmap.lo  -lSM -lICE -L/usr/X11R6/lib -lX11  -ljpeg -lpng -lz  -lbz2 
-lz -ldl -lncurses -lm
ld: warning dynamic shared library: /usr/lib/libz.dylib not made a weak 
library in output with MACOSX_DEPLOYMENT_TARGET environment variable 
set to: 10.1
/Users/kjhealy/downloads/R-1.7.0/modules/R_X11.so is unchanged
making Rsock.d from Rsock.c
making internet.d from internet.c
making nanoftp.d from nanoftp.c
making nanohttp.d from nanohttp.c
making sock.d from sock.c
making sockconn.d from sockconn.c
gcc -no-cpp-precomp -I. -I../../../src/include -I../../../src/include 
-I/sw/include -I/usr/local/include -DHAVE_CONFIG_H  -fno-common  -g -O2 
-c Rsock.c -o Rsock.lo
Rsock.c: In function `R_SockConnect':
Rsock.c:380: warning: passing arg 5 of `getsockopt' from incompatible 
pointer type
gcc -no-cpp-precomp -I. -I../../../src/include -I../../../src/include 
-I/sw/include -I/usr/local/include -DHAVE_CONFIG_H  -fno-common  -g -O2 
-c internet.c -o internet.lo
gcc -no-cpp-precomp -I. -I../../../src/include -I../../../src/include 
-I/sw/include -I/usr/local/include -DHAVE_CONFIG_H  -fno-common  -g -O2 
-c nanoftp.c -o nanoftp.lo
nanoftp.c: In function `RxmlNanoFTPGetConnection':
nanoftp.c:1175: warning: passing arg 3 of `getsockname' from 
incompatible pointer type
nanoftp.c:1182: warning: passing arg 3 of `getsockname' from 
incompatible pointer type
gcc -no-cpp-precomp -I. -I../../../src/include -I../../../src/include 
-I/sw/include -I/usr/local/include -DHAVE_CONFIG_H  -fno-common  -g -O2 
-c nanohttp.c -o nanohttp.lo
nanohttp.c: In function `RxmlNanoHTTPConnectAttempt':
nanohttp.c:909: warning: passing arg 5 of `getsockopt' from 
incompatible pointer type
gcc -no-cpp-precomp -I. -I../../../src/include -I../../../src/include 
-I/sw/include -I/usr/local/include -DHAVE_CONFIG_H  -fno-common  -g -O2 
-c sock.c -o sock.lo
sock.c: In function `Sock_listen':
sock.c:189: warning: passing arg 3 of `accept' from incompatible 
pointer type
gcc -no-cpp-precomp -I. -I../../../src/include -I../../../src/include 
-I/sw/include -I/usr/local/include -DHAVE_CONFIG_H  -fno-common  -g -O2 
-c sockconn.c -o sockconn.lo
gcc -bundle -flat_namespace -undefined suppress -L/sw/lib 
-L/usr/local/lib -o internet.so  Rsock.lo internet.lo nanoftp.lo 
nanohttp.lo sock.lo sockconn.lo
making Lapack.d from Lapack.c
g77  -fno-common  -g -O2 -c dlapack0.f -o dlapack0.lo
g77  -fno-common  -g -O2 -c dlapack1.f -o dlapack1.lo
g77  -fno-common  -g -O2 -c dlapack2.f -o dlapack2.lo
g77  -fno-common  -g -O2 -c dlapack3.f -o dlapack3.lo
g77  -fno-common  -g -O2 -c cmplx.f -o cmplx.lo
g77  -fno-common  -g -O2 -c cmplxblas.f -o cmplxblas.lo
gcc -dynamiclib -install_name /usr/local/lib/R/bin/libRlapack.dylib 
-L/sw/lib -L/usr/local/lib -o libRlapack.dylib dlapack0.lo dlapack1.lo 
dlapack2.lo dlapack3.lo cmplx.lo  cmplxblas.lo  -L/sw/lib 
-L/usr/local/lib -L/sw/lib/gcc-lib/powerpc-apple-darwin6.2/3.1 
-L/sw/lib/gcc-lib/powerpc-apple-darwin6.2/3.1/../../.. -lfrtbegin -lg2c 
-lSystem
ld: common symbols not allowed with MH_DYLIB output format with the 
-multi_module option
/sw/lib/libg2c.a(err.o) definition of common _f__cblank (size 4)
/sw/lib/libg2c.a(fmt.o) definition of common _f__cnt (size 40)
/sw/lib/libg2c.a(fmt.o) definition of common f(char,  *) (size 4)
/sw/lib/libg2c.a(err.o) definition of common f(char, long *, short 
__restrict) (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__cursor (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__doed (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__doend (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__doned (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__dorevert (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__elist (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__fmtbuf (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__fmtlen (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__init (size 4)
/sw/lib/libg2c.a(fmt.o) definition of common _f__nonl (size 4)
/sw/lib/libg2c.a(fmt.o) definition of common _f__parenlvl (size 4)
/sw/lib/libg2c.a(fmt.o) definition of common f(char *) (size 4)
/sw/lib/libg2c.a(fmt.o) definition of common _f__ret (size 40)
/sw/lib/libg2c.a(fmt.o) definition of common _f__revloc (size 4)
/sw/lib/libg2c.a(fmt.o) definition of common f(long double,  *) (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__scale (size 4)
/sw/lib/libg2c.a(fmt.o) definition of common _f__workdone (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__units (size 4800)
/sw/lib/libg2c.a(err.o) definition of common f(char, float) (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__curunit (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__donewrec (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__external (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__formatted (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__hiwater (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__putn (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__reading (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__recpos (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__sequential (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__getn (size 4)
/sw/lib/libg2c.a(err.o) definition of common _f__icptr (size 4)
/sw/lib/libg2c.a(err.o) definition of common f(short, void, int, char) 
(size 4)
/usr/bin/libtool: internal link edit command failed
make[4]: *** [libRlapack.dylib] Error 1
make[3]: *** [R] Error 2
make[2]: *** [R] Error 1
make[1]: *** [R] Error 1
make: *** [R] Error 1


Any idea what I'm missing/doing wrong here?

--
Kieran Healy, http://www.u.arizona.edu/~kjhealy
Asst Professor, Sociology Dept, University of Arizona.



More information about the R-help mailing list