You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Andrew Perry2 <PE...@uk.ibm.com> on 2005/01/04 12:12:06 UTC

RE: HP-UX 11.11 compatibility




I think that the xml/tspp part of the project is only in a developmental
state [can someone confirm this?]. It is not required as part of the
project and the Xerces parser could/should be used. If you modify the make
call to specify to use the xerces parser only then it should all build OK.

Regards,

Andrew Perry
IBM C/C++ Web Services Client
perryan@uk.ibm.com
Mail Point 127
IBM UK Laboratories. Hursley Park, Winchester, Hants. SO21 2JN
Tel. Internal 249828  External + 44 (0)1962 819828
Fax. + 44(0)1962 818080

"Christopher J. Campbell" <Ch...@AssetSmart.com> wrote on
30/12/2004 23:52:38:

> 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.


RE: HP-UX 11.11 compatibility

Posted by Roshan Weerasuriya <ro...@opensource.lk>.
hi,

> 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?

Axis C++ compiles fine (including the tspp eventhough it is at a
development stage) in my mechine under the following configurations.

 - Red Hat Linux 9.0
 - gcc 3.2.2

Axis C++ also compiles fine in Windows.

The latest CVS head source code works fine.

Roshan

On Tue, 2005-01-04 at 19:58, Roshan Weerasuriya wrote:
> hi,
> 
> >I think that the xml/tspp part of the project is only in a
> >developmental
> > state [can someone confirm this?]. It is not required as part of the
> > project and the Xerces parser could/should be used. 
> 
> Yes, this is in the developmental stage, and building this xml/tspp this
> is not required. But you need the xerces-c parser to build Axis C++.
> 
> >If you modify the make
> > call to specify to use the xerces parser only then it should all build OK.
> 
> The following "--enable-tspp=no" works on my linux mechine (Red Hat
> linux 9). You could specify this as a configure option to avoid building
> "tspp" parser.
> 
> ./configure --prefix=$AXISCPP_DEPLOY --with-apache2=/usr/local/apache2/
> --with-xercesc=/usr/local/xerces-c/ --enable-tspp=no
> 
> Roshan
> 
> On Tue, 2005-01-04 at 17:12, Andrew Perry2 wrote:
> > 
> > 
> > I think that the xml/tspp part of the project is only in a developmental
> > state [can someone confirm this?]. It is not required as part of the
> > project and the Xerces parser could/should be used. If you modify the make
> > call to specify to use the xerces parser only then it should all build OK.
> > 
> > Regards,
> > 
> > Andrew Perry
> > IBM C/C++ Web Services Client
> > perryan@uk.ibm.com
> > Mail Point 127
> > IBM UK Laboratories. Hursley Park, Winchester, Hants. SO21 2JN
> > Tel. Internal 249828  External + 44 (0)1962 819828
> > Fax. + 44(0)1962 818080
> > 
> > "Christopher J. Campbell" <Ch...@AssetSmart.com> wrote on
> > 30/12/2004 23:52:38:
> > 
> > > 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.
> > 
> > 
> 
> 


RE: HP-UX 11.11 compatibility

Posted by Roshan Weerasuriya <ro...@opensource.lk>.
hi,

>I think that the xml/tspp part of the project is only in a
>developmental
> state [can someone confirm this?]. It is not required as part of the
> project and the Xerces parser could/should be used. 

Yes, this is in the developmental stage, and building this xml/tspp this
is not required. But you need the xerces-c parser to build Axis C++.

>If you modify the make
> call to specify to use the xerces parser only then it should all build OK.

The following "--enable-tspp=no" works on my linux mechine (Red Hat
linux 9). You could specify this as a configure option to avoid building
"tspp" parser.

./configure --prefix=$AXISCPP_DEPLOY --with-apache2=/usr/local/apache2/
--with-xercesc=/usr/local/xerces-c/ --enable-tspp=no

Roshan

On Tue, 2005-01-04 at 17:12, Andrew Perry2 wrote:
> 
> 
> I think that the xml/tspp part of the project is only in a developmental
> state [can someone confirm this?]. It is not required as part of the
> project and the Xerces parser could/should be used. If you modify the make
> call to specify to use the xerces parser only then it should all build OK.
> 
> Regards,
> 
> Andrew Perry
> IBM C/C++ Web Services Client
> perryan@uk.ibm.com
> Mail Point 127
> IBM UK Laboratories. Hursley Park, Winchester, Hants. SO21 2JN
> Tel. Internal 249828  External + 44 (0)1962 819828
> Fax. + 44(0)1962 818080
> 
> "Christopher J. Campbell" <Ch...@AssetSmart.com> wrote on
> 30/12/2004 23:52:38:
> 
> > 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.
> 
>