--- a/prov/verbs/src/fi_verbs.h	2018-05-09 03:27:04.000000000 +0800
+++ b/prov/verbs/src/fi_verbs.h	2021-08-04 17:37:52.143247627 +0800
@@ -680,11 +680,11 @@
 int fi_ibv_dgram_av_open(struct fid_domain *domain_fid, struct fi_av_attr *attr,
 			 struct fid_av **av_fid, void *context);
 
-struct fi_ops_atomic fi_ibv_msg_ep_atomic_ops;
-struct fi_ops_cm fi_ibv_msg_ep_cm_ops;
-struct fi_ops_msg fi_ibv_msg_ep_msg_ops;
-struct fi_ops_rma fi_ibv_msg_ep_rma_ops;
-struct fi_ops_msg fi_ibv_msg_srq_ep_msg_ops;
+extern struct fi_ops_atomic fi_ibv_msg_ep_atomic_ops;
+extern struct fi_ops_cm fi_ibv_msg_ep_cm_ops;
+extern struct fi_ops_msg fi_ibv_msg_ep_msg_ops;
+extern struct fi_ops_rma fi_ibv_msg_ep_rma_ops;
+extern struct fi_ops_msg fi_ibv_msg_srq_ep_msg_ops;
 
 struct fi_ibv_connreq {
 	struct fid		handle;
