RE: [reSIProcate] Compilation error
Purely off the top of my head ... These errors are occuring possibly for two
reasons :
You might want to investigate new style casts for C++ such as const_cast.
The const modifier result may not be what the original author intended. Decls
and Modifiers are read by compilers right to left, this means that the const is
very possibly in the wrong place. Move the const modifier into the decl as
appropriate so that when reading right to left it matches the contract of the
method as best as you can factor from the body of the method.
Repost if it continues to go funky.
Good luck
Karl
-----Original Message-----
From: Ron Shacham [mailto:rs2194@xxxxxxxxxxxxxxx]
Sent: Tue 4/25/2006 10:44 AM
To: Karl Mutch
Cc: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
Subject: RE: [reSIProcate] Compilation error
Thank you. The README file mentions this issue with version 4. I set
the
CC and CXX variables to point to an earlier version and I no longer
have
those errors from before. However, I still have the following errors:
/usr/bin/g++32 -DHAVE_CONFIG_H -I. -I. -I. -I.. -I.. -I/usr/include
-I/usr/local/ssl/include
-I/root/ron/resiprocate-0.9.0-5019/contrib/ares
-I/usr/kerberos/include -g -O2 -Wall -Wno-deprecated -MT Security.lo
-MD
-MP -MF .deps/Security.Tpo -c Security.cxx -fPIC -DPIC -o
.libs/Security.o
Security.cxx: In member function `void
resip::BaseSecurity::addCertDER(resip::BaseSecurity::PEMType, const
resip::Data&, const resip::Data&, bool) const':
Security.cxx:321: invalid conversion from `unsigned char**' to `const
unsigned
char**'
Security.cxx: In member function `void
resip::BaseSecurity::checkAndSetIdentity(const resip::SipMessage&,
const
resip::Data&) const':
Security.cxx:1657: invalid conversion from `unsigned char**' to `const
unsigned
char**'
Security.cxx: In member function `resip::Data
resip::BaseSecurity::getCetName(X509*)':
Security.cxx:2245: invalid conversion from `unsigned char**' to `const
unsigned
char**'
Security.cxx:2247: invalid conversion from `unsigned char**' to `const
unsigned
char**'
make[3]: *** [Security.lo] Error 1
make[3]: Leaving directory
`/root/ron/resiprocate-0.9.0-5019/resiprocate'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/root/ron/resiprocate-0.9.0-5019/resiprocate'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/root/ron/resiprocate-0.9.0-5019/resiprocate'
make: *** [all-recursive] Error 1
Regards,
Ron
On Tue, 25 Apr 2006, Karl Mutch wrote:
> What is the gcc version being used ? Sounds like your running a
stricter gcc than what has been used/available to date.
>
> "gcc --version"
>
> Karl
>
> -----Original Message-----
> From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx on behalf
of Ron Shacham
> Sent: Tue 4/25/2006 8:29 AM
> To: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
> Cc:
> Subject: [reSIProcate] Compilation error
>
>
>
> Hello.
> I am trying to build resip in linux. I am getting the
following error on
> make:
> make all-recursive
> make[1]: Entering directory
`/root/ron/resiprocate-0.9.0-5019/resiprocate'
> Making all in .
> make[2]: Entering directory
`/root/ron/resiprocate-0.9.0-5019/resiprocate'
> if /bin/sh ../libtool --tag=CXX --mode=compile --tag=CXX g++
> -DHAVE_CONFIG_H -I. -I. -I. -I.. -I.. -I/usr/include
> -I/usr/local/ssl/include
-I/root/ron/resiprocate-0.9.0-5019/contrib/ares
> -I/usr/kerberos/include -g -O2 -Wall -Wno-deprecated -MT
ApiCheck.lo -MD
> -MP -MF ".deps/ApiCheck.Tpo" -c -o ApiCheck.lo ApiCheck.cxx; \
> then mv -f ".deps/ApiCheck.Tpo" ".deps/ApiCheck.Plo"; else rm
-f
> ".deps/ApiCheck.Tpo"; exit 1; fi
> g++ -DHAVE_CONFIG_H -I. -I. -I. -I.. -I.. -I/usr/include
> -I/usr/local/ssl/include
-I/root/ron/resiprocate-0.9.0-5019/contrib/ares
> -I/usr/kerberos/include -g -O2 -Wall -Wno-deprecated -MT
ApiCheck.lo -MD
> -MP -MF .deps/ApiCheck.Tpo -c ApiCheck.cxx -fPIC -DPIC -o
> .libs/ApiCheck.o
> ../resiprocate/Connection.hxx:59: error: ISO C++ forbids
declaration of
> 'ConnectionManager' with no type
> ../resiprocate/Connection.hxx:59: error: expected ';' before
'&' token
> ../resiprocate/ParameterTypes.hxx:30: warning: 'class
resip::ParamBase'
> has virtual functions but non-virtual destructor
> ../resiprocate/ParameterTypes.hxx:35: warning: 'class
resip::data_Param'
> has virtual functions but non-virtual destructor
> ../resiprocate/ParameterTypes.hxx:36: warning: 'class
> resip::control_Param' has virtual functions but non-virtual
destructor
>
> There are many more of these warnings, followed by:
>
> make[2]: *** [ApiCheck.lo] Error 1
> make[2]: Leaving directory
`/root/ron/resiprocate-0.9.0-5019/resiprocate'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
`/root/ron/resiprocate-0.9.0-5019/resiprocate'
> make: *** [all] Error 2
>
>
> This is from the distribution tarball available on the website.
> Can someone point me in the right direction?
>
> Regards,
> Ron
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel@xxxxxxxxxxxxxxxxxxx
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
>
>