Whamcloud - gitweb
Branch b1_6
authoradilger <adilger>
Sat, 28 Jun 2008 05:15:14 +0000 (05:15 +0000)
committeradilger <adilger>
Sat, 28 Jun 2008 05:15:14 +0000 (05:15 +0000)
Ensure all module symbols from ldiskfs and OFED are available.
b=16112
i=brian
i=shadow

lnet/autoconf/lustre-lnet.m4

index 2166980..2fab63a 100644 (file)
@@ -580,8 +580,11 @@ else
                # we know at this point that the found OFED source is good
                if test \( $ENABLEO2IB = 3 \); then
                        if test \( -f $O2IBPATH/Module.symvers \); then
-                               AC_MSG_NOTICE([adding $O2IBPATH/Module.symvers to $PWD/Module.symvers])
-                               cat $O2IBPATH/Module.symvers >> $PWD/Module.symvers
+                               AC_MSG_NOTICE([adding $O2IBPATH/Module.symvers to $PWD/$SYMVERFILE])
+                               # strip out the existing symbols versions first
+                               touch $O2IBPATH/Module.symvers
+                               egrep -v $(echo $(awk '{ print $2 }' $O2IBPATH/Module.symvers) | tr ' ' '|') $PWD/$SYMVERFILE > $PWD/$SYMVERFILE.old
+                               cat $PWD/$SYMVERFILE.old $O2IBPATH/Module.symvers > $PWD/$SYMVERFILE
                        else
                                AC_MSG_ERROR([an external source tree was specified for o2iblnd however I could not find a $O2IBPATH/Module.symvers there])
                        fi