Compilation error in salome3.2.2_SRC/KERNEL_SRC_3.2.2/src/Notification/NOTIFICATION_Consumer.cxx
-
Compilation error in salome3.2.2_SRC/KERNEL_SRC_3.2.2/src/Notification/NOTIFICATION_Consumer.cxx
Posted by
Thierry Thomas
at
March 20. 2007
Hello,
I'm trying to compile Salomé on FreeBSD, but it fails at salome3.2.2_SRC/KERNEL_SRC_3.2.2/src/Notification/NOTIFICATION_Consumer.cxx with the following message:
if /usr/local/bin/bash ../../libtool --mode=compile --tag=CXX c++ -DPACKAGE_NAME=\"Salome2\ Project\" -DPACKAGE_TARNAME=\"salome\" -DPACKAGE_VERSION=\"3.2.2\" -DPACKAGE_STRING=\"Salome2\ Project\ 3.2.2\" -DPACKAGE_BUGREPORT=\"gboulant@CS\" -DPACKAGE=\"salome\" -DVERSION=\"3.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBM=1 -DHAVE_NAMESPACES= -DHAVE_PTHREAD=1 -D__x86__=1 -DOMNIORB=1 -DCORBA_HAVE_POA=1 -DCORBA_ORB_INIT_HAVE_3_ARGS=1 -DCORBA_ORB_INIT_THIRD_ARG=\"omniORB\" -DRM=\"/bin/rm\" -DSH=\"/bin/sh\" -DCP=\"/bin/cp\" -DRSH=\"/usr/bin/rsh\" -DRCP=\"/bin/rcp\" -DSSH=\"/usr/bin/ssh\" -DSCP=\"/usr/bin/scp\" -I. -I. -I./../Basics -I./../SALOMELocalTrace -I./../Utils -DOMNIORB_VERSION=4 -D__x86__ -DCOMP_CORBA_DOUBLE -DCOMP_CORBA_LONG -I/usr/local/include/omniORB4 -I/usr/local/include -I/usr/local/include/COS -DHAVE_SOCKET -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -D_GETOPT_H -O2 -fno-strict-aliasing -pipe -march=pentiumpro -g -D_DEBUG_ -Wno-deprecated -Wparentheses -Wreturn-type -fmessage-length=0 -Wunused -pipe -Wno-deprecated -Wparentheses -Wreturn-type -Wunused -D_THREAD_SAFE -pthread -MT libSalomeNotification_la-NOTIFICATION_Consumer.lo -MD -MP -MF ".deps/libSalomeNotification_la-NOTIFICATION_Consumer.Tpo" -c -o libSalomeNotification_la-NOTIFICATION_Consumer.lo `test -f 'NOTIFICATION_Consumer.cxx' || echo './'`NOTIFICATION_Consumer.cxx; \
then mv -f ".deps/libSalomeNotification_la-NOTIFICATION_Consumer.Tpo" ".deps/libSalomeNotification_la-NOTIFICATION_Consumer.Plo"; else rm -f ".deps/libSalomeNotification_la-NOTIFICATION_Consumer.Tpo"; exit 1; fi
c++ "-DPACKAGE_NAME=\"Salome2 Project\"" -DPACKAGE_TARNAME=\"salome\" -DPACKAGE_VERSION=\"3.2.2\" "-DPACKAGE_STRING=\"Salome2 Project 3.2.2\"" -DPACKAGE_BUGREPORT=\"gboulant@CS\" -DPACKAGE=\"salome\" -DVERSION=\"3.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBM=1 -DHAVE_NAMESPACES= -DHAVE_PTHREAD=1 -D__x86__=1 -DOMNIORB=1 -DCORBA_HAVE_POA=1 -DCORBA_ORB_INIT_HAVE_3_ARGS=1 -DCORBA_ORB_INIT_THIRD_ARG=\"omniORB\" -DRM=\"/bin/rm\" -DSH=\"/bin/sh\" -DCP=\"/bin/cp\" -DRSH=\"/usr/bin/rsh\" -DRCP=\"/bin/rcp\" -DSSH=\"/usr/bin/ssh\" -DSCP=\"/usr/bin/scp\" -I. -I. -I./../Basics -I./../SALOMELocalTrace -I./../Utils -DOMNIORB_VERSION=4 -D__x86__ -DCOMP_CORBA_DOUBLE -DCOMP_CORBA_LONG -I/usr/local/include/omniORB4 -I/usr/local/include -I/usr/local/include/COS -DHAVE_SOCKET -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -D_GETOPT_H -O2 -fno-strict-aliasing -pipe -march=pentiumpro -g -D_DEBUG_ -Wno-deprecated -Wparentheses -Wreturn-type -fmessage-length=0 -Wunused -pipe -Wno-deprecated -Wparentheses -Wreturn-type -Wunused -D_THREAD_SAFE -pthread -MT libSalomeNotification_la-NOTIFICATION_Consumer.lo -MD -MP -MF .deps/libSalomeNotification_la-NOTIFICATION_Consumer.Tpo -c NOTIFICATION_Consumer.cxx -fPIC -DPIC -o .libs/libSalomeNotification_la-NOTIFICATION_Consumer.o
In file included from /usr/local/include/omniconfig.h:37,
from /usr/local/include/omniORB4/CORBA_sysdep.h:97,
from /usr/local/include/omniORB4/omniInternal.h:231,
from /usr/local/include/omniORB4/CORBA.h:342,
from /usr/local/include/COS/TimeBase.hh:6,
from CosNotifyShorthands.h:31,
from NOTIFICATION.hxx:41,
from NOTIFICATION_Consumer.cxx:28:
/usr/local/include/omniORB4/acconfig.h:236:1: warning: "PACKAGE_BUGREPORT" redefined
:8:1: warning: this is the location of the previous definition
/usr/local/include/omniORB4/acconfig.h:239:1: warning: "PACKAGE_NAME" redefined
:4:1: warning: this is the location of the previous definition
/usr/local/include/omniORB4/acconfig.h:242:1: warning: "PACKAGE_STRING" redefined
:7:1: warning: this is the location of the previous definition
/usr/local/include/omniORB4/acconfig.h:245:1: warning: "PACKAGE_TARNAME" redefined
:5:1: warning: this is the location of the previous definition
/usr/local/include/omniORB4/acconfig.h:248:1: warning: "PACKAGE_VERSION" redefined
:6:1: warning: this is the location of the previous definition
NOTIFICATION_Consumer.cxx: In member function `bool NOTIFICATION_Consumer::Receive(char**, char**, char**, char**, char**, long int*, char**, long int*)':
NOTIFICATION_Consumer.cxx:104: error: no match for 'operator>>=' in '((_CORBA_Sequence
roperty>*)(((CosNotification::FilterableEventBody*)event) + 28u))->_CORBA_Sequence:
perator[] [with T = CosNotification:
roperty](0ul)->CosNotification:
roperty::value >>= Asender'
followed by several messages like:
/usr/local/include/omniORB4/CORBA_Any.h:82: note: candidates are: void CORBA::Any:
perator>>=(cdrStream&
const
/usr/local/include/omniORB4/CORBA_Any.h:166: note: CORBA::Boolean CORBA::Any:
perator>>=(CORBA::Short&
const
/usr/local/include/omniORB4/CORBA_Any.h:167: note: CORBA::Boolean CORBA::Any:
perator>>=(CORBA::UShort&
const
/usr/local/include/omniORB4/CORBA_Any.h:168: note: CORBA::Boolean CORBA::Any:
perator>>=(CORBA::Long&
const
...
Any idea?
--
Th.Thomas.-
Re: Compilation error in salome3.2.2_SRC/KERNEL_SRC_3.2.2/src/Notification/NOTIFICATION_Consumer.cxx
Posted by
Thierry Thomas
at
May 24. 2007
Thierry Thomas wrote:
Hello,
c++ "-DPACKAGE_NAME=\"Salome2 Project\"" -DPACKAGE_TARNAME=\"salome\" -DPACKAGE_VERSION=\"3.2.2\" "-DPACKAGE_STRING=\"Salome2 Project 3.2.2\"" -DPACKAGE_BUGREPORT=\"gboulant@CS\" -DPACKAGE=\"salome\" -DVERSION=\"3.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBM=1 -DHAVE_NAMESPACES= -DHAVE_PTHREAD=1 -D__x86__=1 -DOMNIORB=1 -DCORBA_HAVE_POA=1 -DCORBA_ORB_INIT_HAVE_3_ARGS=1 -DCORBA_ORB_INIT_THIRD_ARG=\"omniORB\" -DRM=\"/bin/rm\" -DSH=\"/bin/sh\" -DCP=\"/bin/cp\" -DRSH=\"/usr/bin/rsh\" -DRCP=\"/bin/rcp\" -DSSH=\"/usr/bin/ssh\" -DSCP=\"/usr/bin/scp\" -I. -I. -I./../Basics -I./../SALOMELocalTrace -I./../Utils -DOMNIORB_VERSION=4 -D__x86__ -DCOMP_CORBA_DOUBLE -DCOMP_CORBA_LONG -I/usr/local/include/omniORB4 -I/usr/local/include -I/usr/local/include/COS -DHAVE_SOCKET -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -D_GETOPT_H -O2 -fno-strict-aliasing -pipe -march=pentiumpro -g -D_DEBUG_ -Wno-deprecated -Wparentheses -Wreturn-type -fmessage-length=0 -Wunused -pipe -Wno-deprecated -Wparentheses -Wreturn-type -Wunused -D_THREAD_SAFE -pthread -MT libSalomeNotification_la-NOTIFICATION_Consumer.lo -MD -MP -MF .deps/libSalomeNotification_la-NOTIFICATION_Consumer.Tpo -c NOTIFICATION_Consumer.cxx -fPIC -DPIC -o .libs/libSalomeNotification_la-NOTIFICATION_Consumer.o
In file included from /usr/local/include/omniconfig.h:37,
from /usr/local/include/omniORB4/CORBA_sysdep.h:97,
from /usr/local/include/omniORB4/omniInternal.h:231,
from /usr/local/include/omniORB4/CORBA.h:342,
from /usr/local/include/COS/TimeBase.hh:6,
from CosNotifyShorthands.h:31,
from NOTIFICATION.hxx:41,
from NOTIFICATION_Consumer.cxx:28:
/usr/local/include/omniORB4/acconfig.h:236:1: warning: "PACKAGE_BUGREPORT" redefined
:8:1: warning: this is the location of the previous definition
/usr/local/include/omniORB4/acconfig.h:239:1: warning: "PACKAGE_NAME" redefined
:4:1: warning: this is the location of the previous definition
/usr/local/include/omniORB4/acconfig.h:242:1: warning: "PACKAGE_STRING" redefined
:7:1: warning: this is the location of the previous definition
/usr/local/include/omniORB4/acconfig.h:245:1: warning: "PACKAGE_TARNAME" redefined
:5:1: warning: this is the location of the previous definition
/usr/local/include/omniORB4/acconfig.h:248:1: warning: "PACKAGE_VERSION" redefined
:6:1: warning: this is the location of the previous definition
NOTIFICATION_Consumer.cxx: In member function `bool NOTIFICATION_Consumer::Receive(char**, char**, char**, char**, char**, long int*, char**, long int*)':
NOTIFICATION_Consumer.cxx:104: error: no match for 'operator>>=' in '((_CORBA_Sequence
roperty>*)(((CosNotification::FilterableEventBody*)event) + 28u))->_CORBA_Sequence:
perator[] [with T = CosNotification:
roperty](0ul)->CosNotification:
roperty::value >>= Asender'
Same problem with v. 3.2.6. Actually, this can be easily fixed by
something like the hereunder patch, but what I don't understand is why I
have to patch this code, which seems OK on other platforms:
I'm compiling with gcc version 3.4.6, and I'm running omniORB-4.1.0,
which seem supported.
What am I missing?
--- src/Notification/NOTIFICATION_Consumer.cxx.orig Tue Apr 24 17:34:17 2007
+++ src/Notification/NOTIFICATION_Consumer.cxx Fri May 18 14:06:12 2007
@@ -93,14 +93,14 @@
};
if (status) {
- char* Asender;
- char* Agraph;
- char* Atype;
+ const char* Asender;
+ const char* Agraph;
+ const char* Atype;
CORBA::ULong Acounter;
CORBA::ULong Astamp;
- char* Adate;
- char* Anode;
- char* Amessage;
+ const char* Adate;
+ const char* Anode;
+ const char* Amessage;
event->filterable_data[0].value >>= Asender;
event->filterable_data[1].value >>= Agraph;
event->filterable_data[2].value >>= Atype;
Of course, once this has been fixed, I'm getting the same kind of errors
farther...
Regards,
--
Th. Thomas.
-
Powered by
Ploneboard
