Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70351 - unable to compile 2.0.51-r3
Summary: unable to compile 2.0.51-r3
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Sandbox (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-11-07 06:47 UTC by Martin Holzer (RETIRED)
Modified: 2004-11-07 08:15 UTC (History)
0 users

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


Attachments
libsandbox.so patch (patch,1.52 KB, patch)
2004-11-07 07:21 UTC, Brian Harring (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Holzer (RETIRED) gentoo-dev 2004-11-07 06:47:26 UTC
c2200 portage # emerge -p portage

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] sys-apps/portage-2.0.51-r3 [2.0.51-r2]

c2200 portage # emerge  portage
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/portage-2.0.51-r3 to /
>>> Downloading http://gentoo.osuosl.org/distfiles/portage-2.0.51-r3.tar.bz2
--17:32:39--  http://gentoo.osuosl.org/distfiles/portage-2.0.51-r3.tar.bz2
           => `/usr/portage/distfiles/portage-2.0.51-r3.tar.bz2'
Resolving gentoo.osuosl.org... 140.211.166.134
Connecting to gentoo.osuosl.org[140.211.166.134]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 280,663 [application/x-tar]

100%[====================================>] 280,663       62.90K/s    ETA 00:00

17:32:44 (59.67 KB/s) - `/usr/portage/distfiles/portage-2.0.51-r3.tar.bz2' saved [280663/280663]

>>> md5 src_uri ;-) portage-2.0.51-r3.tar.bz2
>>> Unpacking source...
>>> Unpacking portage-2.0.51-r3.tar.bz2 to /var/tmp/portage/portage-2.0.51-r3/work
>>> Source unpacked.
./create-localdecls
Checking truncate argument type... off_t
Checking libc version... libc.so.6
Checking glibc subversion... 2.2

gcc -march=i386 -O1 -pipe  -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -Wall -c libsandbox.c
libsandbox.c: In function `check_syscall':
libsandbox.c:1210: parse error before `char'
libsandbox.c:1210: `__retval' undeclared (first use in this function)
libsandbox.c:1210: (Each undeclared identifier is reported only once
libsandbox.c:1210: for each function it appears in.)
libsandbox.c:1210: `__len' undeclared (first use in this function)
libsandbox.c:1210: parse error before `)'
libsandbox.c:1216: `dpath' undeclared (first use in this function)
libsandbox.c:1172: warning: unused variable `debug_log_file'
libsandbox.c:1169: warning: unused variable `debug_log_stat'
libsandbox.c:1162: warning: unused variable `old_errno'
libsandbox.c:1237: warning: control reaches end of non-void function
libsandbox.c: At top level:
libsandbox.c:1237: parse error before `else'
libsandbox.c:1239: parse error before `&&'
libsandbox.c:1239: warning: type defaults to `int' in declaration of `__result'
libsandbox.c:1239: warning: data definition has no type or storage class
libsandbox.c:1239: parse error before `}'
libsandbox.c:1239: conflicting declarations of `__result'
libsandbox.c:1239: `__result' previously declared here
libsandbox.c:1239: `absolute_path' undeclared here (not in a function)
libsandbox.c:1239: `__s2' undeclared here (not in a function)
libsandbox.c:1239: initializer element is not constant
libsandbox.c:1239: parse error before `if'
libsandbox.c:1239: warning: type defaults to `int' in declaration of `__result'
libsandbox.c:1239: conflicting declarations of `__result'
libsandbox.c:1239: `__result' previously defined here
libsandbox.c:1239: warning: data definition has no type or storage class
libsandbox.c:1239: parse error before `}'
libsandbox.c:1239: warning: type defaults to `int' in declaration of `__result'
libsandbox.c:1239: warning: data definition has no type or storage class
libsandbox.c:1239: parse error before `}'
libsandbox.c:1239: redefinition of `__result'
libsandbox.c:1239: `__result' previously defined here
libsandbox.c:1239: `__s1' undeclared here (not in a function)
libsandbox.c:1239: `debug_log_path' undeclared here (not in a function)
libsandbox.c:1239: initializer element is not constant
libsandbox.c:1239: parse error before `if'
libsandbox.c:1239: warning: type defaults to `int' in declaration of `__result'
libsandbox.c:1239: conflicting declarations of `__result'
libsandbox.c:1239: `__result' previously defined here
libsandbox.c:1239: warning: data definition has no type or storage class
libsandbox.c:1239: parse error before `}'
libsandbox.c:1243: `dpath' used prior to declaration
libsandbox.c:1243: `debug_log_path' undeclared here (not in a function)
libsandbox.c:1243: `debug_log_path' undeclared here (not in a function)
libsandbox.c:1243: `debug_log_path' undeclared here (not in a function)
libsandbox.c:1243: `debug_log_path' undeclared here (not in a function)
libsandbox.c:1243: braced-group within expression allowed only inside a function
libsandbox.c:1243: parse error before `;'
libsandbox.c:1243: warning: type defaults to `int' in declaration of `__retval'
libsandbox.c:1243: `__retval' used prior to declaration
libsandbox.c:1243: warning: data definition has no type or storage class
libsandbox.c:1243: parse error before `}'
libsandbox.c:1252: parse error before string constant
libsandbox.c:1252: warning: type defaults to `int' in declaration of `unsetenv'
libsandbox.c:1252: warning: data definition has no type or storage class
libsandbox.c:1254: parse error before string constant
libsandbox.c:1255: warning: type defaults to `int' in declaration of `fprintf'
libsandbox.c:1255: warning: data definition has no type or storage class
libsandbox.c:1263: warning: type defaults to `int' in declaration of `close'
libsandbox.c:1263: warning: parameter names (without types) in function declaration
libsandbox.c:1263: warning: data definition has no type or storage class
libsandbox.c:1264: parse error before `}'
libsandbox.c:1266: warning: type defaults to `int' in declaration of `free'
libsandbox.c:1266: warning: parameter names (without types) in function declaration
libsandbox.c:1266: conflicting types for `free'
/usr/include/stdlib.h:538: previous declaration of `free'
libsandbox.c:1266: warning: data definition has no type or storage class
libsandbox.c:1267: parse error before `}'
libsandbox.c:1277: warning: type defaults to `int' in declaration of `absolute_path'
libsandbox.c:1277: warning: initialization makes integer from pointer without a cast
libsandbox.c:1277: warning: data definition has no type or storage class
libsandbox.c:1279: warning: type defaults to `int' in declaration of `__errno_location'
libsandbox.c:1279: function `__errno_location' is initialized like a variable
libsandbox.c:1279: `old_errno' undeclared here (not in a function)
libsandbox.c:1279: warning: data definition has no type or storage class
libsandbox.c:1281: parse error before `return'
make: *** [libsandbox.o] Error 1

!!! ERROR: sys-apps/portage-2.0.51-r3 failed.
!!! Function src_compile, Line 65, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

c2200 portage #

c2200 avifile # emerge info
Portage 2.0.51-r2 (default-1.0, gcc-2.95.3, glibc-2.2.5-r9, 2.6.10-rc1 i686)
=================================================================
System uname: 2.6.10-rc1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.18,sys-kernel/linux-headers-2.4.19-r1,sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O3 -pipe -ffast-math -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs digest distlocks noauto sandbox userpriv"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/gentoo-x86"
SYNC="rsync://localhost/gentoo-portage"
USE="3dnow X aalib acl alsa altivec apache2 apm arts avi berkdb bitmap-fonts bonobo cdr crypt cups dga directfb doc dts dvd encode esd f77 faad fam gd gdbm gif gnome gnome-libs gpm gtk gtk2 gtkhtml guile imap imlib innodb jack java jit joystick jpeg kde ldap libg++ libwww lirc mad matroska mbox mcal mikmod mmx motif mozilla mpeg mysql nas ncurses nls oav oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline ruby samba sasl sdl slang snmp speex spell sse ssl svga tcltk tcpd tetex theora tiff truetype x86 xml xml2 xmms xv zlib"
Comment 1 Brian Harring (RETIRED) gentoo-dev 2004-11-07 07:02:06 UTC
Ugh... people still use 2.95?
This is easily fixed, move the char *dpath declaration.
Forgot this was a c99 extension.
I'll fix this in cvs and patch the ebuild.
Try a sync in around 2-3 hours and it should be fixed.
Comment 2 Brian Harring (RETIRED) gentoo-dev 2004-11-07 07:21:26 UTC
Created attachment 43471 [details, diff]
libsandbox.so patch

Offhand, sandbox isn't compilable for gcc-2.95 at the moment- This patch fixed
things up locally, but I also didn't get the collection of errors you did.
Please try it out.
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2004-11-07 07:23:29 UTC
since the recomented compiler for kernel 2.6 is still 2.95, i don't upgrade this box
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2004-11-07 07:31:36 UTC
this works, thx
Comment 5 Brian Harring (RETIRED) gentoo-dev 2004-11-07 07:44:51 UTC
Adding it to the ebuild then.
Comment 6 Brian Harring (RETIRED) gentoo-dev 2004-11-07 08:15:39 UTC
Commited the patch to the tree.