1753819 Members
8144 Online
108805 Solutions
New Discussion юеВ

Re: Error 608

 
Rawat
Advisor

Error!!!!

Hi,

We are trying to compile a program using makefile and we are getting this error

Error 107: "/opt/aCC/include_std/iosfwd", line 39 # Bad #include syntax: '#include _RWSTD_CWCHAR'.

#include _RWSTD_CWCHAR


Please tell me why its coming and how to solve it???

Thanks
Rawat
8 REPLIES 8
Steven Schweda
Honored Contributor

Re: Error!!!!

Knowing nothing:

td176> grep _RWSTD_CWCHAR /opt/aCC/include_std/*
/opt/aCC/include_std/iosfwd:#include _RWSTD_CWCHAR
/opt/aCC/include_std/string:#include _RWSTD_CWCHAR

td176> grep _RWSTD_CWCHAR /opt/aCC/include_std/*/*
/opt/aCC/include_std/rw/iosbase:#include _RWSTD_CWCHAR
/opt/aCC/include_std/rw/iotraits:# include _RWSTD_CWCHAR
/opt/aCC/include_std/rw/money.cc:#include _RWSTD_CWCHAR
/opt/aCC/include_std/rw/stddefs.h:# define _RWSTD_CWCHAR
/opt/aCC/include_std/rw/stddefs.h:# define _RWSTD_CWCHAR
/opt/aCC/include_std/rw/stddefs.h:# define _RWSTD_CWCHAR
/opt/aCC/include_std/rw/stddefs.h:# define _RWSTD_CWCHAR
/opt/aCC/include_std/rw/stddefs.h:# define _RWSTD_CWCHAR
/opt/aCC/include_std/rw/traits:#include _RWSTD_CWCHAR

I'd guess that, for some reason, the macro
_RWSTD_CWCHAR is not getting defined as
expected.

"a program using makefile" is not really a
complete description of what you're trying to
compile, and how you're trying to compile it,
all of which information might be useful in
trying to guess what's happening here.
Rawat
Advisor

Re: Error!!!!

Hi Steven,

this is the (makefile) we are using..
"

PSA_HOME=/vobs/PSA/3.2/PSA
PSA33_ROOT=/vobs/PSA/3.3

include $(PSA33_ROOT)/Makefile.path
include $(PSA_HOME)/Makefile.global

MY_DEFINES=
#use the following define to test TimedOutContextHandler
#MY_DEFINES=-D TEST_NO_CONTEXT_ERASE_ON_RESPONSE

PSA_INCLUDE=$(PSA_HOME)/incl
PSA_LIBS=$(PSA_HOME)/lib

CAP3_LIBS=$(PSA_LIBS)/cap3

GPRS_FILTER=$(PSA_HOME)/cap3PSAFilter
GPRS_FILTER_O=$(GPRS_FILTER)/src

HOUSTON =$(PSA_HOME)/houston
"makefile" 196 lines, 4922 characters
# Makefile for ggsnPSAFilter - copied from cap3Filter
# $Id: /vobs/PSA/3.2/PSA/ggsnPSAFilter/src/Makefile@@/main/develop_33/6 $

# "standard" directories from other PSA Makefiles
PSA_HOME=/vobs/PSA/3.2/PSA
PSA33_ROOT=/vobs/PSA/3.3

include $(PSA33_ROOT)/Makefile.path
include $(PSA_HOME)/Makefile.global

MY_DEFINES=
#use the following define to test TimedOutContextHandler
#MY_DEFINES=-D TEST_NO_CONTEXT_ERASE_ON_RESPONSE

PSA_INCLUDE=$(PSA_HOME)/incl
PSA_LIBS=$(PSA_HOME)/lib

CAP3_LIBS=$(PSA_LIBS)/cap3

GPRS_FILTER=$(PSA_HOME)/cap3PSAFilter
GPRS_FILTER_O=$(GPRS_FILTER)/src

HOUSTON =$(PSA_HOME)/houston

PSA33 =$(PSA33_ROOT)/PSA
PSA33_LIBS =$(PSA33)/lib
PSA33_INC =$(PSA33)/include
PSA32_INC =$(PSA_HOME)/incl

# tint interface location <-------------- temporary - the standard location is in 3.3
TINT_IF = $(PSA_LIBS)/tintconnection
TINT_IF_src=$(TINT_IF)/src
TINT_IF_INC = $(TINT_IF)/include

# includes for compilation using extension rules
MY_INCLUDES = \
-I$(PSA_INCLUDE) \
-I$(PSA_HOME)/filter/incl \
-I$(PSA_HOME)/services/common/incl \
-I$(PSA_HOME)/services/sms/v05/incl \
-I$(PSA_HOME)/cap3PSAFilter/include \
-I$(CAP3_LIBS) \
\
-I$(INFRASTRUCTURE_INCLUDE) \
-I$(EXTIFACE_INCLUDE) \
-I$(PSA33_INC) \
-I$(TINT_IF_INC) \
\
-I../include \
-I$(PSA_HOME)/lib/cap3/common/include \
-I$(PSA_HOME)/lib/cap3/comms/include \
-I$(PSA_HOME)/houston/include \
-I$(PSA33_ROOT)/PSA/include \
-I$(PSA33_ROOT)/PSA/stats/statsc/ \
-I$(PSA33_ROOT)/PSA/stats/include/ \
-I$(PSA32_INC) \
-I$(PSA_HOME)/diameter

MY_LD_FLAGS=
MY_CXX_FLAGS=-g

# for multithreaded support in the informix calls (probably :-) )
AE_ESQL=$(AE_ESQL_DCE)

# -v
# -vtype symbols
# -vtype files
# -vtype libraries
# -vtype procelim
# -vtype sections
# -vtype all

# change in headers should always invoke recompilation as source files
# are dependent on them
HEADERS = ../include/*.h

# all source files which make up the binary
C_src=
EC_src=
ECXX_src=

CXX_src=\
CTPParser.cpp \
SGSNAddrTranslator.cpp \
NortelGgsnFilter.cpp \
NortelMessageProcessor.cpp \
main.cpp \
StreamBufferMessage.cpp \
NCCPMessage.cpp \
ProtocolChannel.cpp \
ProtocolConnection.cpp \
NCCPBindValidator.cpp \
TLVDecoder.cpp \
TLVEncoder.cpp \
SessionLayerParser.cpp \
NCCPParser.cpp \
TimedOutContextHandler.cpp \
IdleConnectionHandler.cpp

# the 1st standard target
TARGET_A = $(DELIVERABLE)/ggsnPSAFilter

OBJECTS_FOR_A = $(OBJECTS)

# object files created from the source files
OBJECTS = $(C_SRC:.c=.o) $(EC_SRC:.ec=.o) $(CXX_SRC:.cpp=.o) $(ECXX_SRC:.ecpp=.o)

# external object files necessary for build of the binary
# tint interface objects
TINT_IF_OBJS = \
$(TINT_IF_SRC)/TintChannel.o \
$(TINT_IF_SRC)/TintChannelList.o \
$(TINT_IF_SRC)/TintConnection.o \
$(TINT_IF_SRC)/TintFailThread.o \
$(TINT_IF_SRC)/TintInterface.o \
$(TINT_IF_SRC)/TintQueue.o \
$(TINT_IF_SRC)/TintReceiveThread.o \
$(TINT_IF_SRC)/TintSendThread.o

EXTERNAL_OBJS_A = \
$(PSA_HOME)/services/common/src/pspInternalF0.o \
$(PSA33_LIBS)/buildversion/buildversion.o \
$(GPRS_FILTER_O)/ContextProcessor.o \
$(GPRS_FILTER_O)/GprsFilter.o \
$(GPRS_FILTER_O)/MessageProcessor.o \
$(GPRS_FILTER_O)/TintMessageProcessor.o

# PSA 3.3 libraries
LIB_PSA33 = \
-L$(PSA33_LIBS) -lpsadata -lbaselib \
-L$(PSA33_ROOT)/PSA/stats/ -lstatclib -lstatslib

# extra libraries for the binary
LIB_TARGET_A = \
-lpthread -l++ -ldld $(ESQLLIBS) \
-L$(PSA_LIBS) -lpsastd -lpsadb -lpsp \
-L$(CAP3_LIBS) -lmt -lcomms -lcommon \
-L$(HOUSTON) -lhstnclient \
-L$(INFRASTRUCTURE_LIB) -ldebug -lalarms \
$(LIB_PSA33) \
$(EXTERNAL_OBJS_A)


#
# Compilation rules
#
deliverable:
@$(AE_MAKE) all "DIR=$(DELIVERABLE)"

quantify :
@$(AE_MAKE) all \
"AE_CC=$(AE_QUANTIFY) $(AE_CC)" \
"AE_CXX=$(AE_QUANTIFY) $(AE_CXX)" \
"AE_LD=$(AE_QUANTIFY) $(AE_LD)" \
"AE_CXX_LD=$(AE_QUANTIFY) $(AE_CXX_LD)" \
"DIR=$(QUANTIFY)"

purify :
@$(AE_MAKE) all \
"AE_CC=$(AE_PURIFY) $(AE_CC)" \
"AE_CXX=$(AE_PURIFY) $(AE_CXX)" \
"AE_LD=$(AE_PURIFY) $(AE_LD)" \
"AE_CXX_LD=$(AE_PURIFY) $(AE_CXX_LD)" \
"DIR=$(PURIFY)"

test :
@$(AE_MAKE) all \
"AE_LD=$(AE_PURIFY) $(AE_LD)" \
"AE_CXX_LD=$(AE_PURIFY) $(AE_CXX_LD)" \
"AE_CC=$(AE_PURIFY) $(AE_CC)" \
"AE_CXX=$(AE_PURIFY) $(AE_CXX)" \
"DIR=$(TEST)"

all: \
tidy \
$(DIR) \
$(TARGET_A)

clean:
$(AE_RM) $(AE_RUBBISH)
$(AE_RM) -rf $(DELIVERABLE)
# $(TEST)

tidy:
@$(AE_RM) *.C

# #############################################################################
$(DIR):
$(AE_MKDIR) -p ${@}

$(OBJECTS) : $(HEADERS)

#Makefile

$(TARGET_A): $(OBJECTS_FOR_A) $(PSA_LIBS)/*.a
$(AE_CXX_LD) $(AE_LD_FLAGS) -o ${@} $(OBJECTS_FOR_A) -Wl,-a,archive_shared -Wl,-m $(LIB_TARGET_A) > ${@}.map
"

We are also using this (defined in Makefile.Global)

"AE_CXX_FLAGS = \

-Aa -z -g +p +DA1.1 -c \

-D_HPUX_SOURCE \

-D_REENTRANT \

-D_THREAD_SAFE \

-DRW_MULTI_THREAD \

-DRWSTD_MULTI_THREAD \

-D__HPACC_THREAD_SAFE_RB_TREE \

-D_POSIX_C_SOURCE=199506L \



AE_CC_FLAGS = \

-Ae -z -g -c +DA1.1 \

-D_POSIX_C_SOURCE=199506L \

-D_REENTRANT \

+ESnolit \

-DPACKVERSION="\"$(PSA_PACK_VERSION)\""
"

this in the above makefile.


Is it of some help?? Do you require some more information???

Thanks
Dennis Handly
Acclaimed Contributor

Re: Error!!!!

Instead of your large complex makefile, please provide the compile command output from your make.

The error above looks like you are using -AA headers but I don't see that option. It appears you are illegally specifying the default aC++ include paths but I don't see that either.

(What version of the compiler are you using?)

>LIB_TARGET_A = -lpthread -l++

Why are you using the obsolete Standard Components lib++.a? (Or is that just part of a template?)

> -D_REENTRANT -D_THREAD_SAFE -DRW_MULTI_THREAD \
-DRWSTD_MULTI_THREAD -D__HPACC_THREAD_SAFE_RB_TREE \
-D_POSIX_C_SOURCE=199506L \

These can all be replaced by -mt.
Rawat
Advisor

Re: Error!!!!

Hi,
In my makefile the CXX flag was set to -Aa, to include new STL i changes it to -AA, but I'm getting the
following errors.Even I'm getting Unrecognized argument "A" to option -A. The below is the compilation command

" THREADLIB=posix INFORMIXC="/usr/bin/cc " INFORMIXCPP="/opt/aCC/bin/aCC" INFORMIXDIR=/home/informix THREADLIB=posix /home/informix/bin/esql -thread -static -DIFX_THREAD -AA -z -g +p +DA1.1 -c -D_HPUX_SOURCE -D_REENTRANT -D_THREAD_SAFE -DRW_MULTI_THREAD -DRWSTD_MULTI_THREAD -D__HPACC_THREAD_SAFE_RB_TREE -D_POSIX_C_SOURCE=199506L -DPACKVERSION="\"\"" -g -I/home/informix/incl/esql -I/vobs/PSA/3.2/PSA/incl -I/vobs/PSA/3.2/PSA/filter/incl -I/vobs/PSA/3.2/PSA/services/common/incl -I/vobs/PSA/3.2/PSA/services/sms/v05/incl -I/vobs/PSA/3.2/PSA/cap3PSAFilter/include -I/vobs/PSA/3.2/PSA/lib/cap3 -I/vobs/PSABin/usr/aethos/src/infrastructure/incl -I/vobs/PSABin/usr/aethos/src/extiface/src -I/vobs/PSA/3.3/PSA/include -I/vobs/PSA/3.2/PSA/lib/tintconnection/include -I../include -I/vobs/PSA/3.2/PSA/lib/cap3/common/include -I/vobs/PSA/3.2/PSA/lib/cap3/comms/include -I/vobs/PSA/3.2/PSA/houston/include -I/vobs/PSA/3.3/PSA/include -I/vobs/PSA/3.3/PSA/stats/statsc/ -I/vobs/PSA/3.3/PSA/stats/include/ -I/vobs/PSA/3.2/PSA/incl -I/vobs/PSA/3.2/PSA/ocd3gppacctex -I/opt/OC/hpocdiameter-1-3-devel-1.6.0/include -I/usr/include/sys -I/vobs/PSA/3.2/PSA -c CTPParser.ecpp || /usr/bin/rm -f CTPParser.C

Error 600: "/vobs/PSA/3.2/PSA/incl/psaThread.hpp", line 16 # Type specifier is omitted; "int" is no longer assumed.

psaThread ( const string &name, psaThread *other );

^^^^^

Error 22: "/vobs/PSA/3.2/PSA/incl/psaThread.hpp", line 16 # Syntax error.

psaThread ( const string &name, psaThread *other );

^

Error 419: "/vobs/PSA/3.2/PSA/incl/psaThread.hpp", line 19 # 'string' is used as a type, but has not been defined as a type.

const string &name () const

^^^^^^

Error 419: "/vobs/PSA/3.2/PSA/incl/psaThread.hpp", line 70 # 'string' is used as a type, but has not been defined as a type.

string _name;

^^^^^^

Error 600: "/vobs/PSA/3.2/PSA/incl/psastd.hpp", line 41 # Type specifier is omitted; "int" is no longer assumed.

typedef runtime_error psa_error;

^^^^^^^

Error 20: "/vobs/PSA/3.2/PSA/incl/psastd.hpp", line 41 # ',' expected before 'psa_error'.

typedef runtime_error psa_error;

^^^^^^^^^

Error 376: "/vobs/PSA/3.2/PSA/incl/psp_error.hpp", line 10 # Class name expected.

class psp_error : public psa_error

^^^^^^^^^

Error 600: "/vobs/PSA/3.2/PSA/incl/psp_error.hpp", line 13 # Type specifier is omitted; "int" is no longer assumed.

psp_error ( const string &n, const int code = -1 )

^^^^^

Error 22: "/vobs/PSA/3.2/PSA/incl/psp_error.hpp", line 13 # Syntax error.

psp_error ( const string &n, const int code = -1 )

^

Error 172: "/vobs/PSA/3.2/PSA/incl/psp_error.hpp", line 14 # Undeclared variable 'n'.

:psa_error (n), _code (code) {}

^

Error 172: "/vobs/PSA/3.2/PSA/incl/psp_error.hpp", line 14 # Undeclared variable 'code'.

:psa_error (n), _code (code) {}

^^^^

Error 189: "/vobs/PSA/3.2/PSA/incl/psp_error.hpp", line 14 # Initialized object 'psa_error' is not a base class or member of the class.

:psa_error (n), _code (code) {}

^

Error 699: "/vobs/PSA/3.2/PSA/incl/psp_error.hpp", line 14 # Error limit reached; halting compilation.

:psa_error (n), _code (code) {}

^

cc: error 1412: Unrecognized argument "A" to option -A.

/usr/bin/rm -f -f CTPParser.C
".

Is it of any help??
Peter Nikitka
Honored Contributor

Re: Error!!!!

Hi,

try with a changed setting: instead of
INFORMIXC="/usr/bin/cc"
use
INFORMIXC="/opt/aCC/bin/aCC"

just like for variable INFORMIXCPP.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Dennis Handly
Acclaimed Contributor

Re: Error!!!!

>Peter: try with a changed setting: instead of INFORMIXC="/usr/bin/cc"

I would think you need to do the opposite. You need to provide different options to the C sources. Unless CPP stands for C Pre-Processor instead of C++?? Perhaps it is invoking aCC for preprocessing then invoking C as you say??

>to include new STL i changes it to -AA

If you are now using -AA, you have to do a port.

>-DRW_MULTI_THREAD -DRWSTD_MULTI_THREAD -D__HPACC_THREAD_SAFE_RB_TREE

These options are useless for -AA. Use -mt instead.

>Error 419: ".../psaThread.hpp", line 19 # 'string' is used as a type, but has not been defined as a type.

This is where you need to do a port for -AA.
A simple solution is to add this somewhere near the top, probably after the include of :
namespace std {} using namespace std;
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,5520,00.html

>cc: error 1412: Unrecognized argument "A" to option -A.

cc needs C options.
Rawat
Advisor

Re: Error!!!!

Hi,



I was using aCC: HP ANSI C++ B3910B A.03.50 earlier and my code was compiling fine but when I upgraded

to aCC: HP ANSI C++ B3910B A.03.65, I am getting the below error. Pls can anybody help me.



Error 608: "/vobs/PSA/3.2/PSA/incl/psp_error.hpp", line 15 # The exception specification for the overriding member function "psp_error::~psp_error()" must be at least

as restrictive as each of the exception specifications at ["/opt/aCC/include/stdexcept", line 156]

virtual ~psp_error () {}

^

Error 608: "/vobs/PSA/3.2/PSA/incl/sock_error.hpp", line 15 # The exception specification for the overriding member function "sock_error::~sock_error()" must be at

least as restrictive as each of the exception specifications at ["/opt/aCC/include/stdexcept", line 156]

virtual ~sock_error () {}
Dennis Handly
Acclaimed Contributor

Re: Error 608

>but when I upgraded to A.03.65, I am getting the below error.
Error 608: psp_error.hpp # The exception specification for the overriding member function "psp_error::~psp_error()" must be at least as restrictive as each of the exception specifications at ["/opt/aCC/include/stdexcept", line 156]

It means what it says. Your source is illegal and the compiler is now catching it. From <stdexcept> you must have:
psp_error::~psp_error() throw()

This was fixed with CR JAGae95980:
Error 608 not flagged for virtual dtors

If this answer is helpful, see:
http://forums.itrc.hp.com/service/forums/helptips.do?#33