Re: ncl on solaris 10x86

From: Rick Grubin <grubin_at_nyahnyahspammersnyahnyah>
Date: Wed, 13 Feb 2008 16:30:26 -0700

Hi Julie
> I’m wondering if anyone able to compile NCL on Solaris 10x86.
>

I'm not aware of anyone building on this platform, perhaps someone
else will speak up! Otherwise, the NCL team does not have access to
such a system, thus we've not tried to build NCL on Solaris 10x86.
> Gcc –v
>
> gcc version 3.4.6
>

This is a somewhat old version of gcc; are you able to upgrade to v4.x?
> 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
>

Note that the error message is complaining about a system header
file, and not a part of the NCL code base. When this sort of thing
happens, the first thing I suspect is a compiler and system
development environment that "do not play well together." Sometimes,
upgrading the compiler fixes the problem, which is why I ask about
upgrading it.
> 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
>

Again, note that the error refers to a system header file, and not
part of the NCL code base.

Is it possible that your system development environment is somehow
corrupted or not installed properly?

----
Rick Grubin NCAR/TDD/CISL/VETS
Visualization + Enabling Technologies
grubin_at_ucar.edu 303.497.1832

_______________________________________________
ncl-install mailing list
ncl-install_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Wed Feb 13 2008 - 16:30:26 MST

This archive was generated by hypermail 2.2.0 : Wed Feb 20 2008 - 13:05:14 MST