<div dir="ltr">Yes indeed, the build really failed on my box.<div><br><div>Toolchain versions :</div><div><div>* gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.2) </div></div><div><div>* GNU ld (GNU Binutils for Ubuntu) 2.26.1</div></div><div><br></div></div><div>make log :</div><div><br></div><div><div>cc -O2 -g -pipe -Wall -Wextra -Wformat=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-sign-compare -Wno-unused-parameter -Wno-clobbered -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -I../libmultipath -I../libmpathcmd  -lpthread -ldevmapper -ldl -L../libmultipath -lmultipath -ludev -L../libmpathcmd -lmpathcmd main.o -o multipath</div><div>main.o: In function `get_dm_mpvec':</div><div>/home/cvaroqui/multipath-tools/multipath/main.c:209: undefined reference to `dm_get_maps'</div><div>/home/cvaroqui/multipath-tools/multipath/main.c:228: undefined reference to `dm_get_map'</div><div>/home/cvaroqui/multipath-tools/multipath/main.c:229: undefined reference to `dlog'</div><div>/home/cvaroqui/multipath-tools/multipath/main.c:230: undefined reference to `dm_get_status'</div><div>/home/cvaroqui/multipath-tools/multipath/main.c:231: undefined reference to `dlog'</div><div>/home/cvaroqui/multipath-tools/multipath/main.c:233: undefined reference to `disassemble_map'</div><div>...</div><div><snip: many more reference errors></div><div>...</div><div>collect2: error: ld returned 1 exit status<br></div><div>Makefile:18: recipe for target 'multipath' failed</div><div>make[1]: *** [multipath] Error 1</div><div>make[1]: Leaving directory '/home/cvaroqui/multipath-tools/multipath'</div><div>Makefile:46: recipe for target 'recurse' failed</div><div>make: *** [recurse] Error 2</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 23, 2017 at 3:02 PM, Xose Vazquez Perez <span dir="ltr"><<a href="mailto:xose.vazquez@gmail.com" target="_blank">xose.vazquez@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 03/23/2017 10:09 AM, Christophe Varoqui wrote:<br>
<br>
> And reverted:<br>
> hh<br>
<span class="">> From <a href="http://eli.thegreenplace.net/2013/07/09/library-order-in-static-linking" rel="noreferrer" target="_blank">http://eli.thegreenplace.net/<wbr>2013/07/09/library-order-in-<wbr>static-linking</a>:<br>
><br>
>     If object or library AA needs a symbol from library BB, then AA should<br>
</span>>     come /before/ library BB in the command-line invocation of the linker.<br>
<br>
Did you get a toolchain error?<br>
</blockquote></div><br></div>