[ncl-install] undefined reference to `cairo_recording_surface_create'
Smith, Kip
kip.smith at nv.doe.gov
Wed Mar 4 08:26:45 MST 2015
After downloading and installing NCL version 6.2.1 I tried to run the tests:
ng4ex gsun01n -clean
and
ncargex cpex08 -clean
The first run with no problems but the second didn't link because of an undefined reference. See below.
NCAR Graphics Fortran Example <cpex08>
Copying cpex08.f
Copying cpexcc.f
Compiling and linking...
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp -Wall -O -o cpex08 cpexcc.f cpex08.f -L/usr/local/ncl/lib -L/usr/X11R6/lib64 -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lpthread -lXrender -lbz2
/usr/local/ncl/lib/libncarg_gks.a(cro.o): In function `cro_ClearWorkstation':
cro.c:(.text+0x17eb): undefined reference to `cairo_recording_surface_create'
/usr/local/ncl/lib/libncarg_gks.a(cro.o): In function `cro_OpenWorkstation':
cro.c:(.text+0x24e9): undefined reference to `cairo_recording_surface_create'
collect2: error: ld returned 1 exit status
The compile and link failed.
How do I fix this?
The old version of NCL (version 6.1.2) runs both tests with no errors.
Kip Smith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20150304/e4d35b76/attachment.html
More information about the ncl-install
mailing list