[apluslist] Error compiling with gcc-3.3.1

Josef Sachs sachs at cyb.org
Fri Dec 3 14:14:08 EST 2004


Has anyone successfully compiled aplus-fsf-4.20-1 with gcc-3.3.1?

Under Solaris 8, I get:

c++ -DPACKAGE=\"aplus-fsf\" -DVERSION=\"4.20\" -DHAVE_DLFCN_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DRETSIGTYPE=void -DHAVE_STRFTIME=1 -DSTDC_HEADERS=1 -DHAVE_VPRINTF=1 -DHAVE_GETCWD=1 -DHAVE_GETHOSTNAME=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_GETWD=1 -DHAVE_MKTIME=1 -DHAVE_PUTENV=1 -DHAVE_REGCOMP=1 -DHAVE_SELECT=1 -DHAVE_SIGACTION=1 -DHAVE_STRCSPN=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOD=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MALLOC_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_IEEEFP_H=1 -DHAVE_MATH_H=1 -DHAVE_FLOAT_H=1 -DHAVE_FINITE=1 -DHAVE_ST_BLKSIZE=1 -DHAVE_ST_BLOCKS=1 -DHAVE_ST_RDEV=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TZNAME=1 -DHAVE_SOCKLEN_T=1 -DHAVE_SVR4=1 -I. -I. -I.. -O2 -c pA_Connection.C  -fPIC -DPIC -o .libs/pA_Connection.lo
In file included from /usr/local/include/c++/3.3.1/backward/new.h:33,
                 from ../MSTypes/MSEventSender.H:18,
                 from ../MSTypes/MSModel.H:15,
                 from ../MSTypes/MSScalarModel.H:13,
                 from ../MSTypes/MSString.H:17,
                 from ../MSIPC/MSProtocolConnection.H:16,
                 from AipcConnection.H:20,
                 from pA_Connection.H:12,
                 from pA_Connection.C:24:
/usr/local/include/c++/3.3.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
In file included from pA_Connection.C:33:
/usr/local/include/c++/3.3.1/backward/iostream.h:35: error: `ostream' is 
   already declared in this scope
/usr/local/include/c++/3.3.1/backward/iostream.h:35: error: using declaration `
   ostream' introduced ambiguous type `ostream'
/usr/local/include/c++/3.3.1/backward/iostream.h:36: error: `istream' is 
   already declared in this scope
/usr/local/include/c++/3.3.1/backward/iostream.h:36: error: using declaration `
   istream' introduced ambiguous type `istream'
make[2]: *** [pA_Connection.lo] Error 1
make[2]: Leaving directory `/u/pkg8-src/aplus-fsf-4.20/src/IPC'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/u/pkg8-src/aplus-fsf-4.20/src'
make: *** [all-recursive] Error 1


More information about the apluslist mailing list