[ncl-install] ncl on solaris 10x86
Julie Chen
chenj at ssc.ucla.edu
Wed Feb 13 16:20:57 MST 2008
I'm wondering if anyone able to compile NCL on Solaris 10x86. Hope
someone can give me some help on this. I tried with both gcc and Sun
Studio 12 but both failed to compile. Thank you very much for your
time.
Best,
Julie
Gcc -v
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6
Cc -V
cc: Sun C 5.9 SunOS_i386 Patch 124868-02 2007/11/27
I tried with gcc version 3.4.6 local installation. "make Everthing" got
following error:
gcc -ansi -fPIC -O -I../../../.././include -I/usr/X11R6/include
-DSPOOL_TRANS='"ctrans"' -DNGTMPDIR='"tmp"' -DBINDIR='"bin"'
-DLIBDIR='"lib"' -DNCARGDIR='"ncarg"' -DSYSV -D_POSIX_SOURCE
-D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -c ictrans.c
In file included from ictrans.c:52:
/usr/include/sys/resource.h:146: error: field `ru_utime' has incomplete
type
/usr/include/sys/resource.h:147: error: field `ru_stime' has incomplete
type
*** Error code 1
make: Fatal error: Command failed for target `ictrans.o'
Current working directory
/usr/local/ncl_ncarg-5.0.0/ncarview/src/lib/libictrans
*** Error code 1
The following command caused the error:
for dir in libcgm libncarg_ras libctrans libictrans ; do \
if (test -d $dir) then \
(cd $dir; echo "Making ./ncarview/src/lib/$dir";\
make );sleep 1;\
else echo "NOT Making ./ncarview/src/lib/$dir"; fi \
done
make: Fatal error: Command failed for target `makesubdirs'
Current working directory /usr/local/ncl_ncarg-5.0.0/ncarview/src/lib
Compile using Sun Studio 12 also got similar error:
cc -Xt -O -I../../../.././include -I/usr/X11R6/include
-DSPOOL_TRANS='"ctrans"' -DNGTMPDIR='"tmp"' -DBINDIR='"bin"'
-DLIBDIR='"lib"' -DNCARGDIR='"ncarg"' -DSYSV -D_POSIX_SOURCE=199506L
-D_XOPEN_SOURCE -DNeedFuncProto -c ictrans.c
"/usr/include/sys/resource.h", line 146: incomplete struct/union/enum
timeval: ru_utime
"../../../.././include/ncarg/cgm_tools.h", line 159: warning: no
explicit type given
"../../../.././include/ncarg/cgm_tools.h", line 166: warning: no
explicit type given
"../../../.././include/ncarg/cgm_tools.h", line 173: warning: no
explicit type given
"../../../.././include/ncarg/cgm_tools.h", line 181: warning: no
explicit type given
"ictrans.c", line 123: warning: old-style declaration or incorrect type
for: usage
"ictrans.c", line 162: warning: old-style declaration or incorrect type
for: ICTrans
"ictrans.c", line 206: warning: implicit function declaration:
OpenOptionTbl
"ictrans.c", line 236: warning: implicit function declaration:
SetMinLineWidthDefault
"ictrans.c", line 238: warning: implicit function declaration:
SetMaxLineWidthDefault
"ictrans.c", line 240: warning: implicit function declaration:
SetAdditionalLineScale
"ictrans.c", line 310: warning: implicit function declaration:
AppendString
"ictrans.c", line 338: warning: implicit function declaration: InitSpool
"ictrans.c", line 341: warning: implicit function declaration:
init_icommand
"ictrans.c", line 349: warning: implicit function declaration: isatty
"ictrans.c", line 386: warning: implicit function declaration:
processMemoryCGM
"ictrans.c", line 391: warning: implicit function declaration:
ex_command
"ictrans.c", line 427: warning: implicit function declaration:
get_command
cc: acomp failed for ictrans.c
*** Error code 2
make: Fatal error: Command failed for target `ictrans.o'
Current working directory
/usr/local/ncl_ncarg-5.0.0/ncarview/src/lib/libictrans
*** Error code 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20080213/5a3c57ab/attachment.html
More information about the ncl-install
mailing list