Unix Technical Forum

PLEASE HELP ME :-(

This is a discussion on PLEASE HELP ME :-( within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> Hi Folks! Can anyone help me on the follwoing issue : "/opt/aCC/include/memory", line 493: error #2020: identifier "bad_alloc" is ...


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 05:50 AM
sudhansutiwari@gmail.com
 
Posts: n/a
Default PLEASE HELP ME :-(

Hi Folks!

Can anyone help me on the follwoing issue :

"/opt/aCC/include/memory", line 493: error #2020: identifier
"bad_alloc" is
undefined
RWSTD_THROW_NO_MSG(tmp == 0, bad_alloc);
^

"/opt/aCC/include/stdexcept", line 73: error #2262: not a class or
struct name
class RWSTDExport logic_error : public exception
^

"/opt/aCC/include/stdexcept", line 149: error #2262: not a class or
struct name
class RWSTDExport runtime_error : public exception
^

"/opt/aCC/include_std/iosfwd", line 39: catastrophic error #2013:
expected a
file name
#include _RWSTD_CWCHAR
^

3 errors and 1 catastrophic error detected in the compilation of "/
citisafe/users/mandaro/cs35/waicref/CSAFECollection.cpp".
Compilation terminated.
*** Error exit code 1

Stop.



I am trying to compile this on HP-Itanium.
Any help is highly appreciated... Thanks a lot in advance!! Its
urgent
guys, please help.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 05:50 AM
Dennis Handly
 
Posts: n/a
Default Re: PLEASE HELP ME :-(

sudhansutiwari@gmail.com wrote:
> Can anyone help me on the following issue :
> "/opt/aCC/include/memory", line 493: error #2020: identifier
> "bad_alloc" is undefined
> RWSTD_THROW_NO_MSG(tmp == 0, bad_alloc);
>
> I am trying to compile this on HP-Itanium.


Again what are your compile options, particularly -I?
Don't illegally add the default aC++ include file paths.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 05:50 AM
sudhansutiwari@gmail.com
 
Posts: n/a
Default Re: PLEASE HELP ME :-(

On Feb 6, 1:42 pm, Dennis Handly <dhan...@cup.hp.com> wrote:
> sudhansutiw...@gmail.com wrote:
> > Can anyone help me on the following issue :
> > "/opt/aCC/include/memory", line 493: error #2020: identifier
> > "bad_alloc" is undefined
> > RWSTD_THROW_NO_MSG(tmp == 0, bad_alloc);

>
> > I am trying to compile this on HP-Itanium.

>
> Again what are your compile options, particularly -I?
> Don't illegally add the default aC++ include file paths.


Hi Dennis,

Thanks a lot dear friend, your suggestion worked well . .
I am really grateful to you and appreciate your help . .
Dont feel bad but am bound to seek your expert advice on following
issue :

(aCC -Wl,+s +W829 -DPROTOTYPING -g -c -Aa -I/citisafe/users/
mandaro/cs35/href -I/citisafe/users/secpxyit/IWS6.0SP5/IWS/plugins/
include -I/citisafe/users/secpxyit/syb1251/OCS-12_5/include -I/
citisafe/users/secpxyit/CRYPTO/include -I/citisafe/users/secpxyit/
enigma/h -I/usr/include -Dunix -DIDL_PROTOTYPES -D_REENTRANT
+DAportable -DHPUX -DMCC_HTTP -DMCC_PROXY -DNET_SSL -D_HPUX_SOURCE -
DXP_UNIX -D_POSIX_SOURCE -D_TCDCE_ -D_CSAFESDB_ -D_DBUG -D_DEBUG -
D_DBUG -D_TRACEMEM_ -D_WCL_ -g0 -DTCODSS_FILENAME=\"CSAFESocket.cpp\" /
citisafe/users/mandaro/cs35/waicref/CSAFESocket.cpp -o /citisafe/users/
mandaro/cs35/waicref/CSAFESocket.o) || (rm -f /citisafe/users/mandaro/
cs35/waicref/CSAFESocket.o;exit 1)
aCC: warning 901: unknown option: `+DAportable': use +help for online
documentation.
"/citisafe/users/mandaro/cs35/waicref/CSAFESocket.cpp", line 155:
error #2315:
the object has cv-qualifiers that are not compatible with
the member
function
object type is: const CSAFESocket
m_sock = p_sock.getsocket();
^

"/citisafe/users/mandaro/cs35/waicref/CSAFESocket.cpp", line 181:
error #2315:
the object has cv-qualifiers that are not compatible with
the member
function
object type is: const CSAFESocket
this->m_sock = p_sock.getsocket();
^

"/citisafe/users/mandaro/cs35/waicref/CSAFESocket.cpp", line 838:
warning #2549-D:
variable "l_nread" is used before its value is set
ioctl(i,l_nread);
^

2 errors detected in the compilation of "/citisafe/users/mandaro/cs35/
waicref/CSAFESocket.cpp".
*** Error exit code 1

Waiting for your response on this . . Thanks in advance friend . .

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 05:50 AM
Rick Jones
 
Posts: n/a
Default Re: PLEASE HELP ME :-(

sudhansutiwari@gmail.com wrote:
> (aCC -Wl,+s +W829 -DPROTOTYPING -g -c -Aa -I/citisafe/users/
> mandaro/cs35/href -I/citisafe/users/secpxyit/IWS6.0SP5/IWS/plugins/
> include -I/citisafe/users/secpxyit/syb1251/OCS-12_5/include -I/
> citisafe/users/secpxyit/CRYPTO/include -I/citisafe/users/secpxyit/
> enigma/h -I/usr/include -Dunix -DIDL_PROTOTYPES -D_REENTRANT
> +DAportable -DHPUX -DMCC_HTTP -DMCC_PROXY -DNET_SSL -D_HPUX_SOURCE -
> DXP_UNIX -D_POSIX_SOURCE -D_TCDCE_ -D_CSAFESDB_ -D_DBUG -D_DEBUG -
> D_DBUG -D_TRACEMEM_ -D_WCL_ -g0 -DTCODSS_FILENAME=\"CSAFESocket.cpp\" /
> citisafe/users/mandaro/cs35/waicref/CSAFESocket.cpp -o /citisafe/users/
> mandaro/cs35/waicref/CSAFESocket.o) || (rm -f /citisafe/users/mandaro/
> cs35/waicref/CSAFESocket.o;exit 1)
> aCC: warning 901: unknown option: `+DAportable': use +help for online
> documentation.


Dennis will need to address the othercv-qualifier bits below, but that
warning above stems from +DAportable being an option on PA-RISC, not
Itanium. Some additional makefile/configure script work is likely in
order to correct that.

> "/citisafe/users/mandaro/cs35/waicref/CSAFESocket.cpp", line 155:
> error #2315:
> the object has cv-qualifiers that are not compatible with
> the member
> function
> object type is: const CSAFESocket
> m_sock = p_sock.getsocket();
> ^


> "/citisafe/users/mandaro/cs35/waicref/CSAFESocket.cpp", line 181:
> error #2315:
> the object has cv-qualifiers that are not compatible with
> the member
> function
> object type is: const CSAFESocket
> this->m_sock = p_sock.getsocket();
> ^


> "/citisafe/users/mandaro/cs35/waicref/CSAFESocket.cpp", line 838:
> warning #2549-D:
> variable "l_nread" is used before its value is set
> ioctl(i,l_nread);
> ^


Is it indeed the case that l_nread isn't being set before the ioctl call?

rick jones

> 2 errors detected in the compilation of "/citisafe/users/mandaro/cs35/
> waicref/CSAFESocket.cpp".
> *** Error exit code 1


> Waiting for your response on this . . Thanks in advance friend . .



--
web2.0 n, the dot.com reunion tour...
these opinions are mine, all mine; HP might not want them anyway...
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 05:50 AM
Phoenix
 
Posts: n/a
Default Re: PLEASE HELP ME :-(

On Feb 7, 1:03 am, Rick Jones <rick.jon...@hp.com> wrote:
> sudhansutiw...@gmail.com wrote:
> > (aCC -Wl,+s +W829 -DPROTOTYPING -g -c -Aa -I/citisafe/users/
> > mandaro/cs35/href -I/citisafe/users/secpxyit/IWS6.0SP5/IWS/plugins/
> > include -I/citisafe/users/secpxyit/syb1251/OCS-12_5/include -I/
> > citisafe/users/secpxyit/CRYPTO/include -I/citisafe/users/secpxyit/
> > enigma/h -I/usr/include -Dunix -DIDL_PROTOTYPES -D_REENTRANT
> > +DAportable -DHPUX -DMCC_HTTP -DMCC_PROXY -DNET_SSL -D_HPUX_SOURCE -
> > DXP_UNIX -D_POSIX_SOURCE -D_TCDCE_ -D_CSAFESDB_ -D_DBUG -D_DEBUG -
> > D_DBUG -D_TRACEMEM_ -D_WCL_ -g0 -DTCODSS_FILENAME=\"CSAFESocket.cpp\" /
> > citisafe/users/mandaro/cs35/waicref/CSAFESocket.cpp -o /citisafe/users/
> > mandaro/cs35/waicref/CSAFESocket.o) || (rm -f /citisafe/users/mandaro/
> > cs35/waicref/CSAFESocket.o;exit 1)
> > aCC: warning 901: unknown option: `+DAportable': use +help for online
> > documentation.

>
> Dennis will need to address the othercv-qualifier bits below, but that
> warning above stems from +DAportable being an option on PA-RISC, not
> Itanium. Some additional makefile/configure script work is likely in
> order to correct that.
>
>
>
>
>
> > "/citisafe/users/mandaro/cs35/waicref/CSAFESocket.cpp", line 155:
> > error #2315:
> > the object has cv-qualifiers that are not compatible with
> > the member
> > function
> > object type is: const CSAFESocket
> > m_sock = p_sock.getsocket();
> > ^
> > "/citisafe/users/mandaro/cs35/waicref/CSAFESocket.cpp", line 181:
> > error #2315:
> > the object has cv-qualifiers that are not compatible with
> > the member
> > function
> > object type is: const CSAFESocket
> > this->m_sock = p_sock.getsocket();
> > ^
> > "/citisafe/users/mandaro/cs35/waicref/CSAFESocket.cpp", line 838:
> > warning #2549-D:
> > variable "l_nread" is used before its value is set
> > ioctl(i,l_nread);
> > ^

>
> Is it indeed the case that l_nread isn't being set before the ioctl call?
>
> rick jones
>
> > 2 errors detected in the compilation of "/citisafe/users/mandaro/cs35/
> > waicref/CSAFESocket.cpp".
> > *** Error exit code 1
> > Waiting for your response on this . . Thanks in advance friend . .

>
> --
> web2.0 n, the dot.com reunion tour...
> these opinions are mine, all mine; HP might not want them anyway...
> feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...- Hide quoted text -
>
> - Show quoted text -


Hi Rick,

Thanks a lot for your comments dear friend. Yeah I confirmed and found
+DAportable is not supported on Itanium as you had indicated.
I know that a non-const member function can't be called from a const
object and hence the above "cv-qualifiers" error but it was running
successfully on PA-RISC based systems.

I expect that DENNIS would address this issue soon . .


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-17-2008, 05:50 AM
Rick Jones
 
Posts: n/a
Default Re: PLEASE HELP ME :-(

Phoenix <sudhansutiwari@gmail.com> wrote:
> Thanks a lot for your comments dear friend. Yeah I confirmed and
> found +DAportable is not supported on Itanium as you had indicated.
> I know that a non-const member function can't be called from a const
> object and hence the above "cv-qualifiers" error but it was running
> successfully on PA-RISC based systems.


Past performance is no guarantee of future results I'm a networking
guy, but would suspect that as time and compilers march on, loopholes
are closed, standards more fully clarified etc etc... Best to try to
adhere as closely to the letter of the law even if it wasn't enforced
well in the past.

rick jones
--
The computing industry isn't as much a game of "Follow The Leader" as
it is one of "Ring Around the Rosy" or perhaps "Duck Duck Goose."
- Rick Jones
these opinions are mine, all mine; HP might not want them anyway...
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-17-2008, 05:51 AM
Dennis Handly
 
Posts: n/a
Default Re: PLEASE HELP ME :-(

Phoenix wrote:
>>>"/citisafe/users/mandaro/cs35/waicref/CSAFESocket.cpp", line 155:
>>>error #2315: the object has cv-qualifiers that are not compatible with
>>>the member function
>>> object type is: const CSAFESocket


> I know that a non-const member function can't be called from a const
> object and hence the above "cv-qualifiers" error but it was running
> successfully on PA-RISC based systems.


It may have ran successfully but it had illegal source. Trying a
trivial example shows a future error:
Error (future) 247: # Non-const member function "int foo::getsocket()"
is called on a const object type 'const struct foo'.
Warning: 1 future errors were detected and ignored. Add a '+p' option
to detect and fix them before they become fatal errors in a future
release. Behavior of this ill-formed program is not guaranteed to match
that of a well-formed program

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:59 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com