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

20030807: UDUNITS build problem: undefined pow() reference



Yoshihro,

> To: address@hidden
> From: "Yoshihiro Yamasaki" <address@hidden>
> Subject: UDUNITS INSTALL PROBLEM
> Organization: ?
> Keywords: 200308071545.h77FjkLd012608

The above message contained the following:

> PLEASE FIND ENCLOSED THE FILE (ERROR.TAR) WITH I HOPE HAS 
> ALL THE INFORMATION NECESSARY TO FIGURE OUT WHY AM GETTING 
> INSTALLATION PROBLEM.
> 
> I THANK YOU FOR YOUR REPLY AFTER FINDING OUR THE PROBLEM & 
> SOLUTION.
> 
> BEST REGARDS
> 
> YOSHIHIRO YAMAZAKI
...

> making `all' in directory /home2/yamazaki/usr/local/udunits-1.11.7/src/udunits
> 
> make[1]: Entering directory 
> `/home2/yamazaki/usr/local/udunits-1.11.7/src/udunit
> s'
> make[2]: Entering directory 
> `/home2/yamazaki/usr/local/udunits-1.11.7/src/udunit
> s'
> gcc -o udunits -O udunits.o 
> -L/home2/yamazaki/usr/local/udunits-1.11.7/src/lib -
> ludunits -L/home2/yamazaki/usr/local/udunits-1.11.7/src/port/misc -ludport
> /home2/yamazaki/usr/local/udunits-1.11.7/src/lib/libudunits.a(utlib.o)(.text+0xd
> 1b): In function `utRaise':
> : undefined reference to `pow'

The error message above shows that the gcc compiler couldn't find the
standard function pow() in its default runtime library.  This is strange
because the output of the configure script shows that it did find the
standard function sin() in that library:

> checking for C math library... 
> checking for (void)sin(0.0) in default library(s)... yes

I suspect that there is something wrong with your development
environment.  I suggest that you show this problem to your system
administrator.

Or, if you can discover the library that contains the function pow(),
then you can tell the build procedure to use this library.  This is done
by putting a reference to the library in the environment variable LIBS
before executing the configure script.  For example:

    $ make distclean
    $ export LIBS='-L/usr/local/lib -lm'
    $ configure >configure.log 2>&1
    ...

Regards,
Steve Emmerson