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

20010409: compiling udunits under Linux: cfortran.h failure



Daniel,

>Date: Mon, 9 Apr 2001 14:09:10 -0700
>From: "Daniel Lipkie" <address@hidden>
>Organization: ?
>To: <address@hidden>
>Subject: FW: Problems compiling udunits ..
>Keywords: 200104071802.f37I2AL02312

The above message contained the following:

> making `all' in directory /home/daniel/ncview/udunits-1.11.7/src/lib
> 
> make[1]: Entering directory `/home/daniel/ncview/udunits-1.11.7/src/lib'
> ln -s ../port/misc/udalloc.c .
> ln -s ../port/misc/udalloc.h .
> cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"/home/daniel/
> ncview/udunits-1.11.7/etc/udunits.dat"'  utlib.c
> In file included from utlib.c:29:
> ../port/cfortran/cfortran.h:132:3: e/en_US/LC_MESSAGES/gcc.mo
> cc: Internal error: Segmentation fault (program cpp0)
> Please submit a full bug report.
> See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
> make[1]: *** [utlib.o] Error 1
> make[1]: Leaving directory `/home/daniel/ncview/udunits-1.11.7/src/lib'
> make: *** [lib/all] Error 1
> =============================
> uname.log
> Linux redhat.localdomain 2.2.16-22 #1 Tue Aug 22 16:16:55 EDT 2000 i586
> unknown
> =============================

On a Linux system, it's usually necessary to define the C macro
"f2cFortran" in order to compile the UDUNITS library (you can see
examples of this in the INSTALL file).

Try the following:

    1.  Go to the top-level source directory of the package.

    2.  Perform steps 3 through 5 near the end of the INSTALL file.
        Ensure that the environment variable CPPFLAGS contains the
        string "-Df2cFortran".

    3.  Perform steps 6 through 9 near the end of the INSTALL file.

Please let me know if this helps.

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>