[ncl-install] Trouble compiling ncarg

Dave Lane dlane at ap.stmarys.ca
Mon Jul 13 09:12:31 MDT 2009


Having trouble compiling ncarg with Mac O/S 10.5 and ifort (V11). Same 
source tree (appears to) works for gfortran and g95. I'm using the 
generic Darwin_Intel.ifort config file with the lib/include dirs 
adjusted to find the various libraries.

I added the recommended location of the ifcore library in #define 
CtoFLibraries and it got farther.

The first error is at:

Making ./ncarview/src/bin
Making ./ncarview/src/bin/ctrans
gcc -ansi  -O  -I../../../.././include -I/usr/X11R6/include/X11 
-I/usr/local/include -I/opt/local/include    -DSYSV -D_POSIX_SOURCE 
-D_XOPEN_SOURCE -DByteSwapped -D__UNIXOS2__ -DNeedFuncProto    -c -o 
main.o main.c
gcc -ansi  -O    -o ctrans main.o 
../../../.././ncarview/src/lib/libctrans/libctrans.o 
-L../../../.././ncarview/src/lib/libcgm -lcgm 
-L../../../.././ncarview/src/lib/libncarg_ras -lncarg_ras 
-L../../../.././common/src/libncarg_c -lncarg_c 
-L/usr/local/ncarg/ifort/lib -L/usr/X11R6/lib -L/usr/local/lib 
-L/opt/local/lib -lXpm -lX11 -lXext    -lm
ld: duplicate symbol start in 
../../../.././ncarview/src/lib/libctrans/libctrans.o and 
/usr/lib/crt1.10.5.o

collect2: ld returned 1 exit status
make[5]: *** [ctrans] Error 1

Any ideas?

--- Dave


More information about the ncl-install mailing list