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

[UDUNITS #COP-571847]: Problem compiling udunits on OS X 10.4 Intel 64-bit


> After following the instructions you sent to Rebecca (and moving the
> source code), we think we have a successful install?!  We got the
> following warning, but the test was successful:
> gcc -c -O2 -m64 -I../lib -I../port/misc -Df2cFortran udunits.c
> udunits.c: In function 'main':
> udunits.c:113: warning: incompatible implicit declaration of built-in
> function 'exit'

That's an interesting warning!  It should be ignorable, however.

> gcc -o udunits -O2 -m64 udunits.o -L/usr/local/udunits-1.12.4/src/lib
> -ludunits -L/usr/local/udunits-1.12.4/src/port/misc -ludport -ly
> ld64 warning: in /usr/lib/liby.a, missing required architecture
> x86_64 in file

Hmm...  Is there a directory on your system where the 64-bit versions
of libraries are kept (e.g., /usr/lib64)?

> returning to directory /usr/local/udunits-1.12.4/src
> inteltest:/usr/local/udunits-1.12.4/src root# make test
> making `test' in directory /usr/local/udunits-1.12.4/src/udunits
> make[2]: `udunits' is up to date.
> ./udunits ../lib/udunits.dat <test.in | sed 's/\.00* UTC/.00 UTC/' \
> >test.out
> Success!

The successful "make test" indicates that you sucessfully built the
UDUNITS package.

Steve Emmerson

Ticket Details
Ticket ID: COP-571847
Department: Support UDUNITS
Priority: Normal
Status: Closed