FreeBSD is not supporting O_CLOEXEC now. it will be supported by 8.3 or 9.0. http://svn.freebsd.org/viewvc/base?view=revision&revision=219999 so, please drop ~x86-fbsd from portage-utils-0.5. The following message is displayed and fails to compile on Gentoo/FBSD. i686-gentoo-freebsd8.0-gcc -DEPREFIX=\"/\" -DVERSION=\"0.5\" -DAPPLET_q -DAPPLET_qatom -DAPPLET_qcache -DAPPLET_qcheck -DAPPLET_qdepends -DAPPLET_qfile -DAPPLET_qgrep -DAPPLET_qlist -DAPPLET_qlop -DAPPLET_qmerge -DAPPLET_qpkg -DAPPLET_qsearch -DAPPLET_qsize -DAPPLET_qtbz2 -DAPPLET_quse -DAPPLET_qxpak -O2 -march=i686 -mtune=i686 -pipe -std=gnu99 -MM main.c > .depend : q : qatom : qcache : qcheck : qdepends : qfile : qgrep : qlist : qlop : qmerge : qpkg : qsearch : qsize : qtbz2 : quse : qxpak : i686-gentoo-freebsd8.0-gcc -O2 -march=i686 -mtune=i686 -pipe -std=gnu99 -Wl,-O1 -Wl,--as-needed main.c -o q -lkvm In file included from libq/compat.c:36, from libq/libq.c:21, from main.c:94: /usr/include/sys/dir.h:39:2: warning: #warning "The information in this file should be obtained from <dirent.h>" /usr/include/sys/dir.h:40:2: warning: #warning "and is provided solely (and temporarily) for backward compatibility." In file included from libq/libq.c:27, from main.c:94: libq/xmkdir.c: In function 'rm_rf_at': libq/xmkdir.c:46: error: 'O_CLOEXEC' undeclared (first use in this function) libq/xmkdir.c:46: error: (Each undeclared identifier is reported only once libq/xmkdir.c:46: error: for each function it appears in.) In file included from libq/libq.c:37, from main.c:94: libq/profile.c: In function 'q_profile_walk_at': libq/profile.c:13: error: 'O_CLOEXEC' undeclared (first use in this function) <snip> Reproducible: Always Steps to Reproduce: 1. emerge app-portage/portage-utils 2. 3.
http://sources.gentoo.org/gentoo-projects/portage-utils/libq/compat.c?r1=1.6&r2=1.7
Created attachment 274243 [details] complete build.log Still failed with the patch. main.c:224: error: static declaration of 'getline' follows non-static declaration qmerge.c: In function 'merge_tree_at': qmerge.c:615: error: 'struct stat' has no member named 'st_mtim' qmerge.c:616: error: 'struct stat' has no member named 'st_mtim' qmerge.c:617: warning: implicit declaration of function 'futimens' qmerge.c:617: warning: nested extern declaration of 'futimens' qmerge.c:658: error: 'struct stat' has no member named 'st_mtim' qmerge.c:659: error: 'struct stat' has no member named 'st_mtim' and so many warnings. (Drop ~x86-fbsd for now)
different issues. new issue -> new bug. this isnt a general "whenever it fails on bsd, re-open the bug".