[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[UDUNITS #JSG-724159]: unidata install problem
- Subject: [UDUNITS #JSG-724159]: unidata install problem
- Date: Tue, 05 Sep 2006 13:40:37 -0600
Themis,
> On my screen the following appears when i executed the make >make.log
> command
Because I can't see your screen, you must redirect both the standard
output AND the standard error streams to the files that you send me.
The mechanism to do this depends on your user-shell:
Standard-conforming shells:
make >make.log 2>&1
csh-like shells:
make >&! make.log
> there is an error message in the last few llines
> thanks for all the help
> themis
>
> [root@localhost src]# make >make.log
> utlib.c: In function �utInit�:
> utlib.c:1127: warning: passing argument 1 of �ReadUnits� discards
> qualifiers from pointer target type
> udunits.c: In function �main�:
> udunits.c:113: warning: incompatible implicit declaration of built-in
> function �exit�
> /prog/WRF_IDL/udunits-1.12.4/src/lib/libudunits.a(utlib.o): In function
> `dectime':/prog/WRF_IDL/udunits-1.12.4/src/lib/utlib.c:432: undefined
> reference to `floor'
> /prog/WRF_IDL/udunits-1.12.4/src/lib/libudunits.a(utlib.o): In function
> `decomp':/prog/WRF_IDL/udunits-1.12.4/src/lib/utlib.c:366: undefined
> reference to `fmod'
> /prog/WRF_IDL/udunits-1.12.4/src/lib/libudunits.a(utlib.o): In function
> `utPrint':/prog/WRF_IDL/udunits-1.12.4/src/lib/utlib.c:1298: undefined
> reference to `log10'
> :/prog/WRF_IDL/udunits-1.12.4/src/lib/utlib.c:1298: undefined reference
> to `ceil'
> /prog/WRF_IDL/udunits-1.12.4/src/lib/libudunits.a(utlib.o): In function
> `utRaise':/prog/WRF_IDL/udunits-1.12.4/src/lib/utlib.c:807: undefined
> reference to `pow'
> collect2: ld returned 1 exit status
> make[2]: *** [udunits] Error 1
> make[1]: *** [program] Error 2
> make: *** [udunits/all] Error 1
It appears from the above that your C runtime library doesn't contain
the standard C mathematical functions. They are probably in a
separate math library (libm.a or libm.so). Please try the following
1. Go to the top-level source-directory.
2. Execute the command "make distclean".
3. Set your environment variables as before.
4. Set the environment variable LD_MATH so that it
contains an ld(1) reference to the math library.
For example:
export LD_MATH=-lm
5. Proceed with the rest of the build process beginning
with the "configure" command. Redirect both the
standard output AND standard error streams into the
output files.
Regards,
Steve Emmerson
Ticket Details
===================
Ticket ID: JSG-724159
Department: Support UDUNITS
Priority: Normal
Status: Closed