pbzip2-2-r548 compilation fails on Solaris & Sun C++ 5.9
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pbzip2 |
New
|
Undecided
|
Unassigned |
Bug Description
Attempt to build pbzip2-2-r548 on Solaris 10 using Sun Studio compiler fails with errors like this:
options.hpp", line 21: Error: Type name expected instead of "size_t".
Other warnings are also being issued. Probably makes sense to port some of the Sun-specific customizations as per Makefile.
In addition - bzip2 library search founds following:
-- Found BZip2: /usr/local/
-- Looking for BZ2_bzCompressInit in /usr/local/
-- Looking for BZ2_bzCompressInit in /usr/local/
Which is a 32-bit library and wouldn't be suitable for the 64-bit. (I admit I don't have 64-bit static library installed now. Just the shared one: /usr/lib/
Compiler used: CC: Sun C++ 5.9 SunOS_sparc Patch 124863-23 2010/04/13
More detailed logs to be attached
"Error: Type name expected instead of "size_t"."
Obviously the issue is that size_t couldn't be resolved since it's is in std namespace (std::size_t)