Bug 214873 - emulators/qemu: build failure on CURRENT: error: incomplete definition ...
Summary: emulators/qemu: build failure on CURRENT: error: incomplete definition ...
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-27 10:25 UTC by O. Hartmann
Modified: 2016-12-29 20:25 UTC (History)
0 users

See Also:
ohartmann: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2016-11-27 10:25:12 UTC
On CURRENT, emulators/qemu fails to build now for a long, long time (I started with 11-CURRENT). Compiling with the standard configuration options provided, the compiler dies after a while with the error show below. I marked the error with "==>>", but also put the leading cc line in front to document whats happening.

[...]

cc -I/usr/ports/emulators/qemu/work/qemu-2.6.1/tcg -I/usr/ports/emulators/qemu/work/qemu-2.6.1/tcg/i386 -I. -I/usr/ports/emulators/qemu/work/qemu-2.6.1 -I/usr/ports/emulators/qemu/work/qemu-2.6.1/include -Inet -Inet -I/usr/local/include/pixman-1   -I/usr/ports/emulators/qemu/work/qemu-2.6.1/dtc/libfdt -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common  -I/usr/ports/emulators/qemu/work/qemu-2.6.1 -I/usr/local/include -DPREFIX=\""/usr/local\"" -Wno-string-plus-int -Wno-initializer-overrides -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/local/include -I/usr/local/include/p11-kit-1   -I/usr/local/include   -I/usr/local/include/libpng16   -I/usr/ports/emulators/qemu/work/qemu-2.6.1/tests -MMD -MP -MT net/eth.o -MF net/eth.d -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include   -g -O2 -pipe  -fstack-protector -fno-strict-aliasing  -c -o net/eth.o net/eth.c
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) {
                                 ~^
Comment 1 O. Hartmann 2016-12-06 16:38:26 UTC
Same with emulators/qemu-devel (Bug 215100
Comment 2 O. Hartmann 2016-12-29 20:25:19 UTC
This bug was triggered by a stray /usr/include/rdma folder with appropriate headers which are supposed to be fallout from a CURRENT update and misplaced in the recent configuration. After deletion of this folder (which had a quite distante initial creation date compared to 29.12.2016 of the CURRENT installation today: July 2016 for the poudriere jail and October for the base system on which the port also bugged out on this error reported below) emulators/qemu compiled until it failed due to PR  Bug 215100.