<div dir="ltr">Hi Trevor<div><br></div><div>Thanks for the pointer. I would rather use the wheel other already built.</div><div><br></div><div>I haven't used drbd pkg from elrepo for a while.</div><div>The drbd9 pkg looks built against centos 7.4 which is not officially released yet, only the CR for 7.4 is out.</div><div>I will give a try and look into elrepo's drbd9 spec file <br><div><br></div><div><div> yum info kmod-drbd90.x86_64</div><div>Loaded plugins: fastestmirror</div><div>Loading mirror speeds from cached hostfile</div><div> * base: <a href="http://mirror.cogentco.com">mirror.cogentco.com</a></div><div> * elrepo: <a href="http://reflector.westga.edu">reflector.westga.edu</a></div><div> * extras: <a href="http://mirror.cs.uwp.edu">mirror.cs.uwp.edu</a></div><div> * updates: <a href="http://centos.mirrors.tds.net">centos.mirrors.tds.net</a></div><div>Available Packages</div><div>Name : kmod-drbd90</div><div>Arch : x86_64</div><div>Version : 9.0.9</div><div>Release : 1.el7_4.elrepo</div><div>Size : 258 k</div><div>Repo : elrepo</div><div>Summary : drbd90 kernel module(s)</div><div>URL : <a href="http://www.drbd.org/">http://www.drbd.org/</a></div><div>License : GPLv2</div><div>Description : This package provides the drbd90 kernel module(s) built</div><div> : for the Linux kernel using the x86_64 family of processors.</div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 16, 2017 at 9:17 AM, Trevor Hemsley <span dir="ltr"><<a href="mailto:themsley@voiceflex.com" target="_blank">themsley@voiceflex.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div class="m_-2867851146564454271moz-cite-prefix">Why not just use kmod-drbd90 from
ELRepo?<div><div class="h5"><br>
<br>
On 16/09/17 13:35, T.J. Yang wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hi All
<div><br>
</div>
<div>Anyone know how I can resolve this issue ? </div>
<div>
<div>According to R1, we need to pass <span style="color:rgb(51,51,51);font-family:monospace;font-size:12px">"EXTRA_CFLAGS
+= -fno-pie"</span> option to gcc compiler.</div>
<div>Quick look at Makefile and drbd-kernel.spec, not sure
where can I pass on no-pie ?</div>
<div><br>
</div>
<div><span id="m_-2867851146564454271gmail-m_1202565691930271856gmail-docs-internal-guid-ab3df982-8a98-110d-a69a-2558d54c2a47">
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">[ME@miq01t drbd-9.0.9-1]$ KDIR=/usr/src/kernels/3.10.0-5<wbr>14.26.2.el7.x86_64 make kmp-rpm</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Makefile:641: Cannot use CONFIG_CC_STACKPROTECTOR_STRON<wbr>G: -fstack-protector-strong not supported by compiler</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">scripts/basic/fixdep.c:462:1: fatal error: opening dependency file scripts/basic/.fixdep.d: Permission denied</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"> }</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"> ^</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">compilation terminated.</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">make[2]: *** [scripts/basic/fixdep] Error 1</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">make[1]: *** [scripts_basic] Error 2</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">checking for presence of 9\.0\.9-1 in various changelog files</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">drbd-kernel.spec:9.0.9-1%{?dis<wbr>t}</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">ChangeLog:9.0.9-1 (api:genl2/proto:86-112/transp<wbr>ort:14)</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">test -s .filelist</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">rm -f drbd-9.0.9-1</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">ln -s . drbd-9.0.9-1</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">for f in $(<.filelist) ; do [ -e $f ] && continue ; echo missing: $f ; exit 1; done</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">grep debian .filelist >/dev/null 2>&1 && _DEB=-debian || _DEB="" ; \</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><snipped></span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">+ cd /home/ME<a href="http://tjyang@lenovo.com/rpmbuild/BUILD" target="_blank">/rpmbuild/BUILD</a></span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">+ cd drbd-9.0.9-1</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">+ rm -rf /home/ME<a href="http://tjyang@lenovo.com/rpmbuild/BUILDROOT/drbd-kernel-9.0.9-1.el7.centos.x86_64" target="_blank">/rpmbuild/BUILDROOT/<wbr>drbd-kernel-9.0.9-1.el7.<wbr>centos.x86_64</a></span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">+ exit 0</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">You have now:</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">/home/ME/rpmbuild/RPMS/x86_64/<wbr>kmod-drbd-9.0.9_3.10.0_514.26.<wbr>2-1.el7.centos.x86_64.rpm</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">/home/ME/rpmbuild/RPMS/x86_64/<wbr>drbd-kernel-debuginfo-9.0.9-1.<wbr>el7.centos.x86_64.rpm</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt"><span style="background-color:transparent;vertical-align:baseline;font-size:10.6667px;white-space:pre-wrap"><font color="#000000" face="Consolas">[ME@miq01t drbd-9.0.9-1]$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/<wbr>libexec/gcc/x86_64-redhat-<wbr>linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=<a href="http://bugzilla.redhat.com/bugzilla" target="_blank">http://bugzilla.<wbr>redhat.com/bugzilla</a> --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,<wbr>obj-c++,java,fortran,ada,go,<wbr>lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/<wbr>BUILD/gcc-4.8.5-20150702/obj-<wbr>x86_64-redhat-linux/isl-<wbr>install --with-cloog=/builddir/build/<wbr>BUILD/gcc-4.8.5-20150702/obj-<wbr>x86_64-redhat-linux/cloog-<wbr>install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC)
[ME@miq01t drbd-9.0.9-1]$</font></span><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">
</span></p>
<div><span style="font-size:8pt;font-family:Consolas;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">
</span></div>
<div><span><br>
</span></div>
Thanks for you help</span></div>
<div><span><br>
</span></div>
<div><span><br>
R1: <a href="https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1574982" target="_blank">https://bugs.launchpad.<wbr>net/ubuntu/+source/gcc-<wbr>defaults/+bug/1574982</a></span></div>
-- <br>
<div class="m_-2867851146564454271gmail-m_1202565691930271856gmail_signature">T.J.
Yang</div>
</div>
</div>
<br clear="all"></div></div>
______________________________<wbr>______________________________<wbr>__________<br>
This email has been scanned by the Symantec Email Security.cloud
service.<br>
For more information please visit <a class="m_-2867851146564454271moz-txt-link-freetext" href="http://www.symanteccloud.com" target="_blank">http://www.symanteccloud.com</a><br>
______________________________<wbr>______________________________<wbr>__________<br>
<br>
<fieldset class="m_-2867851146564454271mimeAttachmentHeader"></fieldset>
<br>
<pre>______________________________<wbr>_________________
drbd-user mailing list
<a class="m_-2867851146564454271moz-txt-link-abbreviated" href="mailto:drbd-user@lists.linbit.com" target="_blank">drbd-user@lists.linbit.com</a>
<a class="m_-2867851146564454271moz-txt-link-freetext" href="http://lists.linbit.com/mailman/listinfo/drbd-user" target="_blank">http://lists.linbit.com/<wbr>mailman/listinfo/drbd-user</a>
</pre>
</blockquote>
<p><br>
</p>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">T.J. Yang</div>
</div>