Add a New Comment Rich Markup
building openexr 1. on Solaris 11e with Sun Studio 12.1 fails with ... "ImfChannelListAttribute.cpp", line 122: Error: Could not find a match for::checkIsNullTerminated<::N>(char[256], const char[13]) needed in Imf::TypedAttribute<Imf::ChannelList>::readValueFrom(Imf::IStream&, int, int). 1 Error(s) detected. This is because the Sun Studio compiler does distinguish const and non-const values. Patch below: --- IlmImf/ImfChannelListAttribute.cpp.orig 2011-06-25 12:59:11.543823287 +0000 +++ IlmImf/ImfChannelListAttribute.cpp 2011-06-25 13:01:08.681707573 +0000 @@ -48,7 +48,7 @@ namespace { template <size_t N> -void checkIsNullTerminated (const char (&str)[N], const char *what) +void checkIsNullTerminated (char (&str)[N], const char *what) { for (int i = 0; i < N; ++i) { if (str[i] == '\0') --- IlmImf/ImfHeader.cpp.orig 2011-06-25 13:08:25.226984026 +0000 +++ IlmImf/ImfHeader.cpp 2011-06-25 13:08:54.305742875 +0000 @@ -147,7 +147,7 @@ } template <size_t N> -void checkIsNullTerminated (const char (&str)[N], const char *what) +void checkIsNullTerminated (char (&str)[N], const char *what) { for (int i = 0; i < N; ++i) { if (str[i] == '\0')
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only logged-in users can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Copyright © 2024 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Page source code
Powered by Savane 3.13-f8d8.Corresponding source code