Re: Error on compiling NCARGRAPHIC only

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue, 7 Oct 2008 09:35:11 -0600 (MDT)

Mald,

Your ifort compiler doesn't recognize the '-fno-second-underscore'
option, so you need to remove this from your $NCARG/config/LINUX file.
Then, any time you change the $NCARG/config/LINUX file,
you should rerun "make Everything" because this will regenerate
all your Makefiles and compile everything from scratch.

There are some sample configuration files that show how to set things
up for the Intel compilers. Look at $NCARG/config/LINUX.64.INTEL to
start with. If you have a 32-bit system, then you don't want things
like:

#define HdfDefines -DLINUX64

and instead use:

#define HdfDefines -DLINUX

However, this file shows some of the other options that might help
you, like:

#define CtoFLibraries -lm -lifcore

Secondly, you showed an error with compiling "xdevice.c", but you
didn't include the full error message, so I'm not sure what the
problem is.

The rest of the problems that you're having, with "ggkwdr_" being
undefined, are due to the GKS library not being built properly, which
is due to the issue with "xdevice.c".

--Mary

On Wed, 8 Oct 2008, Mald MM5 wrote:

> Hi there ,
>
> I am trying to compile NCARgraphics only on Ubuntu 8.04 with Intel C and
> fortran compilers.
>
> I have installed the HDF and netCDF successfully.
>
> To start with, in the NCARgraphics compiling log I have the following
> warning
> makedepend -s "# DO NOT DELETE" -- -I../../../.././include
> -I/usr/X11R6/include -DNGTMPDIR='"tmp"' -DDEFAULT_GKS_BUFSIZE='0' -DSYSV
> -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto --
> cgm_tools.c meta_edit.c misc.c mem_file.c name.c
> makedepend: warning: cgm_tools.c (reading /usr/include/stdio.h, line 34):
> cannot find include file "stddef.h"
> not in ../../../.././include/stddef.h
> not in /usr/X11R6/include/stddef.h
> not in /usr/include/stddef.h
>
> icc -ansi -fPIC -O -I../../.././include -I/usr/X11R6/include -DLinux
> -DIBM -DNGVERSION='"5.0.0"' -DNCLVERSION='"5.0.0"' -DNCARGURL='"ngurl"'
> -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -c
> -o bcopyswap.o bcopyswap.c
> bcopyswap.c(48): warning #266: function "exit" declared implicitly
> exit(1);
>
> ifort: command line warning #10006: ignoring unknown option
> '-fno-second-underscore'
> ifort -fPIC -fno-second-underscore -O -o Iftran Iftran.o
> -L../../../.././common/src/libncarg_c -lncarg_c -L/usr/local/ncarg/lib
> -L/usr/X11R6/lib
> ifort: command line warning #10006: ignoring unknown option
> '-fno-second-underscore'
> icc -ansi -fPIC -O -I../../../.././include -I/usr/X11R6/include -DSYSV
> -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -c -o
> Fsplit.o Fsplit.c
> Fsplit.c(80): warning #266: function "isspace" declared implicitly
> collecting=!(comment=(c=='c'||c=='C'))&&isspace(c);
> ^
>
> Fsplit.c(83): warning #266: function "isspace" declared implicitly
> if (!isspace(c)) collecting=0;
> ifort -fPIC -fno-second-underscore -O -c -o arblda.o arblda.f
> ifort: command line warning #10006: ignoring unknown option
> '-fno-second-underscore'
> compilation aborted for xdevice.c (code 4)
> make[5]: *** [xdevice.o] Error 4
>
> ifort: command line warning #10006: ignoring unknown option
> '-fno-second-underscore'
> ../../../.././ncarg2d/src/libncarg_gks/libncarg_gks.a(gztowk.o): In function
> `gztowk_':
> gztowk.f:(.text+0x23b): undefined reference to `ggkwdr_'
> gztowk.f:(.text+0x5ae): undefined reference to `ggkwdr_'
> gztowk.f:(.text+0x94c): undefined reference to `ggkwdr_'
> ../../../.././ncarg2d/src/libncarg_gks/libncarg_gks.a(gziqwk.o): In function
> `gziqwk_':
> gziqwk.f:(.text+0x17a): undefined reference to `ggkwdr_'
> make[5]: *** [tdpackdemo] Error 1
> gztowk.f:(.text+0x94c): undefined reference to `ggkwdr_'
> make[5]: *** [ezmapdemo] Error 1
>
> and whole bunch of other errors....
>
> Any one had success with this combination?..
> suggestions welcome
>
> cheers
> Mald
>
_______________________________________________
ncarg-talk mailing list
ncarg-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
Received on Tue Oct 07 2008 - 09:35:11 MDT

This archive was generated by hypermail 2.2.0 : Wed Oct 08 2008 - 10:08:17 MDT