Skip to contentSkip to conversation

Xenosim 2.1 Compile Fixes

Xenomai-core Bernhard Walle 2 participants 2 messages Apr 7, 2006 – Apr 8, 2006

lore
Share & tools
lore
#0 lore raw

Hello,

following fixes were necessary to compile Xenosim 2.1 together with Xenomai 2.1 on SUSE 10.0 with gcc 4.0.2. I hope it can be applied to SVN. (If generated files are in SVN, autoreconf must be run.)

Thanks.

Regards,
Bernhard

acinclude.m4 +4 -4
diff -Nur xenosim-2.1.0.orig/acinclude.m4 xenosim-2.1.0/acinclude.m4
@@ -76,13 +76,13 @@
 ac_cv_using_gcc_for_mvm_c=no, ac_cv_using_gcc_for_mvm_c=yes)])dnl
 if test $ac_cv_using_gcc_for_mvm_c = yes; then
 AC_MSG_RESULT(yes)
-AC_MSG_CHECKING([if C compiler supports -fwritable-strings -fdollars-in-identifiers])
+AC_MSG_CHECKING([if C compiler supports -fdollars-in-identifiers])
 save_CFLAGS="$CFLAGS"
-CFLAGS="-fwritable-strings -fdollars-in-identifiers -Werror"
+CFLAGS="-fdollars-in-identifiers -Werror"
 AC_CACHE_VAL(ac_cv_cc_mvm_moreflags,
 [AC_TRY_COMPILE([],
 [int i = 0; return i; ],
-ac_cv_cc_mvm_moreflags="-fwritable-strings -fdollars-in-identifiers", ac_cv_cc_mvm_moreflags="")])dnl
+ac_cv_cc_mvm_moreflags="-fdollars-in-identifiers", ac_cv_cc_mvm_moreflags="")])dnl
 MVM_CFLAGS="$ac_cv_cc_mvm_moreflags"
 CFLAGS="$save_CFLAGS"
 else
@@ -126,7 +126,7 @@
 else
 AC_MSG_RESULT(yes)
 fi
-MVM_CXXFLAGS="-fwritable-strings -fdollars-in-identifiers $ac_cv_cxx_mvm_noex $ac_cv_cxx_mvm_nonnull"
+MVM_CXXFLAGS="-fdollars-in-identifiers $ac_cv_cxx_mvm_noex $ac_cv_cxx_mvm_nonnull"
 CXXFLAGS="$save_CXXFLAGS"
 else
 AC_MSG_RESULT(no)
vmutils/statobj.h +3 -0
diff -Nur xenosim-2.1.0.orig/vmutils/statobj.h xenosim-2.1.0/vmutils/statobj.h
@@ -55,6 +55,9 @@
 class MvmFilter;
 class MvmScaler;
 class MvmTimeGraph;
+struct MvmHistogramExportMsg;
+struct MvmTimeGraphExportMsg;
+struct MvmStateDiagramExportMsg;
 
 extern double variance(double,
 		       double,
#1 lore raw
Quoted 6 lines · Bernhard Walle

Hello,

following fixes were necessary to compile Xenosim 2.1 together with Xenomai 2.1 on SUSE 10.0 with gcc 4.0.2. I hope it can be applied to SVN. (If generated files are in SVN, autoreconf must be run.)

Fixed in both the maintenance branch and trunk/. Thanks.

Quoted 55 lines

Thanks.

Regards,
Bernhard

diff -Nur xenosim-2.1.0.orig/acinclude.m4 xenosim-2.1.0/acinclude.m4

acinclude.m4 +4 -4
@@ -76,13 +76,13 @@
 ac_cv_using_gcc_for_mvm_c=no, ac_cv_using_gcc_for_mvm_c=yes)])dnl
 if test $ac_cv_using_gcc_for_mvm_c = yes; then
 AC_MSG_RESULT(yes)
-AC_MSG_CHECKING([if C compiler supports -fwritable-strings -fdollars-in-identifiers])
+AC_MSG_CHECKING([if C compiler supports -fdollars-in-identifiers])
 save_CFLAGS="$CFLAGS"
-CFLAGS="-fwritable-strings -fdollars-in-identifiers -Werror"
+CFLAGS="-fdollars-in-identifiers -Werror"
 AC_CACHE_VAL(ac_cv_cc_mvm_moreflags,
 [AC_TRY_COMPILE([],
 [int i = 0; return i; ],
-ac_cv_cc_mvm_moreflags="-fwritable-strings -fdollars-in-identifiers", ac_cv_cc_mvm_moreflags="")])dnl
+ac_cv_cc_mvm_moreflags="-fdollars-in-identifiers", ac_cv_cc_mvm_moreflags="")])dnl
 MVM_CFLAGS="$ac_cv_cc_mvm_moreflags"
 CFLAGS="$save_CFLAGS"
 else
@@ -126,7 +126,7 @@
 else
 AC_MSG_RESULT(yes)
 fi
-MVM_CXXFLAGS="-fwritable-strings -fdollars-in-identifiers $ac_cv_cxx_mvm_noex $ac_cv_cxx_mvm_nonnull"
+MVM_CXXFLAGS="-fdollars-in-identifiers $ac_cv_cxx_mvm_noex $ac_cv_cxx_mvm_nonnull"
 CXXFLAGS="$save_CXXFLAGS"
 else
 AC_MSG_RESULT(no)

diff -Nur xenosim-2.1.0.orig/vmutils/statobj.h xenosim-2.1.0/vmutils/statobj.h

vmutils/statobj.h +3 -0
@@ -55,6 +55,9 @@
 class MvmFilter;
 class MvmScaler;
 class MvmTimeGraph;
+struct MvmHistogramExportMsg;
+struct MvmTimeGraphExportMsg;
+struct MvmStateDiagramExportMsg;
 
 extern double variance(double,
 		       double,

_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core

Signature · 1 line
Philippe.