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

[Support #UEO-800135]: problem installing UDUNITS version 1.12.4


> Still no luck, even using gcc rather than Intel C compiler.
> I will need UDUNITS library when I install NCO on my linux box.
> Attached are the results of the configure and the make command.
> Thanks,
> Sebastien
> --
> Sebastien Biraud
> Lawrence Berkeley National Laboratory
> One Cyclotron Road  MS 90R-1116
> Berkeley, CA 94720
> tel:(510) 486 6084
> fax:(510) 486 5686
> e-mail: address@hidden
> making `all' in directory /usr/local/src/udunits-1.12.4/src/udunits
> make[1]: Entering directory `/usr/local/src/udunits-1.12.4/src/udunits'
> make[2]: Entering directory `/usr/local/src/udunits-1.12.4/src/udunits'
> gcc -c -g -O2 -I../lib -I../port/misc -DpgiFortran udunits.c
> gcc -o udunits -g -O2 udunits.o -L/usr/local/src/udunits-1.12.4/src/lib 
> -ludunits -L/usr/local/src/udunits-1.12.4/src/port/misc -ludport
> /usr/local/src/udunits-1.12.4/src/lib/libudunits.a(utlib.o)(.text+0x39a): In 
> function `dectime':
> /usr/local/src/udunits-1.12.4/src/lib/utlib.c:432: undefined reference to 
> `floor'
> /usr/local/src/udunits-1.12.4/src/lib/libudunits.a(utlib.o)(.text+0x3d8):/usr/local/src/udunits-1.12.4/src/lib/utlib.c:366:
>  undefined reference to `fmod'
> /usr/local/src/udunits-1.12.4/src/lib/libudunits.a(utlib.o)(.text+0xb8c): In 
> function `utRaise':
> /usr/local/src/udunits-1.12.4/src/lib/utlib.c:807: undefined reference to 
> `pow'
> /usr/local/src/udunits-1.12.4/src/lib/libudunits.a(utlib.o)(.text+0x106d): In 
> function `utPrint':
> /usr/local/src/udunits-1.12.4/src/lib/utlib.c:1298: undefined reference to 
> `log10'
> /usr/local/src/udunits-1.12.4/src/lib/libudunits.a(utlib.o)(.text+0x1072):/usr/local/src/udunits-1.12.4/src/lib/utlib.c:1298:
>  undefined reference to `ceil'
> collect2: ld returned 1 exit status
> make[2]: *** [udunits] Error 1
> make[2]: Leaving directory `/usr/local/src/udunits-1.12.4/src/udunits'
> make[1]: *** [program] Error 2
> make[1]: Leaving directory `/usr/local/src/udunits-1.12.4/src/udunits'
> make: *** [udunits/all] Error 1

It appears that the Standard C math functions are not in the C runtime library.

Please try the following:

1. Go to the top-level source-directory.

2. Execute the command "make distclean".

3. Execute the command "./configure CC=gcc CPPFLAGS=-DpgiFortran LD_MATH=-lm".

4. Execute the command "make".

5. Execute the command "make test".

6. Execute the command "make install".

Redirect both the standard output and standard error stream from the above 
commands into their appropriate files so that, if something goes wrong, you can 
send me the files.

Steve Emmerson

Ticket Details
Ticket ID: UEO-800135
Department: Support UDUNITS
Priority: Normal
Status: On Hold

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.