[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Support #WJW-509399]: udunits: fails fortran compile on FC5
- Subject: [Support #WJW-509399]: udunits: fails fortran compile on FC5
- Date: Fri, 27 Oct 2006 09:29:26 -0600
Chris,
> Linux localhost.localdomain 2.6.18-1.2200.fc5smp #1 SMP Sat Oct 14
> 17:15:35 EDT 2006 i686 i686 i386 GNU/Linux
...
> making `all' in directory /home/local/src/udunits-1.12.4/src/udunits
>
> gmake[1]: Entering directory `/home/local/src/udunits-1.12.4/src/udunits'
> gmake[2]: Entering directory `/home/local/src/udunits-1.12.4/src/udunits'
> c89 -o udunits -g -O2 udunits.o -L/home/local/src/udunits-1.12.4/src/lib
> -ludunits -L/home/local/src/udunits-1.12.4/src/port/misc -ludport
> /home/local/src/udunits-1.12.4/src/lib/libudunits.a(utlib.o): In function
> `dectime':
> /home/local/src/udunits-1.12.4/src/lib/utlib.c:432: undefined reference to
> `floor'
> /home/local/src/udunits-1.12.4/src/lib/libudunits.a(utlib.o): In function
> `decomp':
> /home/local/src/udunits-1.12.4/src/lib/utlib.c:366: undefined reference to
> `fmod'
> /home/local/src/udunits-1.12.4/src/lib/libudunits.a(utlib.o): In function
> `utPrint':
> /home/local/src/udunits-1.12.4/src/lib/utlib.c:1298: undefined reference to
> `log10'
> /home/local/src/udunits-1.12.4/src/lib/utlib.c:1298: undefined reference to
> `ceil'
> /home/local/src/udunits-1.12.4/src/lib/libudunits.a(utlib.o): In function
> `utRaise':
> /home/local/src/udunits-1.12.4/src/lib/utlib.c:807: undefined reference to
> `pow'
> collect2: ld returned 1 exit status
> gmake[2]: *** [udunits] Error 1
> gmake[2]: Leaving directory `/home/local/src/udunits-1.12.4/src/udunits'
> gmake[1]: *** [program] Error 2
> gmake[1]: Leaving directory `/home/local/src/udunits-1.12.4/src/udunits'
> gmake: *** [udunits/all] Error 1
It looks like the Standard C functions aren't in the C runtime
library.
Try the following:
make distclean
./configure CPPFLAGS='-Df2cFortran -D_XOPEN_SOURCE=500' LD_MATH=-lm >&!
configure.log &&
make >&! make.log &&
make test >&! test.log &&
make install >&! install.log
If it fails, then send me the relevant file or files.
Regards,
Steve Emmerson
Ticket Details
===================
Ticket ID: WJW-509399
Department: Support UDUNITS
Priority: Normal
Status: Closed