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

Re: [gembud] GEMAPAK 10.5.4 under ubuntu Linux



Greg,

Ubuntu, at least on 7.10 desktop, has a broken open motif implementation, also. The symptom can always be reproduced - if you go in through the nmap2, select a multiple menu'd product, display, then go back in to add a layer, the menu system will be then corrupt. This is most evident with smaller screen sizes - i.e. 1280x1024 or smaller.

I traced the error back through the code to the actual motif calls.

This is not specific to GEMPAK 10.5.4, but was apparent in the previous version.

I have not attempted the nmap2 interface with Ubuntu 6.06.1.

This symptom is not replicable across other *nix flavors. Solaris, FreeBSD, Slackware, Gentoo, and RHEL/CentOS all work fine. I have not tired the base of Ubuntu, Debian, to see if it is inherited from Debian.

This is only helpful in that it shows your problem is not necessarily local. Unless you have a lot invested in your Ubuntu installation, I can only suggest a different flavor of *nix.

On Jan 2, 2008, at 11:37 AM, address@hidden wrote:

Happy New Year GEMBUDS!

I have some puzzling issues to report with the latest install and
compile of GEMPAK under
ubuntu Linux. Nmap2 and the other Nprogs appear to compile fine using
the settings given in an earlier message (below). However, nmap2 starts
up with a long list of warnings similar to this:

Warning:
    Name: FilterText
    Class: XmTextField
    Character '\56' not supported in font.  Discarded.

There are many more "characters" discarded but nmap2 does start up and
appears normal and responsive. That is until I try to use the product
generation tool (pgen) to place vgf
text onto a blank map background. As soon as I click to place a text
label on the map in nmap2 the entire application crashes with this message:

*** stack smashing detected ***: nmap2 terminated

One of the nice things about nmap2 are the progen capabilities that
allow the annotation of maps and plots. It would be nice if I could
figure out what is causing this erratic response to trying to use the
prodgen text tool in nmap2.

Any help would be greatly appreciated. Thanks for reading!

Greg Carbin
NWS/Storm Prediction Center
Norman, OK


Going with a straight...
MOTIFLIBS = $(X11LIBDIR) -lXm
in Makeinc.linux_g77 seems to allow for compilation of the Nprogs
without complaint. I haven't fully tested all the programs yet but I
guess I have no reason not to expect success.

Thanks again for the help!

Greg Carbin
NWS/Storm Prediction Center
Norman, OK


----- Original Message -----
From: Steve Chiswell <address@hidden>
Date: Monday, December 10, 2007 10:49 am
Subject: Re: [gembud] GEMAPAK 10.5.4 under ubuntu Linux
Greg,

You error shown is: "cannot find -lXmu"

If you have the Xmu libraries on your system, then try
uncommenting
the
line for shareable Motif libraries in the Makinc file and comment
out> the
static entry. The libXm.a has dependencies on libXmu but the static
link may be making it difficult to resolve the dependencies in the
correct order.

Steve Chiswell
Unidata User Support

On Sun, 2007-12-09 at 00:00 -0600, address@hidden wrote:
Hi GEMBUDS,

After a number of tries with gfortran I finally got most of
GEMPAK to
compile from source using g77 instead. The only apps that
failed to
compile are the following:

make[5]: *** [nalarm] Error 1
make[5]: *** [ncolor] Error 1
make[5]: *** [nfax] Error 1
make[5]: *** [nmap2] Error 1
make[5]: *** [nsharp] Error 1
make[5]: *** [ntl] Error 1
make[5]: *** [ntrans] Error 1
make[5]: *** [nwx] Error 1
make[3]: *** [nmap_kiosk] Error 1
make[2]: *** [linux/garp] Error 1

The problem seems to be related to the location of libXm.a and
files> > that are expected to be located in /usr/X11R6/lib/. These
are
instead in
/usr/lib/. First I tried symbolically linking to the existing
files but
that drew a complaint from the compiler that there were too
many
links.> I tried copying over the files to /usr/X11R6/lib/ but
that
didn't work
either. Finally, I searched the GEMBUD lists and found a mod to
Makeinc.linux_g77 that describes where the MOFTIFLIBS are in
more
recent> Linux distros. That just gets me the following error when
compiling> ncolor (for example):

g77 -fno-second-underscore -
I/home/gempak/GEMPAK5.10.4/gempak/include> -
I/home/gempak/GEMPAK5.10.4/os/linux/include -O    -o ncolor
ncolor.o\> >
/home/gempak/GEMPAK5.10.4/os/linux/lib/ginitp_alt.o> >
/home/gempak/GEMPAK5.10.4/os/linux/lib/gendp_alt.o> >
/home/gempak/GEMPAK5.10.4/os/linux/lib/Nxmlib.a> >
/home/gempak/GEMPAK5.10.4/os/linux/lib/gemlib.a> >
/home/gempak/GEMPAK5.10.4/os/linux/lib/gplt.a> >
/home/gempak/GEMPAK5.10.4/os/linux/lib/device.a> >
/home/gempak/GEMPAK5.10.4/os/linux/lib/xwp.a> >
/home/gempak/GEMPAK5.10.4/os/linux/lib/xw.a> >
/home/gempak/GEMPAK5.10.4/os/linux/lib/ps.a> >
/home/gempak/GEMPAK5.10.4/os/linux/lib/gn.a> >
/home/gempak/GEMPAK5.10.4/os/linux/lib/gemlib.a> >
/home/gempak/GEMPAK5.10.4/os/linux/lib/cgemlib.a> >
/home/gempak/GEMPAK5.10.4/os/linux/lib/gemlib.a \
                -L/usr/lib /usr/lib/libXm.a -lXm -lXmu -lSM -
lICE
-lXp
-lXext -L/usr/lib -lXt -lX11 -lm
/usr/bin/ld: cannot find -lXmu
collect2: ld returned 1 exit status
make: *** [ncolor] Error 1

I wonder if anyone else has run into this problem and if you
know
of an
easy fix?

Thanks for reading this.

Greg Carbin
NWS/Storm Prediction Center
Norman, OK
_______________________________________________
gembud mailing list
address@hidden
For list information or to unsubscribe,  visit:
http://www.unidata.ucar.edu/mailing_lists/
--
Steve Chiswell <address@hidden>
Unidata

_______________________________________________
gembud mailing list
address@hidden
For list information or to unsubscribe,  visit:
http://www.unidata.ucar.edu/mailing_lists/

_______________________________________________
gembud mailing list
address@hidden
For list information or to unsubscribe, visit: http:// www.unidata.ucar.edu/mailing_lists/

Stonie Cooper
Planetary Data, Incorporated
402-663-6599