Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge Portage: `__ptr_t' undeclared
View unanswered posts
View posts from last 24 hours

 
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo for Mac OS X (Portage for Mac OS X)
View previous topic :: View next topic  
Author Message
iBormuth
n00b
n00b


Joined: 13 Jan 2004
Posts: 59

PostPosted: Fri Jan 21, 2005 7:36 pm    Post subject: Emerge Portage: `__ptr_t' undeclared Reply with quote

Hmm... tried to emerge portage ... without success:

Error: getcwd.c:346: error: `__ptr_t' undeclared (first use in this function)
XCode: 1.5
Portage: 2.0.51-r14
Quite new gentoo for MacOsX install. So customisation yet.

That error was reported several times at several places,
but I never saw a solution or even discussion on the
toppic. It might be I missed something.
Please give me a hint.

Thanks

========================


Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/portage-2.0.51-r14 to /
>>> Downloading >>> md5 src_uri ;-) portage-2.0.51-r14.tar.bz2
>>> Unpacking source...
>>> Unpacking portage-2.0.51-r14.tar.bz2 to /var/tmp/portage/portage-2.0.51-r14/work
patching file pym/portage.py
>>> Source unpacked.
./create-localdecls
Checking truncate argument type... off_t
Checking libc version... ./create-localdecls: line 1: ldd: command not found

./create-localdecls: line 1: /bin/uname: No such file or directory
./create-localdecls: line 56: [: mips: unary operator expected

gcc -O1 -pipe -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -Wall -c libsandbox.c
libsandbox.c: In function `open':
libsandbox.c:544: warning: `mode_t' is promoted to `int' when passed through `...'
libsandbox.c:544: warning: (so you should pass `int' not `mode_t' to `va_arg')
libsandbox.c: In function `init_env_entries':
libsandbox.c:958: warning: implicit declaration of function `strndupa'
libsandbox.c:958: warning: assignment makes pointer from integer without a cast
libsandbox.c:967: warning: implicit declaration of function `strndup'
libsandbox.c:967: warning: assignment makes pointer from integer without a cast
In file included from libsandbox.c:1380:
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:1380:
getcwd.c: In function `__egetcwd':
getcwd.c:346: error: `__ptr_t' undeclared (first use in this function)
getcwd.c:346: error: (Each undeclared identifier is reported only once
getcwd.c:346: error: for each function it appears in.)
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:137: error: prototype declaration
In file included from libsandbox.c:1381:
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

!!! ERROR: sys-apps/portage-2.0.51-r14 failed.
!!! Function src_compile, Line 115, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message
Back to top
View user's profile Send private message
pindar
Apprentice
Apprentice


Joined: 30 Apr 2004
Posts: 220

PostPosted: Fri Jan 21, 2005 8:52 pm    Post subject: Reply with quote

http://forums.gentoo.org/viewtopic.php?t=242214
http://forums.gentoo.org/viewtopic.php?t=254322
Back to top
View user's profile Send private message
iBormuth
n00b
n00b


Joined: 13 Jan 2004
Posts: 59

PostPosted: Thu Jan 27, 2005 8:26 pm    Post subject: Reply with quote

I tried both suggestions - no success ...

The Error stays the same

$ emerge info:
Quote:

Portage 2.0.51-r3 (default-macos-10.3, gcc-3.3, libsystem-7.1-r0, 7.7.0 Power Macintosh)
=================================================================
System uname: 7.7.0 Power Macintosh powerpc
macos-20041118
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled]
Autoconf:
Automake:
Binutils:
Headers:
Libtools:
ACCEPT_KEYWORDS="ppc-macos"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
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="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache collision-protect distlocks"
GENTOO_MIRRORS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="macos"
Back to top
View user's profile Send private message
pindar
Apprentice
Apprentice


Joined: 30 Apr 2004
Posts: 220

PostPosted: Fri Jan 28, 2005 11:44 am    Post subject: Reply with quote

http://bugs.gentoo.org/show_bug.cgi?id=68502
Back to top
View user's profile Send private message
iBormuth
n00b
n00b


Joined: 13 Jan 2004
Posts: 59

PostPosted: Fri Jan 28, 2005 8:35 pm    Post subject: Reply with quote

Thank you,
linking /etc/make.profile to /usr/portage/profiles/default-darwin/macos/10.3 did the job.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo for Mac OS X (Portage for Mac OS X) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum