[cmake-developers] [CMake 0013277]: archive_endian.h needs "inline" fix for Sun WorkShop (SunPro) compiler

Mantis Bug Tracker mantis at public.kitware.com
Thu Jun 7 12:57:10 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13277 
====================================================================== 
Reported By:                Daniel R. Gomez
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13277
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-06-07 12:57 EDT
Last Modified:              2012-06-07 12:57 EDT
====================================================================== 
Summary:                    archive_endian.h needs "inline" fix for Sun WorkShop
(SunPro) compiler
Description: 
Building CMake's git nightly on a Solaris 8 system with the SunPro compiler
yields

[ 38%] Building C object
Utilities/cmlibarchive/libarchive/CMakeFiles/cmlibarchive.dir/archive_read_support_filter_rpm.c.o
".../CMake/Utilities/cmlibarchive/libarchive/archive_endian.h.", line 59:
undefined or not a type: inline
".../CMake/Utilities/cmlibarchive/libarchive/archive_endian.h", line 61:
parameter not in identifier list: archive_be16dec
".../CMake/Utilities/cmlibarchive/libarchive/archive_endian.h", line 61: syntax
error before or at: {
[...]

(See http://open.cdash.org/viewBuildError.php?buildid=2340544 for more)

This compiler doesn't grok "inline"---at least not version 5.1.

A proposed patch (against git nightly) that addresses this is attached. The
macro magic is gleaned from
http://lists.x.org/archives/xorg-devel/2009-April/000580.html .
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-06-07 12:57 Daniel R. GomezNew Issue                                    
2012-06-07 12:57 Daniel R. GomezFile Added: cmake-sunpro-inline-fix.patch       
            
======================================================================




More information about the cmake-developers mailing list