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

[ldmMcidas #LMZ-903767]: ldm-mcidas installation



Hi again,

re:
> Thanks for the quick response!

No worries.

re:
> There is libldm.a in /usr/local/ldm/lib
> The output of the command you sent is the following
> 
> [ldm@srwxrh01 lib]$ nm libldm.a | grep udebug
> U udebug
> U udebug
> U udebug
> U udebug
> U udebug
> U udebug
> U udebug
> U udebug
> U udebug
> U udebug
> U udebug
> U udebug
> 0000000000000980 T udebug

OK, now I understand.  The link error you sent previously:

gcc -O -o area2png alarm.o commonsubs.o imgsubs.o pngsubs.o rtesubs.o 
area2png.o -L/usr/local/ldm/lib -lX11 ../port/misc/libudport.a 
-L/usr/local/ldm/opt/netcdf/lib -L../libpng -lpng -L../zlib -lz -lm || (rm -f 
area2png; exit 1)
alarm.o: In function `alarm_on':
alarm.c:(.text+0x79): undefined reference to `udebug'
imgsubs.o: In function `ReplaceToken':
imgsubs.c:(.text+0x23): undefined reference to `udebug'
imgsubs.c:(.text+0x57): undefined reference to `serror'
imgsubs.c:(.text+0xe0): undefined reference to `udebug'
imgsubs.o: In function `GiniFileName':
imgsubs.c:(.text+0x28b): undefined reference to `udebug'
imgsubs.c:(.text+0x3b0): undefined reference to `uerror'
imgsubs.c:(.text+0x407): undefined reference to `udebug'
imgsubs.c:(.text+0x41e): undefined reference to `udebug'
imgsubs.c:(.text+0x435): undefined reference to `udebug'

is saying that entry points that should/are in the LDM library could
not be found.  Closer examination of the gcc line above shows that the
reference to the LDM library is missing.  This must mean that your
setting of the LD_LDM environment variable is incorrect:

export LD_LDM=-L${LDMHOME}/lib -lldm

The problem is that the values on the right hand side of the '=' sign
need to be enclosed by a quote:

export LD_LDM='-L${LDMHOME}/lib -lldm'

Compare this to other settings that you are using:


export CPPFLAGS='-DNDEBUG -Df2dFortran'

export FFLAGS='-O -Wuninitialized -fno-automatic'

export LD_LDM=-L${LDMHOME}/lib -lldm

export CPP_MCIDAS='-I${MCIHOME}/inc'
export LD_MCIDAS='-L${MCIHOME}/lib -lmcidas'

The setting for LD_NETCDF also needs quotes:

export LD_NETCDF=-L${NETCDFHOME}/lib -lnetcdf

So:

change:

export LD_LDM=-L${LDMHOME}/lib -lldm
export LD_NETCDF=-L${NETCDFHOME}/lib -lnetcdf

to:

export LD_LDM='-L${LDMHOME}/lib -lldm'
export LD_NETCDF='-L${NETCDFHOME}/lib -lnetcdf'

then make sure that the new settings are active; then run
'make distclean'; and then rerun configure; and then run make.




> Thanks,
> Bereket
> -----Original Message-----
> From: Unidata ldm-mcidas Support <address@hidden>
> Sent: Wednesday, May 01, 2019 12:25 PM
> To: Habtezion, Bereket <address@hidden>
> Cc: address@hidden; Habtezion, Bereket <address@hidden>
> Subject: [ldmMcidas #LMZ-903767]: ldm-mcidas installation
> 
> *****CAUTION: This email was sent from an EXTERNAL source. Think before 
> clicking links or opening attachments.*****
> 
> Hi,
> 
> re:
> > I hope all is well! Here I am back for a solution to this problem.
> > With your suggestion I tried installing an older version of (ldm-6.9.8) 
> > with the following configure line.
> 
> OK, ready...
> 
> re:
> > ./configure --enable-logging=local0 --disable-max-size make make
> > install
> >
> > Then I tried to install the ldm-mcidas-2012 using the following export
> > variables and then run configure and make. I still am confused why we
> > need export LD_MCIDAS='-L${MCIHOME}/lib -lmcidas' if mcidas-x is not 
> > required to install ldm-mcidas.
> > You further investigation and help is appreciated. NB: you asked to
> > try ldm version 6.12, I tried it with ldm version 6.9, I don’t know if that 
> > makes a difference.
> >
> > export LDMHOME=/usr/local/ldm
> > export MCIHOME=/usr/local/ldm/ldm-mcidas-2012
> > export NETCDFHOME=/usr/local/ldm/opt/netcdf
> > export CC=gcc
> > export CPPFLAGS='-DNDEBUG -Df2dFortran'
> > export FC=g77
> > export FFLAGS='-O -Wuninitialized -fno-automatic'
> > export CPP_LDM=-I${LDMHOME}/include
> > export LD_LDM=-L${LDMHOME}/lib -lldm
> > export CPP_MCIDAS='-I${MCIHOME}/inc'                            # site 
> > specific
> > export LD_MCIDAS='-L${MCIHOME}/lib -lmcidas'                  # site 
> > specific
> > export CPP_NETCDF=-I${NETCDFHOME}/include                        # site 
> > specific
> > export LD_NETCDF=-L${NETCDFHOME}/lib -lnetcdf                  # site 
> > specific
> > export LD_MATH=-lm
> 
> This looks OK.
> 
> Quick sanity check:
> 
> Is there a libldm.a or libldm.sh in /usr/local/ldm?
> 
> re:
> > ./configure
> > make
> > It failed with the following error.
> > gcc -O  -o area2png alarm.o commonsubs.o imgsubs.o pngsubs.o rtesubs.o
> > area2png.o -L/usr/local/ldm/lib -lX11 ../port/misc/libudport.a 
> > -L/usr/local/ldm/opt/netcdf/lib
> > -L../libpng -lpng -L../zlib -lz    -lm || (rm -f area2png; exit 1)
> > alarm.o: In function `alarm_on':
> > alarm.c:(.text+0x79): undefined reference to `udebug'
> > imgsubs.o: In function `ReplaceToken':
> > imgsubs.c:(.text+0x23): undefined reference to `udebug'
> > imgsubs.c:(.text+0x57): undefined reference to `serror'
> > imgsubs.c:(.text+0xe0): undefined reference to `udebug'
> > imgsubs.o: In function `GiniFileName':
> > imgsubs.c:(.text+0x28b): undefined reference to `udebug'
> > imgsubs.c:(.text+0x3b0): undefined reference to `uerror'
> > imgsubs.c:(.text+0x407): undefined reference to `udebug'
> > imgsubs.c:(.text+0x41e): undefined reference to `udebug'
> > imgsubs.c:(.text+0x435): undefined reference to `udebug'
> 
> If libldm.a (or libldm.so) exists in /usr/local/ldm.lib, and it is readable, 
> it should have been searched when trying to find the undefined references in 
> your list: udebug, uerror and serror.
> If /usr/local/ldm/lib/libldm.a exists, then what is the result of:
> 
> <as 'ldm'>
> cd ~ldm
> nm lib/libldm.a | grep udebug
> 
> Cheers,
> 
> Tom
> --
> ****************************************************************************
> Unidata User Support                                    UCAR Unidata Program
> (303) 497-8642                                                 P.O. Box 3000
> address@hidden                                   Boulder, CO 80307
> ----------------------------------------------------------------------------
> Unidata HomePage                       
> https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.unidata.ucar.edu&amp;data=02%7C01%7Cblhq%40pge.com%7C158609508cc3469e1bf508d6ce6aac5e%7C44ae661aece641aabc967c2c85a08941%7C0%7C0%7C636923354898341824&amp;sdata=35KffeAPmzNJxU8hvRtZzhPFRv%2FARfvWAYXVdQazwxo%3D&amp;reserved=0
> ****************************************************************************
> 
> 
> Ticket Details
> ===================
> Ticket ID: LMZ-903767
> Department: Support ldm-mcidas
> Priority: Normal
> Status: Open
> ===================
> NOTE: All email exchanges with Unidata User Support are recorded in the 
> Unidata inquiry tracking system and then made publicly available through the 
> web.  If you do not want to have your interactions made available in this 
> way, you must let us know in each email you send to us.
> 
> 
> 

Cheers,

Tom
--
****************************************************************************
Unidata User Support                                    UCAR Unidata Program
(303) 497-8642                                                 P.O. Box 3000
address@hidden                                   Boulder, CO 80307
----------------------------------------------------------------------------
Unidata HomePage                       http://www.unidata.ucar.edu
****************************************************************************


Ticket Details
===================
Ticket ID: LMZ-903767
Department: Support ldm-mcidas
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.