< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate] Problems building resiprocate with g++-4.0- patch


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

        Hello!
        I succeeded to build the library on Debian GNU/Linux with gcc-4.0. I
had to patch a little the source. Here is the patch:

- ---------------- patch begin ------------------

- --- resiprocate-0.9.0-5019/resiprocate/Connection.hxx 2005-06-30
04:22:12.000000000 +0300
+++ resiprocate-0.9.0-5019-patched/resiprocate/Connection.hxx   2006-03-10
11:58:23.656113936 +0200
@@ -16,6 +16,7 @@

 class Message;
 class TlsConnection;
+class ConnectionManager;

 class Connection;

- --- resiprocate-0.9.0-5019/resiprocate/Helper.hxx     2005-06-30
04:22:12.000000000 +0300
+++ resiprocate-0.9.0-5019-patched/resiprocate/Helper.hxx       2006-03-10
11:58:37.692956312 +0200
@@ -15,6 +15,8 @@
 class NameAddr;
 class SecurityAttributes;
 class Security;
+class Contents;
+class Auth;

 class UnsupportedAuthenticationScheme : public BaseException
 {

- --- resiprocate-0.9.0-5019/resiprocate/dum/SubscriptionHandler.hxx
2005-06-30 04:22:07.000000000 +0300
+++
resiprocate-0.9.0-5019-patched/resiprocate/dum/SubscriptionHandler.hxx
2006-03-10 11:59:07.421460592 +0200
@@ -8,6 +8,7 @@
 {
 class SipMessage;
 class SecurityAttributes;
+class Contents;

 class ClientSubscriptionHandler
 {

- ---------------- patch end --------------------


        I still receive a lot of warnings- "class ... has virtual functions but
non-virtual destructor.". But the library works fine.

        Best regards,
        Petyo Milotinov


Petyo Milotinov wrote:
>       Hello!
>       I use gcc/g++ 4.0 on Debian GNU/Linux.
>       I've just downloaded resiprocate-0.9.0-5019.tar.gz. I "tar zxvf" it. I
> read "README" and "INSTALL". I ran "./configure" and after it- "make".
> But make failed with:
> 
> make[3]: *** [ApiCheck.lo] Error 1
> 
>       "README" says that it will fail on "make check" with gcc 4.0.
>       If I switch to gcc 3.3 it builds without any problems.
>       Is there any workaround to build the library using gcc 4.0?
>       And, is it possible to build it on windows in mingw environment?
>       Thanks in advance!
> 
>       Best regards,
>       Petyo Milotinov

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEEW3zH/3eKQaFKT0RAuqzAJ9aPvgKVr+oLCnuVe1vuDpTVs2DPgCeMpMi
moNP2tasTYnT9TzImgB54YY=
=LR1t
-----END PGP SIGNATURE-----