Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 403585 - app-misc/pax-utils-0.3.0 failed because of missing O_CLOEXEC
Summary: app-misc/pax-utils-0.3.0 failed because of missing O_CLOEXEC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL: http://lists.freebsd.org/pipermail/fr...
Whiteboard:
Keywords:
Depends on:
Blocks: new-fbsd-stage
  Show dependency tree
 
Reported: 2012-02-14 13:55 UTC by Dmitri Bogomolov
Modified: 2012-04-28 04:33 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitri Bogomolov 2012-02-14 13:55:38 UTC
My problem is similar to bug 394131:

>>> Compiling source in /var/tmp/portage/app-misc/pax-utils-0.3.0/work/pax-utils-0.3.0 ...
gmake CC=i686-gentoo-freebsd8.2-gcc USE_CAP= 
i686-gentoo-freebsd8.2-gcc -O2 -march=i686 -mtune=core2 -pipe -D_GNU_SOURCE -DVERSION="0.3.0" -o paxelf.o -c paxelf.c
i686-gentoo-freebsd8.2-gcc -O2 -march=i686 -mtune=core2 -pipe -D_GNU_SOURCE -DVERSION="0.3.0" -o paxmacho.o -c paxmacho.c
i686-gentoo-freebsd8.2-gcc -O2 -march=i686 -mtune=core2 -pipe -D_GNU_SOURCE -DVERSION="0.3.0" -o paxinc.o -c paxinc.c
i686-gentoo-freebsd8.2-gcc -O2 -march=i686 -mtune=core2 -pipe -D_GNU_SOURCE -DVERSION="0.3.0" -o xfuncs.o -c xfuncs.c
i686-gentoo-freebsd8.2-gcc -O2 -march=i686 -mtune=core2 -pipe -D_GNU_SOURCE -DVERSION="0.3.0" -o scanelf.o -c scanelf.c
scanelf.c: In function ‘fopenat_r’:
scanelf.c:95:41: error: ‘O_CLOEXEC’ undeclared (first use in this function)
scanelf.c:95:41: note: each undeclared identifier is reported only once for each function it appears in
scanelf.c: At top level:
scanelf.c:910:2: warning: #warning Cache support not implemented for your target
scanelf.c: In function ‘scanelf_fileat’:
scanelf.c:1651:64: error: ‘O_CLOEXEC’ undeclared (first use in this function)
scanelf.c: In function ‘scanelf_dirat’:
scanelf.c:1692:44: error: ‘O_CLOEXEC’ undeclared (first use in this function)
scanelf.c: In function ‘parseargs’:
scanelf.c:2194:36: error: ‘O_CLOEXEC’ undeclared (first use in this function)
gmake: *** [scanelf.o] Error 1
emake failed
 * ERROR: app-misc/pax-utils-0.3.0 failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 759:  Called die
 * The specific snippet of code:
 *       emake CC="$(tc-getCC)" USE_CAP=$(use caps && echo yes) || die
 * 
 * If you need support, post the output of 'emerge --info =app-misc/pax-utils-0.3.0',
 * the complete build log and the output of 'emerge -pqv =app-misc/pax-utils-0.3.0'.
 * The complete build log is located at '/var/tmp/portage/app-misc/pax-utils-0.3.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-misc/pax-utils-0.3.0/temp/environment'.
 * S: '/var/tmp/portage/app-misc/pax-utils-0.3.0/work/pax-utils-0.3.0'

Reproducible: Always
Comment 1 Naohiro Aota gentoo-dev 2012-03-29 16:50:25 UTC
Seems already fixed in pax-utils CVS.

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-projects/pax-utils/porting.h?r1=1.41&r2=1.42&view=patch

vapier, will there be new release including this patch soon? or may I add this patch to portage-tree?
Comment 2 Richard Yao (RETIRED) gentoo-dev 2012-03-29 18:13:43 UTC
I cannot reproduce this issue on x86 Gentoo/FreeBSD 9. This seems to be Gentoo/FreeBSD 8.x specific.
Comment 3 Dmitri Bogomolov 2012-03-29 18:23:11 UTC
(In reply to comment #2)
> I cannot reproduce this issue on x86 Gentoo/FreeBSD 9. This seems to be
> Gentoo/FreeBSD 8.x specific.

Seems to. See URL.
Comment 4 SpanKY gentoo-dev 2012-04-28 04:33:04 UTC
it'll be in the next pax-utils release