Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507470 - app-misc/pax-utils-0.8.1 - build fails on Gentoo/FreeBSD, elf.h:22:22: fatal error: features.h: No such file or directory
Summary: app-misc/pax-utils-0.8.1 - build fails on Gentoo/FreeBSD, elf.h:22:22: fatal ...
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: SpanKY
: 526048 (view as bug list)
Depends on:
Reported: 2014-04-12 06:03 UTC by Yuta SATOH
Modified: 2014-10-21 15:12 UTC (History)
3 users (show)

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

sample patch for pax-utils-0.8.1/elf.h (pax-utils-0.8.1.patch,299 bytes, patch)
2014-04-12 06:05 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2014-04-12 06:03:44 UTC
features.h does not exist on FreeBSD.
Content similar to exist in sys/cdefs.h.

Reproducible: Always

Steps to Reproduce:
1. MAKEOPTS=-j1 ebuild pax-utils-0.8.1.ebuild clean compile

Actual Results:  
 * pax-utils-0.8.1.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                  [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                            [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                          [ ok ]
>>> Unpacking source...
>>> Unpacking pax-utils-0.8.1.tar.xz to /var/tmp/portage/app-misc/pax-utils-0.8.1/work
>>> Source unpacked in /var/tmp/portage/app-misc/pax-utils-0.8.1/work
>>> Preparing source in /var/tmp/portage/app-misc/pax-utils-0.8.1/work/pax-utils-0.8.1 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-misc/pax-utils-0.8.1/work/pax-utils-0.8.1 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-misc/pax-utils-0.8.1/work/pax-utils-0.8.1 ...
gmake -j1 USE_CAP=no USE_PYTHON=yes CC=x86_64-gentoo-freebsd10.0-gcc
x86_64-gentoo-freebsd10.0-gcc -O0 -pipe -ggdb -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVERSION="0.8.1" -o paxelf.o -c paxelf.c
In file included from porting.h:38:0,
                 from paxinc.h:15,
                 from paxelf.c:10:
elf.h:22:22: fatal error: features.h: No such file or directory
 #include <features.h>
compilation terminated.
Makefile:84: recipe for target 'paxelf.o' failed
gmake: *** [paxelf.o] Error 1
 * ERROR: app-misc/pax-utils-0.8.1::gentoo failed (compile phase):
 *   emake failed
 * If you need support, post the output of `emerge --info '=app-misc/pax-utils-0.8.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-misc/pax-utils-0.8.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-misc/pax-utils-0.8.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-misc/pax-utils-0.8.1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-misc/pax-utils-0.8.1/work/pax-utils-0.8.1'
 * S: '/var/tmp/portage/app-misc/pax-utils-0.8.1/work/pax-utils-0.8.1'

sys/cdefs.h on FreeBSD.
Comment 1 Yuta SATOH 2014-04-12 06:05:49 UTC
Created attachment 374780 [details, diff]
sample patch for pax-utils-0.8.1/elf.h
Comment 2 Naohiro Aota gentoo-dev 2014-04-12 23:49:45 UTC
The patch should send to upstream
Comment 3 Naohiro Aota gentoo-dev 2014-04-12 23:52:42 UTC
well, this can be assigned to package maintainer.
Comment 5 Naohiro Aota gentoo-dev 2014-06-11 06:54:01 UTC
Would you release new version of pax-utils soon? If not, I'd like to add this patch to the portage tree.
Comment 6 SpanKY gentoo-dev 2014-10-21 05:06:16 UTC
*** Bug 526048 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2014-10-21 15:12:29 UTC
0.9.1 is in the tree now w/the fix