[ncl-install] what happened to idt?

Mary Haley haley at ucar.edu
Thu Jul 9 11:26:07 MDT 2009


I emailed Dave offline with a suggested solution, and it worked for
him. Here it is:

I googled this error, and found a suggestion to add
"-D_DARWIN_C_SOURCE" to the compile line. Apparently it's a bug on the
Mac side that needs to be fixed.

Try this:

   cd $NCARG/ncarview/src/bin/idt
   [Edit "Makefile"]

Where you see "-D__UNIXOS2__", add "-D_DARWIN_C_SOURCE" to the end of
that line

    [Save "Makefile"]
    make all install

The better thing to do is add this option to the $NCARG/config/Darwin
file where you see "__UNIXOS2__". That way it will make it into
every Makefile in the NCL source tree.  (You will need to rerun
"make Everything" to compile from scratch.)

--Mary

> On Wed, 8 Jul 2009, Dave Lane wrote:
> 
>> Attached. There does appear to be an error in the idt section but nowhere 
>> else. The platform is Mac 10.5, gfortran. --- Dave
>> 
>> Making ./ncarview/src/bin/idt
>> gcc -ansi -fPIC  -O  -I../../../.././include -I/usr/X11R6/include/X11 
>> -I/usr/local/include -I/opt/local/include  -DXAPPDIR='"xapp"' 
>> -DTRANSLATOR='"ictrans"' -DBINDIR='"bin"' -DNGVERSION='"5.1.0"' 
>> -DNCLVERSION='"5.1.0"' -DDarwin  -DMAJOR=9   -DSYSV -D_POSIX_SOURCE 
>> -D_XOPEN_SOURCE -DByteSwapped -D__UNIXOS2__ -DNeedFuncProto -c -o w_idt.o 
>> w_idt.c
>> w_idt.c: In function 'main':
>> w_idt.c:577: warning: return type of 'main' is not 'int'
>> gcc -ansi -fPIC  -O  -I../../../.././include -I/usr/X11R6/include/X11 
>> -I/usr/local/include -I/opt/local/include  -DXAPPDIR='"xapp"' 
>> -DTRANSLATOR='"ictrans"' -DBINDIR='"bin"' -DNGVERSION='"5.1.0"' 
>> -DNCLVERSION='"5.1.0"' -DDarwin  -DMAJOR=9   -DSYSV -D_POSIX_SOURCE 
>> -D_XOPEN_SOURCE -DByteSwapped -D__UNIXOS2__ -DNeedFuncProto -c -o w_file.o 
>> w_file.c
>> gcc -ansi -fPIC  -O  -I../../../.././include -I/usr/X11R6/include/X11 
>> -I/usr/local/include -I/opt/local/include  -DXAPPDIR='"xapp"' 
>> -DTRANSLATOR='"ictrans"' -DBINDIR='"bin"' -DNGVERSION='"5.1.0"' 
>> -DNCLVERSION='"5.1.0"' -DDarwin  -DMAJOR=9   -DSYSV -D_POSIX_SOURCE 
>> -D_XOPEN_SOURCE -DByteSwapped -D__UNIXOS2__ -DNeedFuncProto -c -o file.o 
>> file.c
>> gcc -ansi -fPIC  -O  -I../../../.././include -I/usr/X11R6/include/X11 
>> -I/usr/local/include -I/opt/local/include  -DXAPPDIR='"xapp"' 
>> -DTRANSLATOR='"ictrans"' -DBINDIR='"bin"' -DNGVERSION='"5.1.0"' 
>> -DNCLVERSION='"5.1.0"' -DDarwin  -DMAJOR=9   -DSYSV -D_POSIX_SOURCE 
>> -D_XOPEN_SOURCE -DByteSwapped -D__UNIXOS2__ -DNeedFuncProto -c -o glob.o 
>> glob.c
>> gcc -ansi -fPIC  -O  -I../../../.././include -I/usr/X11R6/include/X11 
>> -I/usr/local/include -I/opt/local/include  -DXAPPDIR='"xapp"' 
>> -DTRANSLATOR='"ictrans"' -DBINDIR='"bin"' -DNGVERSION='"5.1.0"' 
>> -DNCLVERSION='"5.1.0"' -DDarwin  -DMAJOR=9   -DSYSV -D_POSIX_SOURCE 
>> -D_XOPEN_SOURCE -DByteSwapped -D__UNIXOS2__ -DNeedFuncProto -c -o 
>> w_display.o w_display.c
>> In file included from commands.h:17,
>>                from w_display.c:51:
>> /usr/include/signal.h:71: error: 'NSIG' undeclared here (not in a function)
>> make[5]: *** [w_display.o] Error 1
>> 
>> 
>> Mary Haley wrote:
>>> Dave,
>>> 
>>> It sounds like the build of "idt" failed. This can happen
>>> for a number of reasons.
>>> 
>>> Can you email me the make-output file from the full NCARG build?
>>> 
>>> --Mary
>>> 
>>> 
>>> On Wed, 8 Jul 2009, Dave Lane wrote:
>>> 
>>>> I recently compiled and installed ncarg (without ncl) for a user of mine
>>>> and the utility
>>>> 
>>>> "idt - X window interactive image display tool"
>>>> 
>>>> which he is used to using in earlier versions of ncarg does not appear
>>>> to be present anywhere.
>>>> 
>>>> There is man page for it. In all other respects the build went well and
>>>> there are lots of other utilities in the bin directory.
>>>> 
>>>> Any ideas?
>>>> 
>>>> --- Dave
>>>> 
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> ncl-install mailing list
>>>> List instructions, subscriber options, unsubscribe:
>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>>>> 
>> 
>>



More information about the ncl-install mailing list