From c5d62ca899fcd376f74dc4dc332f7a8cb73d382f Mon Sep 17 00:00:00 2001 From: Raymond Lu Date: Mon, 5 Nov 2012 15:29:31 -0500 Subject: [svn-r23012] I added Sun's 5.9 C++ compiler problem as a known problem. It doesn't know a C99 predefined identifier __func__. --- release_docs/RELEASE.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/release_docs/RELEASE.txt b/release_docs/RELEASE.txt index 13889de..0ca2c31 100644 --- a/release_docs/RELEASE.txt +++ b/release_docs/RELEASE.txt @@ -1193,6 +1193,25 @@ SuSe Linux 2.6.5 Known Problems ============== +* The 5.9 C++ compiler on Sun failed to compile a C++ test ttypes.cpp. It + complains with this message: + "/home/hdf5/src/H5Vprivate.h", line 130: Error: __func__ is not defined. + + The reason is that __func__ is a predefined identifier in C99 standard. The + HDF5 C library uses it in H5private.h. The test ttypes.cpp includes + H5private.h (H5Tpkg.h<-H5Fprivate.h<-H5Vprivate.h<-H5private.h). Sun's 5.9 + C++ compiler doesn't support __func__, thus fails to compile the C++ test. + But 5.11 C++ compiler does. To check whether your Sun C++ compiler knows this + identifier, try to compile the following simple C++ program: + #include + + int main(void) + { + printf("%s\n", __func__); + return 0; + } + (SLU - 2012/11/5) + * The C++ and FORTRAN bindings are not currently working on FreeBSD with the native release 8.2 compilers (4.2.1), but are working with gcc 4.6 from the ports (and probably gcc releases after that). -- cgit v0.12