[gembud] GEMAPAK 10.5.4 under ubuntu Linux

Brendon Hoch bhoch at plymouth.edu
Sun Dec 9 11:33:30 MST 2007


Gregory,

I'm using Fedora, and while I haven't tried to compile 5.10.4 yet, 
here's what I had to change in Makeinc.linux_g77 in order to get the 
N-Progs to compile in 5.10.3


MOTIFLIBS = $(X11LIBDIR) /usr/X11R6/lib/libXm.a -lXmu -lSM -lICE -lXp -lXext

(all on one line)

Steve explained it to me in an email from a few months ago:

Unidata GEMPAK Support wrote:
 > 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
 >>
 >> --
 >

Hope this helps,
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


More information about the gembud mailing list