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

[UDUNITS #GJC-472649]: udunits compilation help


> that worked but up to a point. There are still some undefined
> references. Pls see make.log,
> Mariusz

The file "make.log" contained the following:

making `all' in directory 

make[1]: Entering directory 

make[2]: Entering directory 

cc -o udunits -g -O2 udunits.o 
-L/export/scratch2/pagowski/stuff/udunits-1.12.4/src/lib -ludunits 
-L/export/scratch2/pagowski/stuff/udunits-1.12.4/src/port/misc -ludport

In function `dectime':

/export/scratch2/pagowski/stuff/udunits-1.12.4/src/lib/utlib.c:432: undefined 
reference to `floor'

Apparently, on your system the Standard C math functions are not in
C runtime library.

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.  Execute the configure script as before but with
the additional argument "LD_MATH=...", where "..."
is a reference to the library that contains the
C math functions.  For example,

    ./configure LD_MATH=-lm >&configure.log

5.  Execute the command "make" as before.

6.  Continue with the build process.

Steve Emmerson

Ticket Details
Ticket ID: GJC-472649
Department: Support UDUNITS
Priority: Normal
Status: Closed