axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher J. Campbell" <Chris.Campb...@AssetSmart.com>
Subject RE: HP-UX 11.11 compatibility
Date Thu, 30 Dec 2004 23:52:38 GMT
Well I have tackled the HP-UX build of Axis C++ 1.4 and have been able
to make it fairly far before encountering problems -- although the Linux
installation instructions do seem to be missing a few key steps for HP,
such as running autoconf to actually build the configure script from
configure.ac  Also there are several gnu dependencies that I will try to
help document at some point.

Anyway, using gcc 3.4.3 I am getting several compile errors in the
xml/tspp make step:

-----
	if /bin/sh ../../../libtool --mode=compile --tag=CXX g++
-DHAVE_CONFIG_H  -I. -I. -I../../.. -I../../../include -Wall -Wshadow
-DENABLE_AXISTRACE -Wall -Wshadow -DENABLE_AXISTRACE   -g -O2 -MT
Buffer.lo -MD -MP -MF ".deps/Buffer.Tpo" -c -o Buffer.lo Buffer.cpp; \
	then mv -f ".deps/Buffer.Tpo" ".deps/Buffer.Plo"; else rm -f
".deps/Buffer.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include -Wall
-Wshadow -DENABLE_AXISTRACE -Wall -Wshadow -DENABLE_AXISTRACE -g -O2 -MT
Buffer.lo -MD -MP -MF .deps/Buffer.Tpo -c Buffer.cpp  -fPIC -DPIC -o
.libs/Buffer.o
In file included from Buffer.cpp:23:
Buffer.hpp: In constructor `Buffer<T>::Buffer(int)':
Buffer.hpp:56: error: there are no arguments to `malloc' that depend on
a template parameter, so a declaration of `malloc' must be available
Buffer.hpp:56: error: (if you use `-fpermissive', G++ will accept your
code, but allowing the use of an undeclared name is deprecated)
*** Error exit code 1

Stop.
-----

Adding #include <malloc.h> to Buffer.hpp seems to resolve this first
issue, but there still is something strange with the Array class:

-----
	if /bin/sh ../../../libtool --mode=compile --tag=CXX g++
-DHAVE_CONFIG_H  -I. -I. -I../../.. -I../../../include -Wall -Wshadow
-DENABLE_AXISTRACE -Wall -Wshadow -DENABLE_AXISTRACE   -g -O2 -MT
ParserLoader.lo -MD -MP -MF ".deps/ParserLoader.Tpo" -c -o
ParserLoader.lo ParserLoader.cpp; \
	then mv -f ".deps/ParserLoader.Tpo" ".deps/ParserLoader.Plo";
else rm -f ".deps/ParserLoader.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include -Wall
-Wshadow -DENABLE_AXISTRACE -Wall -Wshadow -DENABLE_AXISTRACE -g -O2 -MT
ParserLoader.lo -MD -MP -MF .deps/ParserLoader.Tpo -c ParserLoader.cpp
-fPIC -DPIC -o .libs/ParserLoader.o
In file included from ../XMLParser.h:30,
                 from XMLParserAxis.hpp:29,
                 from ParserLoader.cpp:22:
../../transport/SOAPTransport.h:110: warning: `cdecl' attribute
directive ignored
In file included from XmlPullParser.hpp:30,
                 from XMLParserAxis.hpp:32,
                 from ParserLoader.cpp:22:
Array.hpp: In member function `T& Array<T>::operator[](int)':
Array.hpp:44: error: `buffer' undeclared (first use this function)
Array.hpp:44: error: (Each undeclared identifier is reported only once
for each function it appears in.)
Array.hpp: In member function `T& Array<T>::getLast()':
Array.hpp:56: error: `buffer' undeclared (first use this function)
Array.hpp: In member function `T& Array<T>::append()':
Array.hpp:61: error: `size' undeclared (first use this function)
Array.hpp:62: error: there are no arguments to `grow' that depend on a
template parameter, so a declaration of `grow' must be available
Array.hpp:62: error: (if you use `-fpermissive', G++ will accept your
code, but allowing the use of an undeclared name is deprecated)
Array.hpp:63: error: `buffer' undeclared (first use this function)
*** Error exit code 1

Stop.
-----

I can't imagine why g++/gcc would behave differently on HP-UX vs. other
platforms -- does this code compile cleanly with gcc 3.4.x on Linux (or
Solaris etc.)?  Or is it perhaps syntax that earlier compilers would
accept but is now deprecated in 3.4.x?

Any tips appreciated, thanks,

Chris C.

Mime
View raw message