ctrans -d xwd produces bad output

From: Steven G Decker <decker_at_nyahnyahspammersnyahnyah>
Date: Fri Aug 31 2012 - 13:46:09 MDT

Hello there,

After a computer upgrade, I installed
ncl_ncarg-6.1.0-beta.Linux_RedHat_x86_64_nodap_gcc444.tar.gz
which seems to be the closest package to my system (My CentOS system has
gcc/gfortran 4.4.6)

I immediately encountered one problem:
> ncargf90 -o plthovagf plthovagf.f90
gfortran -fPIC -fno-second-underscore -fno-range-check -O -o plthovagf
plthovagf.f90 -L/usr/local/ncarg/lib -L/usr/X11R6/lib64 -lncarg
-lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lXrender -lfontconfig
-lpixman-1 -lfreetype -lexpat -lpng -lz -lbz2 -lpthread
/usr/bin/ld: cannot find -lexpat
collect2: ld returned 1 exit status

The file libexpat.so.1.5.2 exists in /lib64 on my system. Trying to set
LD_LIBRARY_PATH to /lib64 had no effect, nor did manually sticking
-L/lib64 into the compile line. Instead, I worked around the problem with:
> gfortran -fPIC -fno-second-underscore -fno-range-check -O -o
plthovagf plthovagf.f90 -L/usr/local/ncarg/lib -L/usr/X11R6/lib64
-lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lXrender
-lfontconfig -lpixman-1 -lfreetype

I now have an executable that works. (Running idt or ctrans -d X11 on
the output gives me what I expect.)

However, ctrans -d xwd on the output produces incorrect results. I've
attached a screenshot showing the difference between ctrans -d X11 and
ctrans -d xwd.

Can you tell me why my xwd file is not being generated correctly?

Thanks,
Steve

-- 
Steve Decker, Instructor
Department of Environmental Sciences    Phone: (732) 932-9800 x 6203
Rutgers University                               Fax: (732) 932-8644
14 College Farm Rd                  Email: decker@envsci.rutgers.edu
New Brunswick, NJ  08901-8551


_______________________________________________
ncl-install mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-install

ctransscreen.png
Received on Fri Aug 31 13:46:17 2012

This archive was generated by hypermail 2.1.8 : Fri Sep 21 2012 - 16:25:08 MDT