On Thursday 02 July 2009, Jan Kiszka wrote:
> Patrick Rittiner wrote:
> > hi everyone,
> >
> > I ve installed a RTAI on a 2.6.25 kernel and every thing is working
> > good. but as soon as I make the "make" in the rtnet folder to start
> > the installation I get the following warning also:
> >
> > WARNING: Symbol version dump /usr/src/linux-2.6.25/Module.symvers
> >                     is missing: modules will have no dependencies and 
> > modversions.
> >
> > what does it meaning??? can anyone help? thanks...
>
> That should be an old RTAI build system bug.

Attached, a couple of trivial patches - The first builds on recent changes in 
the RTAI build system to work round the symbol warnings. I don't think the 
original hack of moving Module.symver out of the way really worked anyway.

The second patch cleans up a couple of new temp files that recent versions of 
kbuild generate - Would it not be easier to generate a list of file names for 
DISTCLEANFILES at configure time rather than having to make additions across 
multiple GNUmakefiles ?


Regards, Paul.


From 3ba4815ed25222b882ac41cc964d229934ff716c Mon Sep 17 00:00:00 2001
From: Paul Corner <pau...@tuxcnc.org>
Date: Fri, 3 Jul 2009 10:21:48 +0100
Subject: [PATCH] Rework hack to suppress undefined symbol warnings with RTAI-3.x

---
 configure.ac |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 03a00bb..2c2d35c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -570,6 +570,7 @@ else
                 fi;                                                         \
                 "
     fi
+
     RTNET_KBUILD_CMD="$RTNET_KBUILD_CMD                                     \
         for src in \$(filter-out FORCE, \$^); do                            \
             if test \\! -r \`basename \$\$src\`; then                       \
@@ -616,13 +617,11 @@ else
     dnl === Hack to suppress undefined symbol warnings during MODPOST stage ===
     case "${CONFIG_RTNET_RTEXT_VERSION}" in
         rtai-3x)
-            if test -e $RTEXT_LINUX_DIR/Module.symvers; then
-                mv $RTEXT_LINUX_DIR/Module.symvers $RTEXT_LINUX_DIR/Module.symvers.let_modpost_be_quiet
-            fi
-            if test -e $RTEXT_LINUX_DIR/vmlinux; then
-                mv $RTEXT_LINUX_DIR/vmlinux $RTEXT_LINUX_DIR/vmlinux.let_modpost_be_quiet
+            RTAI_MOD_SYMVER="`${RTAI_CONFIG} --module-dir`/Module.symvers"
+            if test -e ${RTAI_MOD_SYMVER} ; then
+                cp ${RTAI_MOD_SYMVER} ./
             fi
-            ;;
+        ;;
     esac
 fi
 
-- 
1.5.6.5

From 72e8c43706fa10ab30296d0dc38243f89f16a09c Mon Sep 17 00:00:00 2001
From: Paul Corner <pau...@tuxcnc.org>
Date: Fri, 3 Jul 2009 10:28:08 +0100
Subject: [PATCH] Remove modules.order with a make clean.

---
 GNUmakefile.am |    2 +-
 configure.ac   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/GNUmakefile.am b/GNUmakefile.am
index 17af853..1f6d0e6 100644
--- a/GNUmakefile.am
+++ b/GNUmakefile.am
@@ -20,6 +20,6 @@ install-data-local:
 	rm -f $(DESTDIR)$(prefix)/symbols
 	$(LN_S) @abs_top_builddir@/symbols $(DESTDIR)$(prefix)/symbols
 
-DISTCLEANFILES = Modules.symvers Module.symvers
+DISTCLEANFILES = Modules.symvers Module.symvers modules.order
 
 .PHONY: reconfig xconfig gconfig mconfig menuconfig config oldconfig help
diff --git a/configure.ac b/configure.ac
index 2c2d35c..3de0ad1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -597,7 +597,7 @@ else
                 "
     fi
     RTNET_KBUILD_CLEAN="                                                    \
-        @rm -rf *.ko *.mod.c .*.cmd *.o .tmp_versions;                      \
+        @rm -rf *.ko *.mod.c .*.cmd *.o .tmp_versions modules.order;        \
         for src in \$^; do                                                  \
             if test -h \`basename \$\$src\`; then                           \
                 rm -f \`basename \$\$src\`;                                 \
-- 
1.5.6.5

------------------------------------------------------------------------------
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to