This works but there is also a "__hpux" condition already there. string.h:
93 #if defined(__GNUC__) || !defined(_AIX) && !defined(__hpux)
94 #pragma pack(1)
95 #endif
96
97 union
98 {
99 struct
100 {
101 char *text;
102 size_t size;
103 size_t length;
104 } bigstring;
105 struct
106 {
107 char text[(sizeof(char *) + (sizeof(size_t) * 2) + 1)];
108 char length : 6;
109 bool big : 1;
110 } ministring;
111 } content;
112
113 #if defined(__GNUC__) || !defined(_AIX) && !defined(__hpux)
114 #pragma pack()
115 #endif
-----Original Message-----
From: David Sugar [mailto:address@hidden
Sent: Thursday, July 07, 2005 9:50 PM
To: Horrell, Ronald (Card Services)
Cc: address@hidden; address@hidden
Subject: Re: Build errors on AIX 5.2 with VisualAge C++
Would something like #if !defined(_AIX) || defined(__GNUC__) work?
address@hidden wrote:
FYI,
I was able to successfully compile commoncpp2-1.3.13 on AIX using
VisualAge C++ after some minor tweaking:
* include/cc++/string.h -- line 114 "#pragma pack()" wasn't liked, pack
requires a value, I commented out the pack statements. (I have seen this in earlier
versions as well)
* ./include/cc++/config.h & ./include/config.h -- I had to manually comment out
HAVE_STRINGS_H. Configure finds and accepts strings.h but when it is included it
produces numerous errors.
Here are some system Details:
AIX 5.2.0.0
Compiler
Fileset Level State Type Description (Uninstaller)
----------------------------------------------------------------------------
vacpp.cmp.core 6.0.0.5 C F VisualAge C++ Compiler
**********************************************************************
This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the intended
recipient, you are hereby notified that any disclosure, copying, distribution,
or use of the information contained herein (including any reliance thereon) is
STRICTLY PROHIBITED. If you received this transmission in error, please
immediately contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you
**********************************************************************
_______________________________________________
Bug-commoncpp mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-commoncpp
_______________________________________________
Bug-commoncpp mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-commoncpp