Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implicit declaration of function ‘rdma_destroy_ep’ #31

Open
robstewart57 opened this issue Apr 15, 2013 · 3 comments
Open

implicit declaration of function ‘rdma_destroy_ep’ #31

robstewart57 opened this issue Apr 15, 2013 · 3 comments

Comments

@robstewart57
Copy link

$ make --version
GNU Make 3.81
$ uname -a
Linux 2.6.32-131.21.1.el6.x86_64

I'm getting the following compilation error:

ctp_verbs_api.c:1372: error: implicit declaration of function ‘rdma_destroy_ep’

make[2]: Entering directory /home/me/code/cci/src/plugins/ctp/verbs' CC ctp_verbs_module.lo CC ctp_verbs_api.lo ctp_verbs_api.c: In function ‘ctp_verbs_create_endpoint’: ctp_verbs_api.c:1273: warning: ISO C forbids conversion of function pointer to object pointer type ctp_verbs_api.c:1284: warning: ISO C forbids conversion of function pointer to object pointer type ctp_verbs_api.c:1372: error: implicit declaration of function ‘rdma_destroy_ep’ ctp_verbs_api.c: In function ‘verbs_progress_ep’: ctp_verbs_api.c:3648: warning: ISO C forbids initialization between function pointer and ‘void *’ ctp_verbs_api.c:3650: warning: ISO C forbids conversion of function pointer to object pointer type ctp_verbs_api.c:3650: warning: ISO C forbids comparison of ‘void *’ with function pointer ctp_verbs_api.c:3661: warning: ISO C forbids conversion of function pointer to object pointer type ctp_verbs_api.c:3661: warning: ISO C forbids comparison of ‘void *’ with function pointer make[2]: *** [ctp_verbs_api.lo] Error 1 make[2]: Leaving directory/home/me/code/cci/src/plugins/ctp/verbs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/me/code/cci/src'
make: *** [all-recursive] Error 1

@robstewart57
Copy link
Author

I should add that, if I comment out line 1054 and 1062 in src/plugins/ctp/verbs/ctp_verbs_api.c , make completes successfully, though not necessarily rightfully so.

// #if HAVE_RDMA_ADDRINFO                                                                                                                                                            
void rdma_destroy_ep(struct rdma_cm_id *id)
{
        if (id->qp)
                rdma_destroy_qp(id);

        rdma_destroy_id(id);
}
// #endif /* HAVE_RDMA_ADDRINFO */

Indeed, this variable was set to 0 in the configuration stage:

$ grep HAVE_RDMA_ADDRINFO *
config.log:| #define HAVE_RDMA_ADDRINFO 0

@scottatchley
Copy link
Contributor

Hi Rob,

We must not have github configured to email us when tickets are opened.

Does your librdmacm lib define that function?

Scott

@scottatchley
Copy link
Contributor

Rob,

What does this report?

$ nm librdmacm.so | grep destroy

You will need to determine which librdmacm.so CCI is using first.

Scott

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants