Re: compilation problems (mandrake)



Hi Austin,

It looks like the GCC people have fixed a bug in access control. The member typedefs were declared private when they should have been protected. GCC 3.2 (and below) must not have been picking this up. I have fixed this in CVS, can you please confirm that it now compiles. Please continue to post any problems you find to the list.


Austin wrote:

Hi,
I'm the maintainer of the orbitcpp package in Mandrake.

Version 1.3.6 as well as the current cvs version will not compile properly. This is likely becuase we're using unstable versions of gnome and ultra-recent gcc. I can't figure out the problem. Any help would be appreciated.

Using:
gcc 3.3
liborbit2 2.7.2

Error (during make install):
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I../.. -DORBIT2=1 -I/usr/include/ orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT orbitcpp_poa.lo -MD -MP -MF .deps/orbitcpp_poa.Tpo -c orbitcpp_poa.cc -fPIC -
DPIC -o .libs/orbitcpp_poa.lo
../../orbitcpp/orb-cpp/orbitcpp_simple_seq.h: In instantiation of `_orbitcpp::
SimpleUnboundedSeq<_orbitcpp::seq_traits::CORBA_octet_>':
orbitcpp_poa.cc:156:   instantiated from here
../../orbitcpp/orb-cpp/orbitcpp_simple_seq.h:48: error: `typedef ULong _orbitcpp::SimpleSeqBase<_orbitcpp::seq_traits::CORBA_octet_>::size_t' is private ../../orbitcpp/orb-cpp/orbitcpp_simple_seq.h:96: error: within this context
etc. etc. etc.

Thanks,
Austin



--
Bowie Owens

CSIRO Mathematical & Information Sciences
phone  : +61 3 9545 8055
fax    : +61 3 9545 8080
mobile : 0425 729 875
email  : Bowie Owens csiro au


Index: orbitcpp_simple_seq.h
===================================================================
RCS file: /cvs/gnome/orbitcpp/orbitcpp/orb-cpp/orbitcpp_simple_seq.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- orbitcpp_simple_seq.h	22 May 2003 05:15:48 -0000	1.7
+++ orbitcpp_simple_seq.h	2 Jul 2003 22:36:42 -0000	1.8
@@ -35,6 +35,7 @@
     class SimpleSeqBase: public SequenceBase <typename Traits::value_t,
 		typename Traits::c_value_t, typename Traits::c_seq_t>
     {
+    protected:
 	typedef Traits                       traits_t;
 	typedef typename Traits::value_t     value_t;
 	typedef typename traits_t::c_value_t c_value_t;


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