[cmake-developers] [CMake 0013148]: Compiling cmake fails under xlc/xlC v6 in 2.8.8
Mantis Bug Tracker
mantis at public.kitware.com
Thu Apr 19 08:24:14 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13148
======================================================================
Reported By: Jim Hague
Assigned To:
======================================================================
Project: CMake
Issue ID: 13148
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-04-19 08:24 EDT
Last Modified: 2012-04-19 08:24 EDT
======================================================================
Summary: Compiling cmake fails under xlc/xlC v6 in 2.8.8
Description:
xlc v6 can't cope with:
1. 'inline' in archive_endian.h
2. A trailing ',' in enum definitions
The following patch gets cmake building.
Additional Information:
chive_endian.h.orig ./Utilities/cmlibarchive/libarchive/archive_endian.h
--- ./Utilities/cmlibarchive/libarchive/archive_endian.h.orig 2012-04-19
10:14:59.000000000 +0100
+++ ./Utilities/cmlibarchive/libarchive/archive_endian.h 2012-04-19
10:16:40.000000000 +0100
@@ -45,7 +45,7 @@
* - SGI MIPSpro
* - Microsoft Visual C++ 6.0 (supposedly newer versions too)
*/
-#if defined(__WATCOMC__) || defined(__sgi) || defined(__hpux) ||
defined(__BORLANDC__)
+#if defined(__WATCOMC__) || defined(__sgi) || defined(__hpux) ||
defined(__BORLANDC__) || defined(_AIX)
#define inline
#elif defined(_MSC_VER) || defined(__osf__)
#define inline __inline
--- ./Utilities/cmlibarchive/libarchive/archive_write_set_format_iso9660.c.orig
2012-04-19 10:17:22.000000000 +0100
+++ ./Utilities/cmlibarchive/libarchive/archive_write_set_format_iso9660.c
2012-04-19 10:18:17.000000000 +0100
@@ -197,7 +197,7 @@
enum {
NO = 0,
BOOT_CATALOG,
- BOOT_IMAGE,
+ BOOT_IMAGE
} boot;
/*
@@ -850,7 +850,7 @@
DIR_REC_VD, /* Stored in Volume Descriptor. */
DIR_REC_SELF, /* Stored as Current Directory. */
DIR_REC_PARENT, /* Stored as Parent Directory. */
- DIR_REC_NORMAL, /* Stored as Child. */
+ DIR_REC_NORMAL /* Stored as Child. */
};
/*
@@ -860,7 +860,7 @@
VDC_STD,
VDC_LOWERCASE,
VDC_UCS2,
- VDC_UCS2_DIRECT,
+ VDC_UCS2_DIRECT
};
/*
@@ -897,7 +897,7 @@
enum char_type {
A_CHAR,
- D_CHAR,
+ D_CHAR
};
@@ -3989,7 +3989,7 @@
KEY_FLG,
KEY_STR,
KEY_INT,
- KEY_HEX,
+ KEY_HEX
};
static void
set_option_info(struct archive_string *info, int *opt, const char *key,
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-04-19 08:24 Jim Hague New Issue
======================================================================
More information about the cmake-developers
mailing list