Operating System - HP-UX
1748177 Members
4134 Online
108758 Solutions
New Discussion юеВ

Re: Problems compiling Gsoap in HP-UX 11.00

 
RealityRyan
New Member

Problems compiling Gsoap in HP-UX 11.00

I'm using aCC and compiling gsoap in Unix running the make command.

make all-recursive
make[1]: Entering directory `/opt/ktopngen/gsoap/gsoap-2.7'
Making all in gsoap
make[2]: Entering directory `/opt/ktopngen/gsoap/gsoap-2.7/gsoap'
source='stdsoap2_cpp.cpp' object='libgsoap___a-stdsoap2_cpp.o' libtool=no \
depfile='.deps/libgsoap___a-stdsoap2_cpp.Po' tmpdepfile='.deps/libgsoap_
__a-stdsoap2_cpp.TPo' \
depmode=none /bin/sh ../depcomp \
aCC -DHAVE_CONFIG_H -I. -I. -I.. -DHP_UX -g -c -o libgsoap___a-stds
oap2_cpp.o `test -f 'stdsoap2_cpp.cpp' || echo './'`stdsoap2_cpp.cpp
Error (future) 600: "stdsoap2.h", line 1547 # Type specifier is omitted; "int"
is no longer assumed.
extern std::ostream &operator<<(std::ostream&, const struct soap
^^^^^^
Error 20: "stdsoap2.h", line 1547 # ';' expected before '::'.
extern std::ostream &operator<<(std::ostream&, const struct soap_dom_eleme
^^
Error 19: "stdsoap2.h", line 1547 # Unexpected 'std'.
extern std::ostream &operator<<(std::ostream&, const struct soap_dom_elemen
^^^
Error (future) 600: "stdsoap2.h", line 1548 # Type specifier is omitted; "int"
is no longer assumed.
extern std::istream &operator>>(std::istream&, struct soap_dom_e
Error 20: "stdsoap2.h", line 1548 # ';' expected before '::'.
extern std::istream &operator>>(std::istream&, struct soap_dom_element&);
^^
Error 19: "stdsoap2.h", line 1548 # Unexpected 'std'.
extern std::istream &operator>>(std::istream&, struct soap_dom_element&);
^^^
Error 19: "stdsoap2.h", line 1652 # Unexpected 'std'.
std::ostream *os;
^^^
Error 19: "stdsoap2.h", line 1653 # Unexpected 'std'.
std::istream *is;
^^^
Error 19: "stdsoap2.h", line 2165 # Unexpected 'std'.
SOAP_FMAC1 void SOAP_FMAC2 soap_stream_fault(struct soap*, std::ostream&);
^^^
Error 24: "stdsoap2_cpp.cpp", line 515 # 'class' expected instead of 'std'.
{ soap->os->write(s, (std::streamsize)n);
^^^
Error 537: "stdsoap2_cpp.cpp", line 515 # Cannot create a 'streamsize' object;
class streamsize has only been seen as an incomplete declaration.
{ soap->os->write(s, (std::streamsize)n);
^
Warning 749: "stdsoap2_cpp.cpp", line 576 # The cast from 'sockaddr_in *' to
'sockaddr *' is performed as a 'reinterpret_cast'. This operation is
non-portable and potentially unsafe.
sendto(soap->socket, s, (SOAP_WINSOCKINT)n, soap->socket_flags, (struct sock
addr*)&s
^^^^^^^^^^^^
^^^^^^
Error 24: "stdsoap2_cpp.cpp", line 885 # 'class' expected instead of 'std'.
return soap->is->read(s, (std::streamsize)n).gcount();
^^^
Error 537: "stdsoap2_cpp.cpp", line 885 # Cannot create a 'streamsize' object;
class streamsize has only been seen as an incomplete declaration.
return soap->is->read(s, (std::streamsize)n).gcount();
^
Warning 749: "stdsoap2_cpp.cpp", line 958 # The cast from 'sockaddr_in *' to
'sockaddr *' is performed as a 'reinterpret_cast'. This operation is
non-portable and potentially unsafe.
cvfrom(soap->socket, s, (SOAP_WINSOCKINT)n, soap->socket_flags, (struct sock
addr*)&s
^^^^^^^^^^^^
^^^^^^
Warning 749: "stdsoap2_cpp.cpp", line 3892 # The cast from 'sockaddr_in *' to
'sockaddr *' is performed as a 'reinterpret_cast'. This operation is
non-portable and potentially unsafe.
if (connect(fd, (struct sockaddr*)&soap->peer, sizeof(soap->peer)))
^^^^^^^^^^^^^^^^^^
Warning 749: "stdsoap2_cpp.cpp", line 4386 # The cast from 'sockaddr_in *' to
'sockaddr *' is performed as a 'reinterpret_cast'. This operation is
non-portable and potentially unsafe.
if (bind(soap->master, (struct sockaddr*)&soap->peer, (int)soap->peerlen)
Warning 749: "stdsoap2_cpp.cpp", line 4575 # The cast from 'sockaddr_in *' to
'sockaddr *' is performed as a 'reinterpret_cast'. This operation is
non-portable and potentially unsafe.
soap->socket = soap->faccept(soap, soap->master, (struct sockaddr*)&s
^^^^^^^^^^^^^^^^^^
Error 19: "stdsoap2_cpp.cpp", line 14970 # Unexpected 'std'.
soap_stream_fault(struct soap *soap, std::ostream& os)
^^^
Error 699: "stdsoap2_cpp.cpp", line 14970 # Error limit reached; halting
compilation.
soap_stream_fault(struct soap *soap, std::ostream& os)
^^^
make[2]: *** [libgsoap___a-stdsoap2_cpp.o] Error 2
make[2]: Leaving directory `/opt/ktopngen/gsoap/gsoap-2.7/gsoap'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/ktopngen/gsoap/gsoap-2.7'
make: *** [all] Error 2

7 REPLIES 7
Dennis Handly
Acclaimed Contributor

Re: Problems compiling Gsoap in HP-UX 11.00

The default for PA aC++ is -AP. You need to compile with -AA to recognize namespace std.
RealityRyan
New Member

Re: Problems compiling Gsoap in HP-UX 11.00

Thanks for your response, that's right I am compiling in aCC.

What is the command to do that?
Dennis Handly
Acclaimed Contributor

Re: Problems compiling Gsoap in HP-UX 11.00

>What is the command to do that?

As I said, just add the -AA option to your compile and link command lines.
RealityRyan
New Member

Re: Problems compiling Gsoap in HP-UX 11.00

Thanks for your response, it appears to working now.
Dennis Handly
Acclaimed Contributor

Re: Problems compiling Gsoap in HP-UX 11.00

>Thanks for your response, it appears to working now.

If you are happy with the answers you have gotten, please read the following about assigning points:
http://forums.itrc.hp.com/service/forums/helptips.do?#33
RealityRyan
New Member

Re: Problems compiling Gsoap in HP-UX 11.00

Job well done.
Dennis Handly
Acclaimed Contributor

Re: Problems compiling Gsoap in HP-UX 11.00

You still haven't assigned any points. You must reopen and push the submit button before closing the thread:
http://forums.itrc.hp.com/service/forums/helptips.do?#41