Re: Attempt to build ncar graphics on Solaris x86 (64-bit)

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Sun Aug 28 2011 - 07:19:34 MDT

Hi Ray,

What compiler are you using? Note that the error is actually coming
from a system include file. Usually when I see these kind of errors, I
cut-and-paste the exact error message into a google search.

The culprit may be one of the "-D" options on the compile line. when I
googled this error, I saw a mention of the _XOPEN_SOURCE macro being
an issue.

If this macro is being defined on the "ictrans.c" compile line (via -
D_XOPEN_SOURCE), then try these steps:

  - Edit $NCARG/ncarview/src/lib/libictrans/Makefile and remove all
references to "-D_XOPEN_SOURCE"
  - Save the file.
  - cd to $NCARG/ncarview/src/lib/libictrans
  - Type "make all install"
  - If this completes with no errors, then start your build up again
with:

      cd $NCARG
     make all install >&! make-output &

  - If you still get an error, try googling the error. Unfortunately I
don't have access to a Solaris machine to try this on.

--Mary

On Aug 27, 2011, at 9:18 AM, Ray D Wright wrote:

> Hello,
>
> I would be very grateful for some help. I am failing to build ncar
> graphics
> on a Solaris 10 x86 64 bit system, on a HP ML110 server.
> Below is the make-output from the line above the first mention of an
> error
> to the first "*** Error code 1" message. Below that, the output
> consists of
> messages that include: "make: Fatal error: Command failed for target
> `makesubdirs", which, I guess are just consequent on the failure to
> make
> ictrans.o.
>
> Any suggestions you can make woul be much appreciated.
>
> ========== make-output ====================
> .
> .
> .
> In file included from ictrans.c:39:
> /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
> /home/rdw/build/ncl_ncarg-5.2.1/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 /home/rdw/build/ncl_ncarg-5.2.1/ncarview/
> src/lib
> *** Error code 1
> .
> .
> .
> ===================================
>
> Thank you.
>
> Ray
>
> Dr. Raymond D Wright
> Spacefleet Ltd
> 2 Jackson Close
> Devizes
> Wiltshire SN10 3AP
> England UK
> T +44 (0)1380 725075 M +44 (0)794 832 9494
> Co. Reg No. 5005969
>
> <winmail.dat>_______________________________________________
> ncarg-talk mailing list
> ncarg-talk@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncarg-talk

_______________________________________________
ncarg-talk mailing list
ncarg-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
Received on Sun Aug 28 07:19:39 2011

This archive was generated by hypermail 2.1.8 : Tue Aug 30 2011 - 13:31:24 MDT