From: Mike A. <mi...@wr...> - 2001-03-13 22:31:51
|
Sorry to repost a message, but I'm hoping someone can answer my questions. I've got code that builds with GCC 2.95.2 on Solaris and Linux. I get compile errors with the GCC compiler in the AIX toolkit. Here are my questions: 1. Is the compiler in the toolkit non-standard? Does it contain fixes for AIX that are not part of a standard GCC release? 2. What level of GCC is it based on? GCC -v returns "gcc version 2.9-aix43-000718". Thanks! Mike Allen -----Original Message----- From: Mike Allen Sent: Tuesday, March 06, 2001 1:30 PM To: 'aix...@au...' Subject: Compile errors from GCC tools for AIX (aix43-000718) Greetings, I just installed the GCC tools for AIX (aix43-000718). I'm trying to compile code that builds OK with GCC 2.95.2 on Solaris and Linux. I'm getting the following warnings: In file included from atmemmgr.cpp:37: /usr/include/pthread.h:113: warning: missing white space after `#define PTHREAD_MUTEX_INITIALIZER' /usr/include/pthread.h:128: warning: missing white space after `#define PTHREAD_COND_INITIALIZER' /usr/include/pthread.h:147: warning: missing white space after `#define PTHREAD_RWLOCK_INITIALIZER' /usr/include/pthread.h:157: warning: missing white space after `#define PTHREAD_ONCE_INIT' Here is the header from the pthread.h file: /* static char sccsid[] = "@(#)15 1.32.2.32 src/bos/usr/ccs/lib/libpthreads/pthread.h, libpth, bos43R 11/24/99 12:02:08"; */ /* * COMPONENT_NAME: libpth * * FUNCTIONS: * * ORIGINS: 27, 71, 83 * * LEVEL 1, 5 Years Bull Confidential Information * * (c) Copyright 1990, 1991, 1992, 1993 OPEN SOFTWARE FOUNDATION, INC. * ALL RIGHTS RESERVED * * OSF/1 1.2 */ I edited the pthread.h file to add white space to the indicated lines so that I could go further. Then I hit this warning: atmemmgr.cpp:1368: warning: format not a string literal, argument types not checked Here is the offending line from the source: fprintf(stderr,szBuf); Again, this compiles fine with gcc 2.95.2 on Linux. There doesn't seem to be any way to turn off this warning. What level is the compiler in this package? Here is what I get from gcc -v Reading specs from /usr/gcc/aix43-000718/H-powerpc-ibm-aix4.3.3.0/bin/../lib/gcc-lib/powerpc-ib m-aix4.3.3.0/2.9-aix43-000718/specs gcc version 2.9-aix43-000718 Thanks, Mike Allen ----------- WRQ, Inc. Seattle, WA 206-217-7715 |