Date: Sun, 13 Nov 2016 17:48:03 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 214484] emulators/qemu-sbruno: build error if devel/ncurses is installed Message-ID: <bug-214484-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214484 Bug ID: 214484 Summary: emulators/qemu-sbruno: build error if devel/ncurses is installed Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: z7dr6ut7gs@snkmail.com CC: sbruno@FreeBSD.org CC: sbruno@FreeBSD.org When building bsd-user/freebsd/os-proc.c, you get this error if the ncurses port is installed: /usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-ec807d10/bsd-user/= freebsd/os-proc.c:307:33: error: use of undeclared identifier 'O_CLOEXEC' fd =3D open(p, O_RDONLY | O_CLOEXEC); ^ 1 error generated. gmake[3]: *** [/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-ec807d10/rules.ma= k:60: bsd-user/freebsd/os-proc.o] Error 1 'pkg-config --cflags ncurses' gives: -I/usr/local/include -I/usr/local/include/ncurses -D_BSD_TYPES -D__BSD_VISI= BLE -D_POSIX_C_SOURCE=3D200112L -D_XOPEN_SOURCE=3D600 Either -D_POSIX_C_SOURCE=3D200112L or -D_XOPEN_SOURCE=3D600 prevent O_CLOEXEC from being defined in fcntl.h The [forthcoming] patch avoids adding the ncurses -D flags. It also remove= s an obsolete part of post-patch that is not required given the current qemu sou= rce (which has -lelf in configure now). I've also opened an inquiry upstream with ncurses to see if those -D flags can't just be removed from its pkg-config files. In the mean time, a local patch for the qemu port might be useful to avoid build errors for people who have ncurses installed. p.s. this only occurs in the most recent qemu-sbruno update - before that 'configure' didn't invoke "pkg-config --cflags ncurses". --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-214484-13>