[openib-general] [PATCH] cmpost: allow cmpost to build with latest RDMA CM
Bub Thomas
thomas.bub at thomson.net
Thu Aug 17 04:46:00 PDT 2006
Sean,
I'm getting a little puzzled.
For me it seems as if we are moving in the wrong direction.
I don't have a RDMA CM on the Gen1 counterpart that my gen2 application
is talking too.
Or does the RDMA CM run also connect with a Gen1 libcm counterpart?
If no I have to get it out of the cmpost example.
If yes you have to explain me what the two different versions:
rdma_cm.h
and
rdma_cma.h
are good for.
The cmpost.c was using rdma_cma.h up to now but the missing defines are
located in rdma_cm.h
Using rdma_cm.h does open another can of worms.
Thomas
-----Original Message-----
From: Sean Hefty [mailto:mshefty at ichips.intel.com]
Sent: Wednesday, August 16, 2006 6:33 PM
To: Bub Thomas
Cc: Sean Hefty; openib-general at openib.org; Erez Cohen
Subject: Re: [openib-general] [PATCH] cmpost: allow cmpost to build with
latest RDMA CM
Bub Thomas wrote:
> cmpost.c:65: error: field `path_rec' has incomplete type
> cmpost.c: In function `int modify_to_rtr(cmtest_node*)':
> cmpost.c:130: error: invalid conversion from `int' to
`ibv_qp_attr_mask'
> cmpost.c:130: error: initializing argument 3 of `int
> ibv_modify_qp(ibv_qp*, ibv_qp_attr*, ibv_qp_attr_mask)'
> cmpost.c:142: error: invalid conversion from `int' to
`ibv_qp_attr_mask'
> cmpost.c:142: error: initializing argument 3 of `int
> ibv_modify_qp(ibv_qp*, ibv_qp_attr*, ibv_qp_attr_mask)'
> cmpost.c: In function `int modify_to_rts(cmtest_node*)':
> cmpost.c:161: error: invalid conversion from `int' to
`ibv_qp_attr_mask'
> cmpost.c:161: error: initializing argument 3 of `int
> ibv_modify_qp(ibv_qp*, ibv_qp_attr*, ibv_qp_attr_mask)'
> cmpost.c: In function `void cm_handler(ib_cm_id*, ib_cm_event*)':
> cmpost.c:267: error: invalid conversion from `void*' to `cmtest_node*'
> cmpost.c: In function `int create_nodes()':
> cmpost.c:353: error: invalid conversion from `void*' to `cmtest_node*'
> cmpost.c: In function `int query_for_path(char*)':
> cmpost.c:631: error: `RDMA_PS_TCP' undeclared (first use this
function)
> cmpost.c:631: error: (Each undeclared identifier is reported only once
> for each function it appears in.)
> cmpost.c:657: error: 'struct cmtest' has no member named 'path_rec'
> cmpost.c:657: error: invalid use of undefined type `struct
> ibv_sa_path_rec'
> /vob/pkgs/sys/linux-include/rdma/rdma_cma.h:84: error: forward
> declaration of `struct ibv_sa_path_rec'
> cmpost.c: In function `void run_client(char*)':
> cmpost.c:678: error: 'struct cmtest' has no member named 'path_rec'
> *** Error code 1
> clearmake: Error: Build script failed for "cmpost.o"
Some of these look like missing include files. Are libibverbs and
librdmacm
installed?
- Sean
More information about the general
mailing list