I may try adding something in cc++/config.h then, more like:

#ifdef  __GNUC__
#define CCXX_PACKED
#else
#if !defined(_AIX) && !defined(__hpux)
#define CCXX_PACKED
#endif
#endif

And then use a #ifdef CCXX_PACKED for things like that in other headers and such...

[EMAIL PROTECTED] wrote:
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:[EMAIL PROTECTED]
Sent: Thursday, July 07, 2005 9:50 PM
To: Horrell, Ronald (Card Services)
Cc: [EMAIL PROTECTED]; bug-commoncpp@gnu.org
Subject: Re: Build errors on AIX 5.2 with VisualAge C++


Would something like #if !defined(_AIX) || defined(__GNUC__) work?

[EMAIL PROTECTED] 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
Bug-commoncpp@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-commoncpp




_______________________________________________
Bug-commoncpp mailing list
Bug-commoncpp@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-commoncpp

begin:vcard
fn:David Sugar
n:Sugar;David
org:GNU Telephony
adr:;;;;;;USA
email;internet:[EMAIL PROTECTED]
x-mozilla-html:FALSE
url:http://www.gnutelephony.org
version:2.1
end:vcard

_______________________________________________
Bug-commoncpp mailing list
Bug-commoncpp@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-commoncpp

Reply via email to