I'm in the middle of trying to bring EMC up on a Gentoo box, and have a
couple of minor portability fixes.  These are places where there is an
obvious attempt to make EMC portable, but nonportabilities creeped in.

The first regards lsmod, which for me is in /bin, not /sbin:

--- scripts/realtime.in_orig    2010-11-03 10:48:14.000000000 -0400
+++ scripts/realtime.in 2010-11-03 10:46:37.000000000 -0400
@@ -49,6 +49,7 @@
     fi
     INSMOD="@INSMOD@"
     RMMOD="@RMMOD@"
+    LSMOD="@LSMOD@"
     FUSER="@FUSER@"
 
     # Import the config
@@ -104,7 +105,7 @@
         # check loaded/unloaded status of modules
         unset NOTLOADED
         for MOD in $MODULES_UNLOAD ; do
-            if /sbin/lsmod | awk '{print $1}' | grep -x $MOD >/dev/null ; then
+            if $LSMOD | awk '{print $1}' | grep -x $MOD >/dev/null ; then
                 echo "$MOD is loaded"
             else
                 echo "$MOD is not loaded"
@@ -188,7 +189,7 @@
     STATUS=
     for module in $MODULES_UNLOAD ; do
        # check to see if the module is installed
-       if /sbin/lsmod | awk '{print $1}' | grep -x $module >/dev/null ; then
+       if $LSMOD | awk '{print $1}' | grep -x $module >/dev/null ; then
            echo "ERROR: Could not unload '$module'"
            STATUS=error
        fi



The second is that the directory /usr/realtime, although generally
configurable, is hard-coded in module_helper.c:


--- src/configure.in_orig       2010-11-03 00:21:55.000000000 -0400
+++ src/configure.in    2010-11-03 12:00:51.000000000 -0400
@@ -280,6 +280,8 @@
 EMC2_HOME=`(cd .. ; pwd)`
 AC_SUBST([EMC2_HOME])
 
+AC_DEFINE_UNQUOTED([RTDIR], "$RTDIR", [Directory of the installed realtime 
system])
+
 ##############################################################################
 # Section 3                                                                  #
 # aditional checking                                                         #

--- src/module_helper/module_helper.c_orig      2010-11-03 00:21:56.000000000 
-0400
+++ src/module_helper/module_helper.c   2010-11-03 12:03:41.000000000 -0400
@@ -34,7 +34,7 @@
 /* module path must start with this. */
 
 char *path_whitelist[] = {
-    "/lib/modules", "/usr/realtime",
+    "/lib/modules", RTDIR,
 
     NULL
 };




Also, I ran into the error message "hostmot2: Unknown symbol __fixunsdfdi",
which has been previously reported:

        http://article.gmane.org/gmane.linux.distributions.emc.user/18709

Using nm, I find that the symbol is used not in the place that Jeff Epler
guessed in that message, but rather in drivers/mesa-hostmot2/watchdog.c
-- from the looks of that file, probably in the function
hm2_watchdog_force_write.  I don't think I'll need to fix it, since I
don't have that hardware, but figured it was worth mentioning.  (I'm
using gcc 4.4.5.)


-- 
Norman Yarvin                                           http://yarchive.net

------------------------------------------------------------------------------
Achieve Improved Network Security with IP and DNS Reputation.
Defend against bad network traffic, including botnets, malware, 
phishing sites, and compromised hosts - saving your company time, 
money, and embarrassment.   Learn More! 
http://p.sf.net/sfu/hpdev2dev-nov
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to