Personal tools
You are here: Home Forum Install & build SALOME does not build with OCC 6.3.0 ?

SALOME does not build with OCC 6.3.0 ?

Up to Install & build
  • SALOME does not build with OCC 6.3.0 ?

    Posted by Andrea Florio at October 08. 2008
    i get this error when i try to compile salome kernel:

     g++ "-DPACKAGE_NAME=\"Salome2 Project\"" -DPACKAGE_TARNAME=\"salome\" -DPACKAGE_VERSION=\"3.2.5\" "-DPACKAGE_STRING=\"Salome2 Project 3.2.5\"" -DPACKAGE_BUGREPORT=\"gboulant@CS\" -DPACKAGE=\"salome\" -DVERSION=\"3.2.5\" -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_LIBDL=1 -DHAVE_LIBRT=1 -DHAVE_LIBM=1 -DHAVE_NAMESPACES= -DHAVE_PTHREAD=1 -D__x86__=1 -D__linux__=1 -D__OSVERSION__=1 -DOMNIORB=1 -DCORBA_HAVE_POA=1 -DCORBA_ORB_INIT_HAVE_3_ARGS=1 -DCORBA_ORB_INIT_THIRD_ARG=\"omniORB\" -DRM=\"/bin/rm\" -DSH=\"/usr/bin/sh\" -DCP=\"/bin/cp\" -DRSH=\"/bin/false\" -DRCP=\"/bin/false\" -DSSH=\"/usr/bin/ssh\" -DSCP=\"/usr/bin/scp\" -I. -I. -DOCC_VERSION_MAJOR=6 -DOCC_VERSION_MINOR=3 -DOCC_VERSION_MAINTENANCE=0 -DLIN -DLINTEL -DCSFDB -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DHAVE_WOK_CONFIG_H -DOCC_CONVERT_SIGNALS -I/opt/OpenCASCADE//inc -funsigned-char -DHAVE_SOCKET -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -g -D_DEBUG_ -Wno-deprecated -Wparentheses -Wreturn-type -Wmissing-declarations -Wunused -pthread -MT libCASCatch_la-CASCatch_Failure.lo -MD -MP -MF .deps/libCASCatch_la-CASCatch_Failure.Tpo -c CASCatch_Failure.cxx  -fPIC -DPIC -o .libs/libCASCatch_la-CASCatch_Failure.o
    In file included from /opt/OpenCASCADE//inc/Standard_Macro.hxx:11,
                     from /opt/OpenCASCADE//inc/Standard_TypeDef.hxx:13,
                     from /opt/OpenCASCADE//inc/Standard_Address.hxx:17,
                     from /opt/OpenCASCADE//inc/Standard.hxx:26,
                     from /opt/OpenCASCADE//inc/Handle_Standard_Transient.hxx:4,
                     from /opt/OpenCASCADE//inc/Standard_Transient.hxx:5,
                     from CASCatch_Failure.hxx:23,
                     from CASCatch_Failure.cxx:20:
    /opt/OpenCASCADE//inc/config.h:278:1: warning: "PACKAGE" redefined
    : warning: this is the location of the previous definition
    /opt/OpenCASCADE//inc/config.h:281:1: warning: "PACKAGE_BUGREPORT" redefined
    : warning: this is the location of the previous definition
    /opt/OpenCASCADE//inc/config.h:284:1: warning: "PACKAGE_NAME" redefined
    : warning: this is the location of the previous definition
    /opt/OpenCASCADE//inc/config.h:287:1: warning: "PACKAGE_STRING" redefined
    : warning: this is the location of the previous definition
    /opt/OpenCASCADE//inc/config.h:290:1: warning: "PACKAGE_TARNAME" redefined
    : warning: this is the location of the previous definition
    /opt/OpenCASCADE//inc/config.h:293:1: warning: "PACKAGE_VERSION" redefined
    : warning: this is the location of the previous definition
    /opt/OpenCASCADE//inc/config.h:328:1: warning: "VERSION" redefined
    : warning: this is the location of the previous definition
    CASCatch_Failure.cxx: In constructor 'CASCatch_Failure::CASCatch_Failure(const char*)':
    CASCatch_Failure.cxx:52: error: invalid conversion from 'const char*' to 'char*'
    CASCatch_Failure.cxx:52: error:   initializing argument 1 of 'char* strcpy(char*, const char*)'
    CASCatch_Failure.cxx: In member function 'void CASCatch_Failure::Reraise(const char*)':
    CASCatch_Failure.cxx:93: error: invalid conversion from 'const char*' to 'char*'
    CASCatch_Failure.cxx:93: error:   initializing argument 1 of 'char* strcpy(char*, const char*)'
    make[2]: *** [libCASCatch_la-CASCatch_Failure.lo] Error 1
    make[2]: Leaving directory `/home/anubis/src/rpm/BUILD/KERNEL_SRC_3.2.6/src/CASCatch'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/anubis/src/rpm/BUILD/KERNEL_SRC_3.2.6/src'
    make: *** [all-recursive] Error 1


    how can i fix? is it due to openCASCADE 6.3.0?

    btw, salome need some gcc 4.3 patch... i was starting creating it but make now fail again and i don't know how i can fix it.

    diff -uNr old-KERNEL_SRC_3.2.6/src/SALOMELocalTrace/LocalTraceBufferPool.cxx KERNEL_SRC_3.2.6/src/SALOMELocalTrace/LocalTraceBufferPool.cxx
    --- old-KERNEL_SRC_3.2.6/src/SALOMELocalTrace/LocalTraceBufferPool.cxx    2007-04-24 17:34:19.000000000 +0200
    +++ KERNEL_SRC_3.2.6/src/SALOMELocalTrace/LocalTraceBufferPool.cxx    2008-10-08 13:51:54.000000000 +0200
    @@ -27,6 +27,7 @@
     #include
     #include
     #include
    +#include
     
     #ifndef WNT
     #include

    • Re: SALOME does not build with OCC 6.3.0 ?

      Posted by Andrea Florio at October 08. 2008
      problem fixed like with that patch:

      diff -uNr old-KERNEL_SRC_3.2.6/src/CASCatch/CASCatch_Failure.cxx KERNEL_SRC_3.2.6/src/CASCatch/CASCatch_Failure.cxx
      --- old-KERNEL_SRC_3.2.6/src/CASCatch/CASCatch_Failure.cxx    2007-04-24 17:34:16.000000000 +0200
      +++ KERNEL_SRC_3.2.6/src/CASCatch/CASCatch_Failure.cxx    2008-10-08 20:13:07.000000000 +0200
      @@ -49,7 +49,7 @@
       {
         if(AString) {
            myMessage = new Standard_Character[strlen(AString) + 1];
      -     strcpy(myMessage,AString);
      +     strcpy((char *) myMessage, AString);
         }
       }
       
      @@ -90,7 +90,7 @@
       {
         if(AString){
           myMessage = new Standard_Character[strlen(AString) + 1];
      -    strcpy(myMessage,AString);
      +    strcpy((char *) myMessage, AString);
         }
       
       #ifdef NO_CXX_EXCEPTION


      but kernel building still fail, and exactly here:



       g++ "-DPACKAGE_NAME=\"Salome2 Project\"" -DPACKAGE_TARNAME=\"salome\" -DPACKAGE_VERSION=\"3.2.5\" "-DPACKAGE_STRING=\"Salome2 Project 3.2.5\"" -DPACKAGE_BUGREPORT=\"gboulant@CS\" -DPACKAGE=\"salome\" -DVERSION=\"3.2.5\" -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_LIBDL=1 -DHAVE_LIBRT=1 -DHAVE_LIBM=1 -DHAVE_NAMESPACES= -DHAVE_PTHREAD=1 -D__x86__=1 -D__linux__=1 -D__OSVERSION__=1 -DOMNIORB=1 -DCORBA_HAVE_POA=1 -DCORBA_ORB_INIT_HAVE_3_ARGS=1 -DCORBA_ORB_INIT_THIRD_ARG=\"omniORB\" -DRM=\"/bin/rm\" -DSH=\"/usr/bin/sh\" -DCP=\"/bin/cp\" -DRSH=\"/bin/false\" -DRCP=\"/bin/false\" -DSSH=\"/usr/bin/ssh\" -DSCP=\"/usr/bin/scp\" -I. -I. -DOCC_VERSION_MAJOR=6 -DOCC_VERSION_MINOR=3 -DOCC_VERSION_MAINTENANCE=0 -DLIN -DLINTEL -DCSFDB -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DHAVE_WOK_CONFIG_H -DOCC_CONVERT_SIGNALS -I/opt/OpenCASCADE//inc -DPCLINUX -I./../SALOMELocalTrace -I./../Basics -DHAVE_SOCKET -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -g -D_DEBUG_ -Wno-deprecated -Wparentheses -Wreturn-type -Wmissing-declarations -Wunused -pthread -MT libSalomeHDFPersist_la-HDFascii.lo -MD -MP -MF .deps/libSalomeHDFPersist_la-HDFascii.Tpo -c HDFascii.cc  -fPIC -DPIC -o .libs/libSalomeHDFPersist_la-HDFascii.o
      In file included from /opt/OpenCASCADE//inc/Standard_Macro.hxx:11,
                       from HDFobject.hxx:34,
                       from HDFinternalObject.hxx:34,
                       from HDFattribute.hxx:34,
                       from HDFOI.hxx:32,
                       from HDFascii.cc:27:
      /opt/OpenCASCADE//inc/config.h:278:1: warning: "PACKAGE" redefined
      : warning: this is the location of the previous definition
      /opt/OpenCASCADE//inc/config.h:281:1: warning: "PACKAGE_BUGREPORT" redefined
      : warning: this is the location of the previous definition
      /opt/OpenCASCADE//inc/config.h:284:1: warning: "PACKAGE_NAME" redefined
      : warning: this is the location of the previous definition
      /opt/OpenCASCADE//inc/config.h:287:1: warning: "PACKAGE_STRING" redefined
      : warning: this is the location of the previous definition
      /opt/OpenCASCADE//inc/config.h:290:1: warning: "PACKAGE_TARNAME" redefined
      : warning: this is the location of the previous definition
      /opt/OpenCASCADE//inc/config.h:293:1: warning: "PACKAGE_VERSION" redefined
      : warning: this is the location of the previous definition
      /opt/OpenCASCADE//inc/config.h:328:1: warning: "VERSION" redefined
      : warning: this is the location of the previous definition
      HDFascii.cc: In static member function 'static bool HDFascii::isASCII(const char*)':
      HDFascii.cc:86: warning: ignoring return value of 'ssize_t read(int, void*, size_t)', declared with attribute warn_unused_result
      HDFascii.cc: In function 'void SaveDatasetInASCIIfile(HDFdataset*, FILE*, int)':
      HDFascii.cc:275: warning: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result
      HDFascii.cc: In function 'void SaveAttributeInASCIIfile(HDFattribute*, FILE*, int)':
      HDFascii.cc:365: warning: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result
      HDFascii.cc: In static member function 'static char* HDFascii::ConvertFromASCIIToHDF(const char*)':
      HDFascii.cc:407: error: invalid conversion from 'const char*' to 'char*'
      HDFascii.cc:407: error:   initializing argument 1 of 'HDFfile::HDFfile(char*)'
      HDFascii.cc:415: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result
      HDFascii.cc:416: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result
      HDFascii.cc:422: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result
      HDFascii.cc:447: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result
      HDFascii.cc: In function 'bool CreateGroupFromASCII(HDFcontainerObject*, FILE*)':
      HDFascii.cc:472: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result
      HDFascii.cc:484: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result
      HDFascii.cc:512: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result
      HDFascii.cc: In function 'bool CreateDatasetFromASCII(HDFcontainerObject*, FILE*)':
      HDFascii.cc:534: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result
      HDFascii.cc:537: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result
      HDFascii.cc:542: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result
      HDFascii.cc:550: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result
      HDFascii.cc:564: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result
      HDFascii.cc:577: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result
      HDFascii.cc:584: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result
      HDFascii.cc:593: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result
      HDFascii.cc:607: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result
      HDFascii.cc: In function 'bool CreateAttributeFromASCII(HDFinternalObject*, FILE*)':
      HDFascii.cc:630: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result
      HDFascii.cc:640: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result
      HDFascii.cc:643: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result
      HDFascii.cc:652: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result
      HDFascii.cc:656: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result
      HDFascii.cc:665: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result
      HDFascii.cc: In function 'void read_float64(FILE*, hdf_float64*)':
      HDFascii.cc:777: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result
      make[2]: *** [libSalomeHDFPersist_la-HDFascii.lo] Error 1
      make[2]: Leaving directory `/home/anubis/src/rpm/BUILD/KERNEL_SRC_3.2.6/src/HDFPersist'
      make[1]: *** [all-recursive] Error 1
      make[1]: Leaving directory `/home/anubis/src/rpm/BUILD/KERNEL_SRC_3.2.6/src'
      make: *** [all-recursive] Error 1



      ideas?

      • Re: SALOME does not build with OCC 6.3.0 ?

        Posted by Andrea Florio at October 17. 2008
        is somebody able to help me?

        thanks
        • Re: SALOME does not build with OCC 6.3.0 ?

          Posted by Erwan ADAM at October 20. 2008
          Andrea Florio wrote:
          is somebody able to help me?

          thanks




          The next salome version (which will be available about december 15th) will
          be build with OCC 6.3.0. Regards, E.A.
          • Re: SALOME does not build with OCC 6.3.0 ?

            Posted by Andrea Florio at October 20. 2008
            ADAM Erwan wrote:
            Andrea Florio wrote:
            is somebody able to help me?

            thanks




            The next salome version (which will be available about december 15th) will
            be build with OCC 6.3.0. Regards, E.A.


            thanks for info, can i get svn code? i'm not able to find alme svn repository.. thank
            • Re: SALOME does not build with OCC 6.3.0 ?

              Posted by Erwan ADAM at October 20. 2008
              Andrea Florio wrote:
              ADAM Erwan wrote:
              Andrea Florio wrote:
              is somebody able to help me?

              thanks




              The next salome version (which will be available about december 15th) will
              be build with OCC 6.3.0. Regards, E.A.


              thanks for info, can i get svn code? i'm not able to find alme svn repository.. thank


              For the moment, no svn neither cvs code is available. We will see
              that after the next release. E.A.
              • Re: SALOME does not build with OCC 6.3.0 ?

                Posted by Andrea Florio at October 20. 2008
                perfect. thanks a lot
                • Re: SALOME does not build with OCC 6.3.0 ?

                  Posted by Fotis Sioutis at October 20. 2008
                  Is it possible to know which (internal) version will be the next release ? Is it 3.2.9 or something from the 4.x.x branch ?

                  With Owner
                  Sioutis Fotis
Powered by Ploneboard
Document Actions