[ncl-install] Undefined reference to ggkwdr_ after building 6.2.1 for the PGI compilers

Mary Haley haley at ucar.edu
Wed Dec 10 23:34:40 MST 2014


It looks to me like your system cairo library is either old or just
incompatible with NCL.

Here's the error:

pgcc -tp k8-64 -O -Msignextend -Mreentrant -fPIC -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -mp  -O  -I../../../.././include -I/usr/include
-I/usr/include/X11 -I/opt/cray/hdf5/1.8.13/PGI/141/include
-I/opt/cray/netcdf/4.3.2/PGI/141/include -I/app/ncar/szip/2.1-pgi/include
-I/app/ncar/udunits/2.2.17-pgi/include \
-I/usr/include/freetype2 -I/app/ncar/hdf/hdf-4.2.10-1-1/include  -DLinux
 -DCTXT -DX11 -DPS -DPDF -DPIX  -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE
-DByteSwapped -DNeedFuncProto    -c -o cro_device.o cro_device.c
PGC-S-0040-Illegal use of symbol, FT_Face (/usr/include/cairo/cairo-ft.h:
60)
PGC-W-0156-Type not specified, 'int' assumed
(/usr/include/cairo/cairo-ft.h: 60)
PGC-S-0040-Illegal use of symbol, FT_Face (/usr/include/cairo/cairo-ft.h:
64)
PGC-W-0156-Type not specified, 'int' assumed
(/usr/include/cairo/cairo-ft.h: 64)
PGC/x86-64 Linux 14.2-0: compilation completed with severe errors
make[5]: *** [cro_device.o] Error 2

My suggestion is to install your own version of cairo (and probably
freetype and pixman-1 as well) using the instructions found here:

http://www.ncl.ucar.edu/Download/build_from_src.shtml#cairo

It's important to download cairo 1.12.16 or later.

You will then need to edit $NCARG/config/Site.local and add the new library
and include paths, if you install these in different directories from where
your other external software for NCL resides.

The place to add it to are these two lines (these are samples only):

#define LibSearch -L/usr/local/lib
#define IncSearch -I/usr/local/include -I/usr/local/include/freetype2

Note, however, that in order for the freetype include files to be found,
you need something of the form -I/xxx/yyy/include/freetype2

--Mary


On Wed, Dec 10, 2014 at 12:16 PM, Mr. Darwin G. Adams (Contractor) <
adamsdg.ctr at afrl.hpc.mil> wrote:

> Hi Mary,
> I am attaching my current make.log file you requested.
>
> I added the link to the freetpye2 directory and resolved the
> PGC-F010206-cant find include file freetype.config/ftheader.h error
> messages.
>
> I still have probable issues with the GKS library. You suggested the
> snipped below, but no change obsevred in the make.log file.
>
>  cd $NCARG/ncarg2d/src/libncarg_gks
>  rm awi/ggkwdr_stub.o
>  make all install
>
> Also in the make.log file I have these:
>
> pgcc -c -DLINUX64  -tp k8-64 -O -Msignextend -Mreentrant -fPIC
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -mp -D_FILE_OFFSET_BITS=64
> -D_LARGEFILE_SOURCE -O  -I../../../.././include -I/usr/include
> -I/usr/include/X11 -I/opt/cray/hdf5/1.8.13/PGI/141/include
> -I/opt/cray/netcdf/4.3.2/PGI/141/include -I/app/ncar/szip/2.1-pgi/include
> -I/app/ncar/udunits/2.2.17-pgi/include -I/usr/include/freetype2
> -I/app/ncar/hdf/hdf-4.2.10-1-1/include  -DLinux -DMAJOR=3 -DUSE_NETCDF4
>   -DBuildHDF5   -DNIO_LIB_ONLY   -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE
> -DByteSwapped -DNeedFuncProto  NclHDF.c
> PGC-F-0206-Can't find include file mfhdf.h (NclHDF.c: 32)
> PGC/x86-64 Linux 14.2-0: compilation aborted
> make[5]: *** [NclHDF.o] Error 2
>
>
> gcc -tp k8-64 -O -Msignextend -Mreentrant -fPIC -D_FILE_OFFSET_BITS=64
> -D_LARGEFILE_SOURCE -mp  -O  -I../../../.././include -I/usr/include
> -I/usr/include/X11 -I/opt/cray/hdf5/1.8.13/PGI/141/include
> -I/opt/cray/netcdf/4.3.2/PGI/141/include -I/app/ncar/szip/2.1-pgi/include
> -I/app/ncar/udunits/2.2.17-pgi/include -I/usr/include/freetype2
> -I/app/ncar/hdf/hdf-4.2.10-1-1/include  -DLinux    -DCTXT -DX11 -DPS
> -DPDF -DPIX  -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped
> -DNeedFuncProto    -c -o cro_device.o cro_device.c
> PGC-S-0040-Illegal use of symbol, FT_Face (/usr/include/cairo/cairo-ft.h:
> 60)
> PGC-W-0156-Type not specified, 'int' assumed (/usr/include/cairo/cairo-ft.h:
> 60)
> PGC-S-0040-Illegal use of symbol, FT_Face (/usr/include/cairo/cairo-ft.h:
> 64)
> PGC-W-0156-Type not specified, 'int' assumed (/usr/include/cairo/cairo-ft.h:
> 64)
> PGC/x86-64 Linux 14.2-0: compilation completed with severe errors
> make[5]: *** [cro_device.o] Error 2
>
>
>
> The cario 1.8.8 libraries (at least the header files) appear to be
> installed.
>
> /usr/include/cairo
> include/cairo> ls -l
> total 136
> -rw-r--r-- 1 root root  9452 May  9  2010 cairo-deprecated.h
> -rw-r--r-- 1 root root   571 May  9  2010 cairo-features.h
> -rw-r--r-- 1 root root  2491 May  9  2010 cairo-ft.h
> -rw-r--r-- 1 root root 79860 May  9  2010 cairo.h
> -rw-r--r-- 1 root root  2305 May  9  2010 cairo-pdf.h
> -rw-r--r-- 1 root root  3586 May  9  2010 cairo-ps.h
> -rw-r--r-- 1 root root  2777 May  9  2010 cairo-svg.h
> -rw-r--r-- 1 root root   147 May  9  2010 cairo-version.h
> -rw-r--r-- 1 root root  2350 May  9  2010 cairo-xcb.h
> -rw-r--r-- 1 root root  2174 May  9  2010 cairo-xcb-xrender.h
> -rw-r--r-- 1 root root  3053 May  9  2010 cairo-xlib.h
> -rw-r--r-- 1 root root  2432 May  9  2010 cairo-xlib-xrender.h
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20141210/2ddd2b5e/attachment-0001.html 


More information about the ncl-install mailing list