[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mico-devel
Subject:    RE: MICO: Compilation with SSL failed...
From:       "Mathew Mills" <mills3 () home ! com>
Date:       1999-09-28 22:20:27
[Download RAW message or body]

Check out the mailing-list archives...

One of the previous posts follows.  This fixed the problem for me.
-------------------------------------------------------------------------
On Thu, 9 Sep 1999, Kay Roemer wrote:

> > we had a problem compiling the ssl.cc. We think itīs a possible
> > bug.
>
> Yes, it is. Will be fixed in the next release.

Quick'n dirty fix:

In transport.h:
  // virtual CORBA::Boolean isreadable () = 0;
    virtual CORBA::Boolean isreadable ();

and in transport.cc I added:
CORBA::Boolean
CORBA::Transport::isreadable() {
  return FALSE;
}

I'm not sure that this is the correct solution, but it compiles with
openssl 0.9.3a and the ssl example works.

For 0.9.4 I also had to modify ssl.cc:
    case BIO_CTRL_GET:
        if (b->init) {
            if (!ptr)
                ret = 0;
            else
              // ###ras
              //                *(char **)ptr = b->ptr;
              *(void **)ptr = b->ptr;
        } else {
            ret = -1;
        }
        break;

I didn't check for any evil side effects yet, so be carefull...

Rudi
--------------------------------------------------------------------




-----Original Message-----
From: owner-mico-devel@vsb.informatik.uni-frankfurt.de
[mailto:owner-mico-devel@vsb.informatik.uni-frankfurt.de]On Behalf Of
Srikanth Thirumalai
Sent: Tuesday, September 28, 1999 2:03 PM
To: mico-devel@vsb.informatik.uni-frankfurt.de
Subject: MICO: Compilation with SSL failed...


Hi,

I am trying to compile MICO (v 2.3.0) with SSL support enabled but i get
the following complaints
when i try to compile it on Redhat Linux 6.0 with egcs-2.91.66.

Are there any patches that I need to download ?

Srikanth


c++  -I../include -I/scratch/srithir/mico/./include/ministl  -O
-fno-exceptions -I/usr/local/ssl/include  -fexceptions -c orb_all.cc -o
orb_all.o
ssl.cc: In function `long int mico_bio_ctrl(struct BIO *, int, long int,
char *)':
In file included from orb_all.cc:29:
ssl.cc:142: warning: ANSI C++ forbids implicit conversion from `void *'
in assignment
ssl.cc: In method `class ::CORBA::Transport *
::MICOSSL::SSLAddress::make_transport() const':
ssl.cc:232: cannot allocate an object of type `::MICOSSL::SSLTransport'
ssl.cc:232:   since the following virtual functions are abstract:
ssl.cc:232:     Boolean ::CORBA::Transport::isreadable()
ssl.cc: In method `class ::CORBA::Transport *
::MICOSSL::SSLTransportServer::accept()':
ssl.cc:728: cannot allocate an object of type `::MICOSSL::SSLTransport'
ssl.cc:728:   since type `::MICOSSL::SSLTransport' has abstract virtual
functions

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic