Bonobo/IIOP/CORBA type problem



Hi,

I tried to compile bonobo 1.0.7 on Solaris 8/SPARC with Forté 6 update 2
(anyway i don't think the problem is the compiler).

It failed while compiling the generated Bonobo-skels.c.
The problem is a type mismatch while calling functions like
giop_send_reply_buffer_use() at the #4 argument.
IIOP expect to get the #4 argument in type GIOPReplyStatusType

typedef enum {
  GIOP_NO_EXCEPTION,
  GIOP_USER_EXCEPTION,
  GIOP_SYSTEM_EXCEPTION,
  GIOP_LOCATION_FORWARD
} GIOPReplyStatusType;

instead, Bonobo-skels.c use CORBA_Environment_type->_major

struct CORBA_Environment_type {
        CORBA_exception_type _major;
        CORBA_char *_repo_id;
        void *_params;
        CORBA_any *_any;
};

of type CORBA_exception_type

typedef enum {
        CORBA_NO_EXCEPTION=0,
        CORBA_USER_EXCEPTION,
        CORBA_SYSTEM_EXCEPTION
} CORBA_exception_type;

even if GIOPReplyStatusType look like CORBA_exception_type i can't force
typecast.
is CVS version fix this?

thanks





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]