<div dir="ltr">Thanks Tao. I ended up fixing the &quot;<span style="font-family:arial,sans-serif;font-size:13px">CONFIG_LNET_MAX_PAYLOAD redefined&quot; error by locally modifying Lustre configuration scripts because in an cloud environment I&#39;m working with rebuilding the kernel is not an option. </span><div>
<span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Also, in case anyone is interested in building the Lustre client on Debian Wheezy with kernel </span><font face="arial, sans-serif">3.14-0.bpo.1-amd64, in addition to the above fix and the patch I mentioned in my first message I also had to apply this: <a href="http://review.whamcloud.com/#/c/10325">http://review.whamcloud.com/#/c/10325</a> to fix the following error: &quot;lustre/llite/file.c:3545:24: error: invalid operands to binary == (have \u2018kuid_t\u2019 and \u2018int\u2019) </font><span style="font-family:arial,sans-serif">current_fsuid() == 0 &amp;&amp; ..&quot; More info can be found here: </span><font face="arial, sans-serif"><a href="https://jira.hpdd.intel.com/browse/LU-5058">https://jira.hpdd.intel.com/browse/LU-5058</a></font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Now moving on to functional testing the client...</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Cheers,</font></div>
<div><font face="arial, sans-serif">Bartek</font></div><div><font face="arial, sans-serif">  </font></div><div class="gmail_extra"><br><div class="gmail_quote">2014-05-31 18:56 GMT+02:00 Peng Tao <span dir="ltr">&lt;<a href="mailto:bergwolf@gmail.com" target="_blank">bergwolf@gmail.com</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thu, May 29, 2014 at 6:15 PM, Bartek &lt;<a href="mailto:bgrinning@gmail.com">bgrinning@gmail.com</a>&gt; wrote:<br>

&gt; Hello,<br>
&gt;<br>
&gt; I&#39;m trying to build Lustre client on Debian Wheezy with kernel<br>
&gt; 3.14-0.bpo.1-amd64. Here are my build steps are:<br>
&gt; sh ./autogen.sh<br>
&gt; sudo ./configure --disable-server<br>
&gt; sudo dpkg-buildpackage<br>
&gt; sudo dpkg -i lustre-source_2.5.59.0-32-gb265903_all.deb<br>
&gt; sudo m-a -t build lustre<br>
&gt; I also patched debian/rules to: ./configure --disable-server<br>
&gt; --disable-ldfiskfs<br>
&gt;<br>
&gt; I&#39;m aware of changes needed for latest kernels (3.12-14):<br>
&gt; <a href="https://jira.hpdd.intel.com/browse/LU-4416" target="_blank">https://jira.hpdd.intel.com/browse/LU-4416</a><br>
&gt; <a href="https://jira.hpdd.intel.com/browse/LU-4993" target="_blank">https://jira.hpdd.intel.com/browse/LU-4993</a><br>
&gt;<br>
&gt; So far, I applied the shrinker patch locally:<br>
&gt; <a href="http://review.whamcloud.com/#/c/9300" target="_blank">http://review.whamcloud.com/#/c/9300</a> and that allowed me to get past the<br>
&gt; shrinker compilation error. But now I&#39;m running into another error (error:<br>
&gt; &quot;CONFIG_LNET_MAX_PAYLOAD&quot; redefined) for which I didn&#39;t find any mentions in<br>
&gt; Jira:<br>
&gt;<br>
&gt; ...<br>
&gt; echo &quot;#define LUSTRE_RELEASE 3.14_0.bpo.1_amd64_gb265903&quot; &gt;&gt; tmpver<br>
&gt; cmp -s ../lustre/include/lustre/lustre_build_version.h tmpver &gt; tmpdiff 2&gt;<br>
&gt; /dev/null &amp;&amp;   \<br>
&gt;                 rm -f tmpver tmpdiff ||         \<br>
&gt;     mv -f tmpver ../lustre/include/lustre/lustre_build_version.h<br>
&gt; make[5]: Leaving directory `/usr/src/modules/lustre/lustre&#39;<br>
&gt; /usr/bin/make CC=&quot;gcc&quot;  -C /lib/modules/3.14-0.bpo.1-amd64/build       \<br>
&gt;   -f /usr/src/modules/lustre/build/Makefile<br>
&gt; LUSTRE_LINUX_CONFIG=/lib/modules/3.14-0.bpo.1-amd64/build/.config \<br>
&gt;   LINUXINCLUDE=&#39;-I$(srctree)/arch/$(SRCARCH)/include<br>
&gt; -I$(srctree)/arch/$(SRCARCH)/include/generated -Iinclude $(if<br>
&gt; $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include)<br>
&gt; -I$(srctree)/arch/$(SRCARCH)/include/uapi<br>
&gt; -Iarch/$(SRCARCH)/include/generated/uapi -I$(srctree)/include/uapi<br>
&gt; -Iinclude/generated/uapi -include<br>
&gt; /lib/modules/3.14-0.bpo.1-amd64/source/include/linux/kconfig.h&#39; \<br>
&gt;   M=/usr/src/modules/lustre -o tmp_include_depends -o scripts -o \<br>
&gt;   include/config/MARKER modules<br>
&gt; make[5]: Entering directory `/usr/src/linux-headers-3.14-0.bpo.1-amd64&#39;<br>
&gt;   CC [M]  /usr/src/modules/lustre/libcfs/libcfs/linux/linux-tracefile.o<br>
&gt; In file included from &lt;command-line&gt;:0:0:<br>
&gt; /usr/src/modules/lustre/config.h:26:0: error: &quot;CONFIG_LNET_MAX_PAYLOAD&quot;<br>
&gt; redefined [-Werror]<br>
&gt; In file included from<br>
&gt; /lib/modules/3.14-0.bpo.1-amd64/source/include/linux/kconfig.h:4:0,<br>
</div></div>It seems that you have enabled CONFIG_LUSTRE_FS in your local kernel<br>
config which would then define CONFIG_LNET_MAX_PAYLOAD on its own. The<br>
easy workaround is to disable in-kernel client in your kernel and<br>
rebuild.<br>
I am not sure if it makes sense to support such use case as there<br>
would be two sets of client modules for the same kernel.<br>
<br>
Cheers,<br>
Tao<br>
</blockquote></div><br></div></div>