bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Successfully compiled 1.3.1 on AIX 5.2 /w Visual Age C++ 6.0 after s


From: David Sugar
Subject: Re: Successfully compiled 1.3.1 on AIX 5.2 /w Visual Age C++ 6.0 after some tweaking
Date: Thu, 27 Jan 2005 14:49:22 -0500
User-agent: Mozilla Thunderbird 1.0 (Macintosh/20041206)

The question I see is how this could be applied to the more general case of the distribution itself. The HAVE_SYS_LIBCSYS_H, or inclusion of the associated include file could possibily be contained through a _AIX_ macro test, if a reliable "_AIX_" type define exists. For example, we could change:

#ifdef HAVE_SYS_LIBCSYS_H
#include <sys/libcsys.h>
#endif

to a #if defined(HAVE_SYS_LIBCSYS_H) && !define(_AIX_..)

assuming a suitable define to test for can be suggested.

I wonder what we can do for dynamic_casts and rtti, though. Of course I prefer not to use C++ exceptions, and none of my newest apps or libs based off Common C++ depend on exception handling.

As for problems in libtool, that is a question for the libtool maintainer.

#pragma pack(nopack) could also be handled by the same _AIX_... specific define.

We could possibily add additional compiler flag tests for aix targets through the "$target_os" case tests we already have in configure.ac. Perhaps we could also reverse the default for --without-exceptions for aix under such a test.

I am curious if ccrtp and ccaudio2 also successfully build on AIX, and if dynamic loading of plugin components work correctly.

address@hidden wrote:
Hi All,
        I was finally able to successfully compile version 1.3.1 on AIX 5.2 /w 
Visual Age C++ after some tweaking.

System Details:

   Compiler: VisualAge C++ Compiler Version 6.0.0.5
   OS: AIX 5.2.0.0

C/C++ Flags: "-qcpluscmt" or "-+" Allows C++ comments "//" in C files. "-qlanglvl=redefmac" Allows macros to be redefined without #undef "_THREAD_SAFE"

configure Flags:
   "--enable-static --disable-shared": Personal preference
   "--without-exceptions": Needed due to use of "dynamic_cast without RTTI" 
error.

config.h:
   HAVE_SYS_LIBCSYS_H: Had to be commented out due to errors with memcopy 
declarations.

libtool:
   "${CC/${host}-}": "bad substitution error" (lines 904 and 1297) had to 
comment out check.


With these changes it compiles and runs successfully.

Note:
   The VisualAge C++ Compiler doesn't like "#pragma pack()" and gives numerous warning 
messages. With this compiler you would need to do "#pragma pack(nopack)" instead.

Thanks,
Ron Horrell


**********************************************************************
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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]