Stephen,

this is very likely related to the issue already reported in github.

meanwhile, you can apply the attached patch

patch configure < configure.diff

and then re-configure and make.

note this is a temporary workaround, it simply prevent the build of the reachable/netlink component,
and the upcoming real fix will be able to build this component.

Cheers,

Gilles

On 9/21/2017 9:22 AM, Gilles Gouaillardet wrote:
Thanks for the report,


is this related to https://github.com/open-mpi/ompi/issues/4211 ?

there is a known issue when libnl-3 is installed but libnl-route-3 is not


Cheers,


Gilles


On 9/21/2017 8:53 AM, Stephen Guzik wrote:
When compiling (on Debian stretch), I see:

In file included from libnl_utils.h:52:0,
                  from reachable_netlink_utils_common.c:48:
libnl1_utils.h:54:26: error: too few arguments to function ‘nl_geterror’
  #define NL_GETERROR(err) nl_geterror()
                           ^
libnl1_utils.h:80:5: note: in expansion of macro ‘NL_GETERROR’
      NL_GETERROR(err)); \
      ^~~~~~~~~~~
reachable_netlink_utils_common.c:310:5: note: in expansion of macro
‘NL_RECVMSGS’
      NL_RECVMSGS(unlsk->nlh, arg, EHOSTUNREACH, err, out);
      ^~~~~~~~~~~
In file included from /usr/include/libnl3/netlink/netlink.h:31:0,
                  from libnl1_utils.h:47,
                  from libnl_utils.h:52,
                  from reachable_netlink_utils_common.c:48:
/usr/include/libnl3/netlink/errno.h:56:21: note: declared here
  extern const char * nl_geterror(int);

Modifying openmpi-3.0.0/opal/mca/reachable/netlink/libnl1_utils.h from

#define NL_GETERROR(err) nl_geterror()

to

#define NL_GETERROR(err) nl_geterror(err)

as in libnl3_utils.h allows for successful compilation.  But from
configure, I see

checking for libraries that use libnl v1... (none)
checking for libraries that use libnl v3... ibverbs nl-3

so I wonder if perhaps there is something more serious is going on.  Any
suggestions?

Thanks,
Stephen Guzik

_______________________________________________
users mailing list
users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/users



--- configure.orig      2017-09-21 11:51:58.073688470 +0900
+++ configure   2017-09-21 11:52:30.589454863 +0900
@@ -155813,7 +155813,7 @@
     # If we found everything
     if test $opal_libnlv3_happy -eq 1; then :
   opal_reachable_netlink_LIBS="-lnl-3 -lnl-route-3"
-           OPAL_HAVE_LIBNL3=1
+           OPAL_HAVE_LIBNL3=1; else opal_reachable_netlink_LIBS=""
 fi
 
 
_______________________________________________
users mailing list
users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/users

Reply via email to