[Bug 213221] emulators/qemu: rdma.c:935:35: error: incomplete definition of type 'struct rdma_addrinfo'

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Oct 5 06:34:35 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213221

            Bug ID: 213221
           Summary: emulators/qemu: rdma.c:935:35: error: incomplete
                    definition of type 'struct rdma_addrinfo'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: bofh at freebsd.org
          Reporter: ohartman at zedat.fu-berlin.de
             Flags: maintainer-feedback?(bofh at freebsd.org)
          Assignee: bofh at freebsd.org

I get haunted by an error on 12-CURRENT, which prevents me from installing or
building (poudriere) QEMU on 12-CURRENT:

[...]
  CC    net/util.o
migration/rdma.c:805:26: warning: unused variable 'port_attr'
[-Wunused-variable]
    struct ibv_port_attr port_attr;
                         ^
migration/rdma.c:929:11: warning: implicit declaration of function
'rdma_getaddrinfo' is invalid in C99 [-Wimplicit-function-declaration]
    ret = rdma_getaddrinfo(rdma->host, port_str, NULL, &res);
          ^
migration/rdma.c:935:35: error: incomplete definition of type 'struct
rdma_addrinfo'
    for (e = res; e != NULL; e = e->ai_next) {
                                 ~^
migration/rdma.c:901:12: note: forward declaration of 'struct rdma_addrinfo'
    struct rdma_addrinfo *res;
           ^
migration/rdma.c:936:20: error: incomplete definition of type 'struct
rdma_addrinfo'
        inet_ntop(e->ai_family,
                  ~^
migration/rdma.c:901:12: note: forward declaration of 'struct rdma_addrinfo'
    struct rdma_addrinfo *res;
           ^
migration/rdma.c:937:39: error: incomplete definition of type 'struct
rdma_addrinfo'
            &((struct sockaddr_in *) e->ai_dst_addr)->sin_addr, ip, sizeof ip);
                                     ~^
migration/rdma.c:901:12: note: forward declaration of 'struct rdma_addrinfo'
    struct rdma_addrinfo *res;
           ^
migration/rdma.c:940:53: error: incomplete definition of type 'struct
rdma_addrinfo'
        ret = rdma_resolve_addr(rdma->cm_id, NULL, e->ai_dst_addr,
[...]


I have this error on several boxes - all showing the same error on very
different building environments.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list