Opened 12 years ago

Closed 12 years ago

#32562 closed defect (invalid)

HDF4 library not working for FORTRAN programs

Reported by: cyberbass4@… Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: hdf4

Description (last modified by ryandesign (Ryan Carsten Schmidt))

OS: MacOSX 10.6.8 (x86_64-apple-darwin10)
gfortran,gcc version: 4.6.2

HDF4 (4.2.6_2) was built on the system, but if I use it to compile any FORTRAN program with HDF library used, the following information is displayed:

  "_sfrdata_", referenced from:
      _MAIN__ in cc0eOrvq.o
  "_sfend_", referenced from:
      _MAIN__ in cc0eOrvq.o
  "_sfstart_", referenced from:
      _MAIN__ in cc0eOrvq.o
  "_sfselect_", referenced from:
      _MAIN__ in cc0eOrvq.o
  "_sfendacc_", referenced from:
      _MAIN__ in cc0eOrvq.o

It looks like the HDF4 library is built without FORTRAN support. Could anybody test this for me? Thanks!

Change History (2)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: HDF FORTRAN removed
Milestone: MacPorts 2.0.4
Owner: changed from macports-tickets@… to takeshi@…
Port: hdf4 added
Priority: HighNormal

Remember to use WikiFormatting, to fill in the Port field, and to Cc the maintainer of the port. The Milestone field is not used for port tickets.

If you want fortran support you need to use one of the port's gcc variants.

comment:2 Changed 12 years ago by tenomoto (Takeshi Enomoto)

Resolution: invalid
Status: newclosed

Compile with one of variants g95, gcc43, gcc44, or gcc45.

Note: See TracTickets for help on using tickets.