NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GEMPAK #BGO-995922]: compiling gdplot2_gif



Hi Christopher,

I've attached an updated Makefile to replace the one in 
$GEMPAK/source/programs/gd/gdplot2/

Try this and let me know if you still experience the xml library problem.  
There have been some issues with linking to libxml2.a with the _gif builds.

Michael James
Unidata



> 
> We're trying to compile gdplot2_gif for someone in our building.  gempak 
> compiles just fine without any errors; however, if I try to do the following 
> to compile gdplot2_gif, I end up getting the following errors:
> 
> source /opt/GEMPAK6.2.0/Gemenviron.profile
> cd /opt/GEMPAK6.2.0/gempak/source/programs/gd/gdplot2/
> 
> make programs_gif
> gfortran -fno-second-underscore -fno-range-check -fd-lines-as-comments 
> -I/opt/GEMPAK6.2.0/gempak/include -I/opt/GEMPAK6.2.0/os/linux64/include -g   
> gdplot2.f /opt/GEMPAK6.2.0/os/linux64/lib/gdplot2.a 
> /opt/GEMPAK6.2.0/os/linux64/lib/sfmap.a 
> /opt/GEMPAK6.2.0/os/linux64/lib/gdstream.a 
> /opt/GEMPAK6.2.0/os/linux64/lib/gdmap.a 
> /opt/GEMPAK6.2.0/os/linux64/lib/ginitp_alt.o 
> /opt/GEMPAK6.2.0/os/linux64/lib/gendp_alt.o 
> /opt/GEMPAK6.2.0/os/linux64/lib/gemlib.a 
> /opt/GEMPAK6.2.0/os/linux64/lib/gplt.a 
> /opt/GEMPAK6.2.0/os/linux64/lib/device.a 
> /opt/GEMPAK6.2.0/os/linux64/lib/gif.a /opt/GEMPAK6.2.0/os/linux64/lib/gn.a 
> /opt/GEMPAK6.2.0/os/linux64/lib/gemlib.a 
> /opt/GEMPAK6.2.0/os/linux64/lib/cgemlib.a 
> /opt/GEMPAK6.2.0/os/linux64/lib/libnetcdf.a 
> /opt/GEMPAK6.2.0/os/linux64/lib/libjasper.a 
> /opt/GEMPAK6.2.0/os/linux64/lib/libpng.a 
> /opt/GEMPAK6.2.0/os/linux64/lib/libz.a /opt/GEMPAK6.2.0/os/linux64/lib/rsl.a 
> /opt/GEMPAK6.2.0/os/linux64/lib/libbz2.a  -lm -o 
> /opt/GEMPAK6.2.0/os/linux64/bin/gdplot2_gi
 f
> /opt/GEMPAK6.2.0/os/linux64/lib/gemlib.a(dbgradhdr.o): In function 
> `db_gradhdr_':
> /opt/GEMPAK6.2.0/gempak/source/gemlib/db/dbgradhdr.c:148: undefined reference 
> to `xml_transform'
> /opt/GEMPAK6.2.0/os/linux64/lib/gemlib.a(dbgsathdr.o): In function 
> `db_gsathdr_':
> /opt/GEMPAK6.2.0/gempak/source/gemlib/db/dbgsathdr.c:130: undefined reference 
> to `xml_transform'
> /opt/GEMPAK6.2.0/os/linux64/lib/cgemlib.a(cflscandir.o): In function 
> `cfl_scandir':
> /opt/GEMPAK6.2.0/gempak/source/gemlib/cfl/cflscandir.c:75: undefined 
> reference to `db_gFileNames'
> /opt/GEMPAK6.2.0/gempak/source/gemlib/cfl/cflscandir.c:78: undefined 
> reference to `db_gNextColumn'
> collect2: ld returned 1 exit status
> make: *** [gdplot2_gif] Error 1
> 
> -------------------------------
> I've double checked to make sure all the dependencies are installed and I 
> made sure that libxml2 is installed in case xml_transform is referring to 
> that.  I also tried compiling it by hand using the fortran line shown above 
> and including libxml2 with -lxml2.
> 
> I'm a bit stumped, especially since the rest of it compiled without issues.  
> It's also a bit hard to sort through this big mess of makefiles and scripts 
> patching it all together.
> 
> Any help would be greatly appreciated.
> 
> --Chris
> 
> 


Ticket Details
===================
Ticket ID: BGO-995922
Department: Support GEMPAK
Priority: High
Status: Open

Attachment: Makefile
Description: Binary data