pbzip2-2-r548 compilation fails on Solaris & Sun C++ 5.9

Bug #589923 reported by Yavor Nikolov
6
This bug affects 1 person
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.solaris.sunstudio of original 1.1.x pbzip2 release.

In addition - bzip2 library search founds following:
-- Found BZip2: /usr/local/lib/libbz2.a
-- Looking for BZ2_bzCompressInit in /usr/local/lib/libbz2.a
-- Looking for BZ2_bzCompressInit in /usr/local/lib/libbz2.a - found
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/sparcv9/libbz2.so).

Compiler used: CC: Sun C++ 5.9 SunOS_sparc Patch 124863-23 2010/04/13

More detailed logs to be attached

Revision history for this message
Yavor Nikolov (yavor-nikolov) wrote :
Revision history for this message
Yavor Nikolov (yavor-nikolov) wrote :
Revision history for this message
Yavor Nikolov (yavor-nikolov) wrote :

"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)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.