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

[netCDF #XJP-840947]: Netcdf compiles but make check fails for fortran



> Full Name: Tiago Pereira
> Email Address: address@hidden
> Organization: RSAA
> Package Version: 3.6.3
> Operating System: Mac OS X 10.5.4 (Darwin Kernel Version 9.4.0) ppc
> Hardware: G5 ppc
> Description of problem: Hello,
>
> With a ppc Mac I'm using gcc/gfortran to compile netcdf, version 4.4 binaries
from hpc.sourceforge.net.
>
> I can get netcdf to compile, but it fails in the make check. The error
message is one of undefined symbols when linking. I've already tried a variety
of different compiler flags (including the ones that are on netcdf supported
builds for darwin), but I always get the same error. Any suggestions?
>
> Many thanks,
>
> Tiago Pereira
>
> PS: config.log, make and make check logs attached.
>
>

Try it again, but don't set -Df2cFortran in CPPFLAGS or CFLAGS.

gfortran changed it's way of naming functions around version 4.2 of gcc, but if
you just leave this flag unset, the netcdf configure script will choose the
correct setting.

Please let me know if this doesn't help.

Ed

Ticket Details
===================
Ticket ID: XJP-840947
Department: Support netCDF
Priority: Normal
Status: Closed