Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278837 - sys-apps/coreutils-7.4 fails to build on AIX 6.1
Summary: sys-apps/coreutils-7.4 fails to build on AIX 6.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All AIX
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-23 15:05 UTC by Jeremy Olexa (darkside) (RETIRED)
Modified: 2009-07-23 16:38 UTC (History)
0 users

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


Attachments
build.log (build.log,64.53 KB, text/plain)
2009-07-23 15:06 UTC, Jeremy Olexa (darkside) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-07-23 15:05:28 UTC
%% emerge --info
Portage 2.2.00.13830-prefix (prefix/aix/6.1.0.0/ppc, gcc-4.2.4, unavailable, 1 00C47B0E4C00)
=================================================================
System uname: AIX-1-00C47B0E4C00-32bit
Timestamp of tree: Wed, 22 Jul 2009 21:50:05 +0000
app-shells/bash:     4.0_p24
dev-lang/python:     2.5.2-r8
sys-devel/autoconf:  2.63-r01.1
sys-devel/automake:  1.9.6-r2, 1.10.2-r00.1, 1.11
sys-devel/gcc-config: 1.4.0-r04.6
sys-devel/libtool:   2.2.6a-r00.1
ACCEPT_KEYWORDS="~ppc-aix"
CBUILD="powerpc-ibm-aix6.1.0.0"
CFLAGS="-O2 -pipe -fomit-frame-pointer"
CHOST="powerpc-ibm-aix6.1.0.0"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer"
DISTDIR="/home/jolexa/portage/aix-6.1/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="assume-digests collision-protect distlocks fixpackages nodoc noinfo nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US"
LDFLAGS=""
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/home/jolexa/portage/aix-6.1/usr/portage/packages"
PORTAGE_CONFIGROOT="/home/jolexa/portage/aix-6.1/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/jolexa/portage/aix-6.1/var/tmp"
PORTDIR="/home/jolexa/portage/aix-6.1/usr/portage"
PORTDIR_OVERLAY="/home/jolexa/portage/global/overlays"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="bash-completion bzip2 cracklib midi ncurses perl ppc-aix prefix python readline ssl unicode zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" ELIBC="AIX" INPUT_DEVICES="keyboard mouse" KERNEL="AIX" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-07-23 15:06:23 UTC
Created attachment 198912 [details]
build.log

%% emerge -pv coreutils

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] sys-apps/coreutils-7.4 [6.12-r2] USE="(-acl) (-caps) -gmp% -nls (-selinux) -static -vanilla -xattr" 0 kB
Comment 2 Michael Haubenwallner (RETIRED) gentoo-dev 2009-07-23 16:11:22 UTC
AIX6 seems to implement getppriv():
http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.aix.basetechref/doc/basetrf1/getppriv.htm

Although Solaris does it somehow different:
http://docs.sun.com/app/docs/doc/816-5167/getppriv-2?a=view

And glibc-2.8 seems to not provide getppriv() (yet).

So it should help to fool configure with "ac_cv_func_getppriv=no" for aix6 in the ebuild.
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-07-23 16:38:14 UTC
(In reply to comment #2)
> AIX6 seems to implement getppriv():
> http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.aix.basetechref/doc/basetrf1/getppriv.htm
> 
> Although Solaris does it somehow different:
> http://docs.sun.com/app/docs/doc/816-5167/getppriv-2?a=view
> 
> And glibc-2.8 seems to not provide getppriv() (yet).
> 
> So it should help to fool configure with "ac_cv_func_getppriv=no" for aix6 in
> the ebuild.
> 

Workaround tested and applied. Thanks for the help.