This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Brendon, I use the static Xm.a library since I am distributing binaries, However, since you are building locally, it is probably easies to just use -lXm and get the shareable library which will probably resolve the libXft.a. Otherwise, you may need to add -lXft to the list of other dependent libraries (lXmu -lSM -lICE -lXp -lXext -lXft) Steve Chiswell Unidata User Support > Steve, > > Thanks, I guess I was expecting a larger make.out file, since I got an 8 > MB file on a previous unsuccessful attempt. > > I was able to make install on all of the programs, and the binaries > appear to be in the right place. though I've discovered that NPROGS > have not compiled properly. The problem appears to be my version of > libXm.a It's located in /usr/lib/libXm.a (which is not expected by > Gempak) So, I modified MOTIFLIBS as follows in Makeinc.linux: > > MOTIFLIBS = $(X11LIBDIR) /usr/lib/libXm.a -lXmu -lSM -lICE -lXp -lXext > > It seems to find & subsequently choke on the library. For example, here > is abbreviated output from the make.out file with regards to nsharp: > > g77 -fno-second-underscore -I/usr/local/gempak/NAWIPS/gempak/include > -I/usr/local/gempak/NAWIPS/os/linux/include > -I/usr/local/gempak/NAWIPS/gempak/include -I > /usr/local/gempak/NAWIPS/os/linux/include/Linux -O -o nsharp > sharp95.o /usr/local/gempak/NAWIPS/os/linux/lib/nsharp.a local_Nxmlib.a > /usr/local/gempak/NAW > IPS/os/linux/lib/ginitp_alt.o > /usr/local/gempak/NAWIPS/os/linux/lib/gendp_alt.o > /usr/local/gempak/NAWIPS/os/linux/lib/snlist.a > /usr/local/gempak/NAWIPS/os/li > nux/lib/sflist.a /usr/local/gempak/NAWIPS/os/linux/lib/gemlib.a > /usr/local/gempak/NAWIPS/os/linux/lib/cgemlib.a > /usr/local/gempak/NAWIPS/os/linux/lib/gplt.a > /usr/local/gempak/NAWIPS/os/linux/lib/device.a > /usr/local/gempak/NAWIPS/os/linux/lib/xwp.a > /usr/local/gempak/NAWIPS/os/linux/lib/xw.a /usr/local/gempak/NAWIP > S/os/linux/lib/ps.a /usr/local/gempak/NAWIPS/os/linux/lib/gn.a > /usr/local/gempak/NAWIPS/os/linux/lib/cgemlib.a > /usr/local/gempak/NAWIPS/os/linux/lib/gemlib.a > /usr/local/gempak/NAWIPS/os/linux/lib/libnetcdf.a > /usr/local/gempak/NAWIPS/os/linux/lib/libjasper.a > /usr/local/gempak/NAWIPS/os/linux/lib/libpng.a /usr/loca > l/gempak/NAWIPS/os/linux/lib/libz.a > /usr/local/gempak/NAWIPS/os/linux/lib/rsl.a > /usr/local/gempak/NAWIPS/os/linux/lib/libbz2.a -L/usr/X11R6/lib > -L/usr/X11R6/ > lib /usr/lib/libXm.a -lXmu -lSM -lICE -lXp -lXext -L/usr/X11R6/lib -lXt > -lX11 -lm > /usr/local/gempak/NAWIPS/os/linux/lib/libjasper.a(jas_stream.o): In > function `jas_stream_tmpfile': > jas_stream.c:(.text+0x1435): warning: the use of `tmpnam' is dangerous, > better use `mkstemp' > /usr/lib/libXm.a(TextIn.o): In function `SelfInsert': > (.text+0x8002): undefined reference to `XftTextExtentsUtf8' > /usr/lib/libXm.a(TextOut.o): In function `FindWidth': > (.text+0x74e): undefined reference to `XftTextExtentsUtf8' > /usr/lib/libXm.a(TextOut.o): In function `FindWidth': > (.text+0x950): undefined reference to `XftTextExtentsUtf8' > /usr/lib/libXm.a(TextOut.o): In function `FindHeight': > (.text+0xc45): undefined reference to `XftTextExtentsUtf8' > /usr/lib/libXm.a(TextOut.o): In function `FindHeight': > (.text+0xec3): undefined reference to `XftTextExtentsUtf8' > /usr/lib/libXm.a(XmString.o):(.text+0x2bb6): more undefined references > to `XftTextExtentsUtf8' follow > /usr/lib/libXm.a(XmString.o): In function `SubStringPosition': > (.text+0xaa37): undefined reference to `XftTextExtents16' > /usr/lib/libXm.a(XmString.o): In function `SubStringPosition': > (.text+0xaa75): undefined reference to `XftTextExtentsUtf8' > /usr/lib/libXm.a(XmString.o): In function `SubStringPosition': > (.text+0xab32): undefined reference to `XftTextExtents16' > /usr/lib/libXm.a(TextF.o): In function `FindPixelLength': > (.text+0xa6e): undefined reference to `XftTextExtentsUtf8' > /usr/lib/libXm.a(TextF.o): In function `FindPixelLength': > (.text+0xb05): undefined reference to `XftTextExtentsUtf8' > > (more stuff here) > > /usr/lib/libXm.a(XmRenderT.o): In function `_XmXftSetClipRectangles': > (.text+0x9d1): undefined reference to `XftDrawSetClipRectangles' > /usr/lib/libXm.a(Jpeg.o): In function `load_jpeg': > (.text+0x1cc): undefined reference to `jpeg_std_error' > /usr/lib/libXm.a(Jpeg.o): In function `load_jpeg': > (.text+0x1fe): undefined reference to `jpeg_destroy_decompress' > /usr/lib/libXm.a(Jpeg.o): In function `load_jpeg': > (.text+0x239): undefined reference to `jpeg_CreateDecompress' > /usr/lib/libXm.a(Jpeg.o): In function `load_jpeg': > (.text+0x24b): undefined reference to `jpeg_stdio_src' > /usr/lib/libXm.a(Jpeg.o): In function `load_jpeg': > (.text+0x25b): undefined reference to `jpeg_read_header' > /usr/lib/libXm.a(Jpeg.o): In function `load_jpeg': > (.text+0x263): undefined reference to `jpeg_calc_output_dimensions' > /usr/lib/libXm.a(Jpeg.o): In function `load_jpeg': > (.text+0x26b): undefined reference to `jpeg_start_decompress' > /usr/lib/libXm.a(Jpeg.o): In function `load_jpeg': > (.text+0x2d0): undefined reference to `jpeg_read_scanlines' > /usr/lib/libXm.a(Jpeg.o): In function `load_jpeg': > (.text+0x304): undefined reference to `jpeg_finish_decompress' > /usr/lib/libXm.a(Jpeg.o): In function `load_jpeg': > (.text+0x30c): undefined reference to `jpeg_destroy_decompress' > collect2: ld returned 1 exit status > make[5]: *** [nsharp] Error 1 > make[5]: Leaving directory > `/usr/local/gempak/GEMPAK5.10.2/gempak/source/programs/gui/nsharp' > m > > Suggestions are welcomed, > > Thanks, > Brendon > > -- > Brendon Hoch > Technology Manager > Judd Gregg Meteorology Institute > MSC 48, Boyd Hall 321A > Plymouth State University > Plymouth, NH 03264 > (603)535-2818 Fax: (603)535-2723 > http://vortex.plymouth.edu/~bhoch > > Ticket Details =================== Ticket ID: WFB-662554 Department: Support GEMPAK Priority: Normal Status: Closed