[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 20030924: udunits and fortran Mac OSX 10.2.
- Subject: Re: 20030924: udunits and fortran Mac OSX 10.2.
- Date: Thu, 25 Sep 2003 13:10:48 -0600
Ruth,
>Date: Thu, 25 Sep 2003 13:32:06 -0400
>From: Ruth Platner <address@hidden>
>Organization: ?
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20030924: udunits and fortran Mac OSX 10.2.
The above message contained the following:
> I did setenv CPPFLAGS -Df2cFortran, you can see that in env.out which is
> attached and is my environment. That got me past the Fortran complaints, but
> now I'm getting other compiler errors. I have attached the output of make in
> a file make.out, config.log, the outout of configure is in configure.log.
> The other pieces of requested information are in info.log.
>
> Thanks so much for your help,
>
> Ruth
...
> filename="make.out"
>
>
> making `all' in directory /udunits-1.11.7/src/port
>
>
> making `all' in directory /udunits-1.11.7/src/port/misc
>
> cc -c -O -I. -D_REENTRANT -Df2cFortran uddummy.c
> cc -c -O -I. -D_REENTRANT -Df2cFortran tsearch.c
> cc -c -O -I. -D_REENTRANT -Df2cFortran tfind.c
> cc -c -O -I. -D_REENTRANT -Df2cFortran tdelete.c
> cc -c -O -I. -D_REENTRANT -Df2cFortran twalk.c
> ar rcuv libudport.a uddummy.o tsearch.o tfind.o tdelete.o twalk.o
> a - uddummy.o
> a - tsearch.o
> a - tfind.o
> a - tdelete.o
> a - twalk.o
> case "" in \
> '') ;; \
> *) ar rucv libudport.a ;; \
> esac
> ranlib libudport.a
>
> returning to directory /udunits-1.11.7/src/port
>
>
> making `all' in directory /udunits-1.11.7/src/port/cfortran
>
> make[2]: Nothing to be done for `all'.
>
> returning to directory /udunits-1.11.7/src/port
>
>
> returning to directory /udunits-1.11.7/src
>
>
> making `all' in directory /udunits-1.11.7/src/lib
>
> cc -c -O -I../port/misc -I../port/cfortran
> -DUT_DEFAULT_PATH='"/udunits-1.11.7/etc/udunits.dat"' -Df2cFortran utlib.c
> utlib.c:1335: undefined type, found `ptrdiff_t'
> cpp-precomp: warning: errors during smart preprocessing, retrying in basic
> mode
> utlib.c: In function `utInit':
> utlib.c:1081: warning: assignment makes pointer from integer without a cast
> utlib.c: At top level:
> utlib.c:1336: parse error before "mystrcmp"
> make[1]: *** [utlib.o] Error 1
> make: *** [lib/all] Error 1
It appears that including the header-file <stddef.h> doesn't obtain a
definition for "ptrdiff_t". This is non-standard behavior.
Would you please look at the <stddef.h> header-file and see if a macro
needs to be defined in order to obtain a definition for "ptrdiff_t".
You might have to also look at files that are included by <stddef.h>.
Regards,
Steve Emmerson