Jeff Whitaker wrote:
Mike Zulauf wrote:
Hi all,
I've been following the recent issues with HDF, and I think there
may be another problem with the latest versions. I believe there
may be a work around, but I'm not sure if that is the best way to
handle this issue.
It looks like the Fortran bindings have been compiled differently in
the latest version (hdf-4.2r1-2) than they were in previous versions
(ie, hdf-4.2r0-3). The trailing underscores have been left out of
the new versions. This causes unresolved symbol errors.
Just as an example, under hdf-4.2r0-3:
% nm /sw/lib/libmfhdf.a | grep -i sfend
0000004c T _sfend_
00000054 T _sfendacc_
And under hdf-4.2r1-2:
% nm /sw/lib/libmfhdf.a | grep -i sfend
0000004c T _sfend
00000054 T _sfendacc
It's not just those two symbols, but many (all? - I haven't checked)
of the Fortran symbols. I expect I could work around this by use of
one of the -f underscore options, but that can sometimes make things
tricky when using multiple sets of libraries.
Reverting to hdf-4.2r0-3 has fixed this issue for me. Is this an
actual problem, something I'm not handling correctly, etc? Is there
a better fix than I've mentioned?
Anyway, thanks to all. . .
Mike
Mike: Seems like a problem with the update. In 4.2r1 the configure
scripts assume you are using xlf, which does not append underscores.
I've tried to make it use g77 conventions, but apparently I didn't get
everything. About half the symbols have underscores at the end, and
half don't! I'll look into it.
-Jeff
Mike: I believe I finally have a workaround for this. I've updated the
package to use '-fno-underscoring' when compiling the library. At least
that way all the symbols now have the same underscoring convention
(identical to xlf's). The fortran tests now pass.
-Jeff
--
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : [EMAIL PROTECTED]
325 Broadway Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users