[engineer@localhost xmlrpc++0.7]$ make all
Downloaded latest version 0.7 of xmlrpc++ from
xmlrpcpp.sourceforge.net today. Makefile works
successfully for gcc version 3.2.2 Red Hat 9.0, but
gets following error for gcc version 3.4.2 Fedora. Can
you recommend code/makefile changes to get this working
under Fedora?
--------------------------------------------------------------------------
g++ -g -Wall -Wstrict-prototypes -O2 -I./src -c -o
src/XmlRpcClient.o src/XmlRpcClient.cpp
cc1plus: warning: command line option
"-Wstrict-prototypes" is valid for Ada/C/ObjC but not
for C++
g++ -g -Wall -Wstrict-prototypes -O2 -I./src -c -o
src/XmlRpcDispatch.o src/XmlRpcDispatch.cpp
cc1plus: warning: command line option
"-Wstrict-prototypes" is valid for Ada/C/ObjC but not
for C++
g++ -g -Wall -Wstrict-prototypes -O2 -I./src -c -o
src/XmlRpcServer.o src/XmlRpcServer.cpp
cc1plus: warning: command line option
"-Wstrict-prototypes" is valid for Ada/C/ObjC but not
for C++
g++ -g -Wall -Wstrict-prototypes -O2 -I./src -c -o
src/XmlRpcServerConnection.o src/XmlRpcServerConnection.cpp
cc1plus: warning: command line option
"-Wstrict-prototypes" is valid for Ada/C/ObjC but not
for C++
g++ -g -Wall -Wstrict-prototypes -O2 -I./src -c -o
src/XmlRpcServerMethod.o src/XmlRpcServerMethod.cpp
cc1plus: warning: command line option
"-Wstrict-prototypes" is valid for Ada/C/ObjC but not
for C++
g++ -g -Wall -Wstrict-prototypes -O2 -I./src -c -o
src/XmlRpcSocket.o src/XmlRpcSocket.cpp
cc1plus: warning: command line option
"-Wstrict-prototypes" is valid for Ada/C/ObjC but not
for C++
g++ -g -Wall -Wstrict-prototypes -O2 -I./src -c -o
src/XmlRpcSource.o src/XmlRpcSource.cpp
cc1plus: warning: command line option
"-Wstrict-prototypes" is valid for Ada/C/ObjC but not
for C++
g++ -g -Wall -Wstrict-prototypes -O2 -I./src -c -o
src/XmlRpcUtil.o src/XmlRpcUtil.cpp
cc1plus: warning: command line option
"-Wstrict-prototypes" is valid for Ada/C/ObjC but not
for C++
g++ -g -Wall -Wstrict-prototypes -O2 -I./src -c -o
src/XmlRpcValue.o src/XmlRpcValue.cpp
cc1plus: warning: command line option
"-Wstrict-prototypes" is valid for Ada/C/ObjC but not
for C++
ar rv ./libXmlRpc.a ./src/XmlRpcClient.o
./src/XmlRpcDispatch.o ./src/XmlRpcServer.o
./src/XmlRpcServerConnection.o
./src/XmlRpcServerMethod.o ./src/XmlRpcSocket.o
./src/XmlRpcSource.o ./src/XmlRpcUtil.o ./src/XmlRpcValue.o
ar: creating ./libXmlRpc.a
a - ./src/XmlRpcClient.o
a - ./src/XmlRpcDispatch.o
a - ./src/XmlRpcServer.o
a - ./src/XmlRpcServerConnection.o
a - ./src/XmlRpcServerMethod.o
a - ./src/XmlRpcSocket.o
a - ./src/XmlRpcSource.o
a - ./src/XmlRpcUtil.o
a - ./src/XmlRpcValue.o
cd test && make CXX=g++ CXXFLAGS="-g -Wall
-Wstrict-prototypes -O2 " SYSTEMLIBS=""
make[1]: Entering directory
`/home/engineer/xmlrpc++0.7/test'
g++ -g -Wall -Wstrict-prototypes -O2 -I../src
HelloClient.cpp ../libXmlRpc.a ../libXmlRpc.a -o
HelloClient
cc1plus: warning: command line option
"-Wstrict-prototypes" is valid for Ada/C/ObjC but not
for C++
g++ -g -Wall -Wstrict-prototypes -O2 -I../src
HelloServer.cpp ../libXmlRpc.a ../libXmlRpc.a -o
HelloServer
cc1plus: warning: command line option
"-Wstrict-prototypes" is valid for Ada/C/ObjC but not
for C++
g++ -g -Wall -Wstrict-prototypes -O2 -I../src
TestBase64Client.cpp ../libXmlRpc.a ../libXmlRpc.a -o
TestBase64Clientcc1plus: warning: command line option
"-Wstrict-prototypes" is valid for Ada/C/ObjC but not
for C++
g++ -g -Wall -Wstrict-prototypes -O2 -I../src
TestBase64Server.cpp ../libXmlRpc.a ../libXmlRpc.a -o
TestBase64Servercc1plus: warning: command line option
"-Wstrict-prototypes" is valid for Ada/C/ObjC but not
for C++
g++ -g -Wall -Wstrict-prototypes -O2 -I../src
TestValues.cpp ../libXmlRpc.a ../libXmlRpc.a -o
TestValues
cc1plus: warning: command line option
"-Wstrict-prototypes" is valid for Ada/C/ObjC but not
for C++
g++ -g -Wall -Wstrict-prototypes -O2 -I../src
TestXml.cpp ../libXmlRpc.a ../libXmlRpc.a -o TestXml
cc1plus: warning: command line option
"-Wstrict-prototypes" is valid for Ada/C/ObjC but not
for C++
g++ -g -Wall -Wstrict-prototypes -O2 -I../src
Validator.cpp ../libXmlRpc.a ../libXmlRpc.a -o Validator
cc1plus: warning: command line option
"-Wstrict-prototypes" is valid for Ada/C/ObjC but not
for C++
Validator.cpp: In member function `virtual void
ModerateSizeArrayCheck::execute(XmlRpc::XmlRpcValue&,
XmlRpc::XmlRpcValue&)':Validator.cpp:279: error:
ambiguous overload for 'operator+=' in 's +=
(+(+params)->XmlRpc::XmlRpcValue::operator[](0))->XmlRpc::XmlRpcValue::operator[](((+(+params)->XmlRpc::XmlRpcValue::operator[](0))->XmlRpc::XmlRpcValue::size()
- 1))'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/bits/basic_string.h:689:
note: candidates are: std::basic_string<_CharT,
_Traits, _Alloc>& std::basic_string<_CharT, _Traits,
_Alloc>::operator+=(const std::basic_string<_CharT,
_Traits, _Alloc>&) [with _CharT = char, _Traits =
std::char_traits<char>, _Alloc = std::allocator<char>]
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/bits/basic_string.h:697:
note: std::basic_string<_CharT,
_Traits, _Alloc>& std::basic_string<_CharT, _Traits,
_Alloc>::operator+=(const _CharT*) [with _CharT = char,
_Traits = std::char_traits<char>, _Alloc =
std::allocator<char>] <near match>
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/bits/basic_string.h:705:
note: std::basic_string<_CharT,
_Traits, _Alloc>& std::basic_string<_CharT, _Traits,
_Alloc>::operator+=(_CharT) [with _CharT = char,
_Traits= std::char_traits<char>, _Alloc =
std::allocator<char>]
make[1]: *** [Validator] Error 1
make[1]: Leaving directory
`/home/engineer/xmlrpc++0.7/test'
make: *** [tests] Error 2