Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68502 - Portage-2.0.51-r2 doesn't compile on MacOSX
Summary: Portage-2.0.51-r2 doesn't compile on MacOSX
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: PPC64 All
: High critical (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-22 00:00 UTC by Roman Dilken
Modified: 2004-12-16 09:07 UTC (History)
1 user (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 Roman Dilken 2004-10-22 00:00:31 UTC
I can't update portage to the version above. The following error occurs on compiling libsandbox.o:

cc -O1 -pipe  -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -Wall -c libsandbox.c
libsandbox.c: In function `init_wrappers':
libsandbox.c:218: error: `RTLD_NEXT' undeclared (first use in this function)
libsandbox.c:218: error: (Each undeclared identifier is reported only once
libsandbox.c:218: error: for each function it appears in.)
libsandbox.c: In function `get_dlsym':
libsandbox.c:346: error: `RTLD_NEXT' undeclared (first use in this function)
libsandbox.c: In function `open':
libsandbox.c:541: warning: `mode_t' is promoted to `int' when passed through `...'
libsandbox.c:541: warning: (so you should pass `int' not `mode_t' to `va_arg')
libsandbox.c: In function `init_env_entries':
libsandbox.c:955: warning: implicit declaration of function `strndupa'
libsandbox.c:955: warning: assignment makes pointer from integer without a cast
libsandbox.c:964: warning: implicit declaration of function `strndup'
libsandbox.c:964: warning: assignment makes pointer from integer without a cast
In file included from libsandbox.c:1363:
getcwd.c:224:1: warning: "__lstat" redefined
getcwd.c:207:1: warning: this is the location of the previous definition
In file included from libsandbox.c:1363:
getcwd.c: In function `__egetcwd':
getcwd.c:346: error: `__ptr_t' undeclared (first use in this function)
getcwd.c:346: error: parse error before "dotlist"
getcwd.c:388: warning: implicit declaration of function `_D_ALLOC_NAMLEN'
getcwd.c:419: warning: implicit declaration of function `_D_EXACT_NAMLEN'
getcwd.c:443: error: void value not ignored as it ought to be
getcwd.c:461: error: parse error before "dotlist"
getcwd.c:472: error: parse error before "dotlist"
getcwd.c: In function `egetcwd':
getcwd.c:483: error: argument `size' doesn't match prototype
libsandbox.c:136: error: prototype declaration
In file included from libsandbox.c:1364:
canonicalize.c: In function `erealpath':
canonicalize.c:153: warning: implicit declaration of function `__mempcpy'
canonicalize.c:153: warning: assignment makes pointer from integer without a cast
canonicalize.c:163: error: void value not ignored as it ought to be
make: *** [libsandbox.o] Error 1



Reproducible: Always
Steps to Reproduce:
1. emerge -auv portage
2.
3.




Portage 2.0.51 (default-macos/ppc/10.3, gcc-3.3, libsystem-7.1-r0, 7.5.0 Power
Macintosh)
=================================================================
System uname: 7.5.0 Power Macintosh powerpc
macos-20040726
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632)
[disabled]
Autoconf: sys-devel/autoconf-2.57,sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.6.3,sys-devel/automake-1.8.5-r1
Binutils: 
Headers:  
Libtools: sys-devel/libtool-1.5.2-r5,sys-devel/libtool-2.4.4
ACCEPT_KEYWORDS="ppc-macos ~ppc-macos"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe  -mcpu=G5 -mtune=G5 -mpowerpc64 -funroll-loops"
CHOST="powerpc-apple-darwin"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -pipe  -mcpu=G5 -mtune=G5 -mpowerpc64 -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect cvs distlocks keepwork
moo nostrip"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X debug hbci jpeg justify multilib nls ofx quotes ssl tiff uclibc unicode"
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2004-10-22 06:29:21 UTC
Is the current portage sandbox supported at all under macos?
Comment 2 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2004-10-22 06:32:36 UTC
No, the sandbox is not (yet) supported under Mac OS X. Please use FEATURES="-sandbox".
Comment 3 Roman Dilken 2004-10-22 07:01:29 UTC
Oh, it's funny. I didn't recognize it but after testing now I see that sandbox is automatically switched on although I switched it off in /etc/make.conf.
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2004-10-22 08:41:53 UTC
Portage should not build sandbox on macos.
That has nothing to do with enabling it.

Did you somehow resolve the issue?
Comment 5 Roman Dilken 2004-10-22 08:57:44 UTC
There must be the useflag ppc-macos set.
Why does still the useflag macos appear instead of the new useflag ppc-macos?
Comment 6 ulfonk_mennhar 2004-12-16 06:03:17 UTC
the same thing happens with portage 2.0.51-r8

ACCEPT_KEYWORDS="ppc-macos"
FEATURES="-sandbox cvs keepwork collision-protect"

obviously it tries to build sandbox but can't

any solution?
Comment 7 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-12-16 08:37:49 UTC
`emerge --info` please?
default-macos-{10.3,10.4} profiles are not supported any more.
If you are using one of them, please switch to one of
default-darwin/macos/{10.3,10.4}.
Comment 8 Nick Dimiduk (RETIRED) gentoo-dev 2004-12-16 09:07:39 UTC
Just pointing out... "ppc-macos" is not part of the list of USE flags in the `emerge --info` output provided.  This being the case, the conditional being tested at line 71 of portage-2.0.51-r8.ebuild (in src_compile) will return false and thus execution will follow to the else clause and execute `make' in src/sandbox.

For comparison purposes, my output from `emerge --info` does include "ppc-macos" in USE.  I have no trouble merging portage .51-r8.