[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20030307: Problem compiling GEMPAK n-programs with RH 7.3
- Subject: 20030307: Problem compiling GEMPAK n-programs with RH 7.3
- Date: Fri, 07 Mar 2003 16:48:21 -0700
Kevin,
RH 7.3 doinked some of the X libraries. You will need to add libXmu to
the linking:
MOTIFLIBS = $(X11LIBDIR) /usr/X11R6/lib/libXm.a -lXmu -lSM -lICE -lXp -lXext
The complete Makeinc.linux file as I have here follows.
Steve CHiswell
Unidata User Support
-----------------------------------------------------------------------
OPSYS = Linux
CC = gcc
FC = g77
MOTIFINC = -I/usr/X11R6/include
XWINCDIR = -I/usr/X11R6/include
COPT = -DUNDERSCORE -D$(OPSYS) $(GEMINC) $(MOTIFINC)
FOPT = -fno-second-underscore $(GEMINC) $(GEMINC)/$(OPSYS)
FOPT_NOGLOB = -fno-globals -Wno-globals
NCII = "-I../libsrc"
NCOPT = "CPPFLAGS=-DNDEBUG -Df2cFortran" "FFLAGS=-O -Wno-globals" "CFLAGS=-O
$(NCII)" "CXX= "
CFLAGS = $(COPT)
FFLAGS = $(FOPT)
LDM_FLAGS =
X11LIBDIR = -L/usr/X11R6/lib
#MOTIFLIBS = -L/usr/X11R6/lib -lXm $(X11LIBDIR) -lSM -lICE -lXp -lXext
# RedHat 7.1
# MOTIFLIBS = /usr/X11R6/lib/libXm.a $(X11LIBDIR) -lSM -lICE -lXp -lXext
# RedHat 7.3+
#MOTIFLIBS = $(X11LIBDIR) -lXm
MOTIFLIBS = $(X11LIBDIR) /usr/X11R6/lib/libXm.a -lXmu -lSM -lICE -lXp -lXext
BUFRFLAGS = -O -DNO_MSG_IPC -ansi
SYSLIBS =
>From: "Kevin R. Tyle" <address@hidden>
>Organization: UCAR/Unidata
>Keywords: 200303072203.h27M3MB2006888
>Hi,
>
>I'm trying to do a source build of GEMPAK 5.6.h on a system
>running a stock + normal security updates RH 7.3 installation
>
>When it builds the various n-program executables, I get the
>following errors:
>
>make[5]: Entering directory
>`/home/unidata/gempak_upc5.6.h/gempak/source/programs/gui/nmap2'
>gcc -DUNDERSCORE -DLinux -I/home/unidata/gempak/gempak/include
>-I/usr/X11R6/include -I/home/unidata/gempak/include -I/usr/X11R6/include
>-I/usr/X11R6/include -c nmap.c
>g77 -fno-second-underscore -I/home/unidata/gempak/gempak/include
>-I/home/unidata/gempak/gempak/include/Linux -o nmap2 nmap.o \
> \
> /home/unidata/gempak/lib/linux/nmap2.a \
> /home/unidata/gempak/lib/linux/nmaplib.a
>/home/unidata/gempak/lib/linux/ginitp_alt.o
>/home/unidata/gempak/lib/linux/gendp_alt.o
>/home/unidata/gempak/lib/linux/sfmap.a
>/home/unidata/gempak/lib/linux/snmap.a
>/home/unidata/gempak/lib/linux/gdplot2.a
>/home/unidata/gempak/lib/linux/gdmap.a
>/home/unidata/gempak/lib/linux/gdstream.a
>/home/unidata/gempak/lib/linux/grphgd.a
>/home/unidata/gempak/lib/linux/gdcfil.a
>/home/unidata/gempak/lib/linux/gemlib.a
>/home/unidata/gempak/lib/linux/cgemlib.a
>/home/unidata/gempak/lib/linux/gplt.a
>/home/unidata/gempak/lib/linux/device.a
>/home/unidata/gempak/lib/linux/Nxmlib.a
>/home/unidata/gempak/lib/linux/xwp.a /home/unidata/gempak/lib/linux/xw.a
>/home/unidata/gempak/lib/linux/ps.a /home/unidata/gempak/lib/linux/gn.a
>/home/unidata/gempak/lib/linux/gemlib.a
>/home/unidata/gempak/lib/linux/cgemlib.a
>/home/unidata/gempak/netcdf/linux/lib/libnetcdf.a
>/home/unidata/gempak/lib/linux/libpng.a
>/home/unidata/gempak/lib/linux/libz.a \
> /usr/X11R6/lib/libXm.a -L/usr/X11R6/lib -lSM -lICE -lXp -lXext
>-L/usr/X11R6/lib -lXt -lX11 -lm
>/usr/X11R6/lib/libXm.a(EditresCom.o): In function
>`_XEditResCheckMessages':
>EditresCom.o(.text+0x111): undefined reference to `_XEditResResetStream'
>EditresCom.o(.text+0x11f): undefined reference to `_XEditResPut8'
><snip>
>--------------
>
>Looks like some kind of "underscore" issue, as a "ar tv" on
>libXm.a shows the various object files listed, but without the
>underscores. Any ideas on how to modify the
>Makeinc.linux file?
>
>
>Thanks,
>
>Kevin
>
>
>
>______________________________________________________________________
>Kevin Tyle, Systems Administrator **********************
>Dept. of Earth & Atmospheric Sciences address@hidden
>University at Albany, ES-235 518-442-4571 (voice)
>1400 Washington Avenue 518-442-5825 (fax)
>Albany, NY 12222 **********************
>______________________________________________________________________
>