Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 94783

Summary: xorg-x11-6.8.2-r1 emerge fails on xc/programs/xedit/lisp/realpath.c
Product: Gentoo Linux Reporter: Alan Somers <asomers>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED INVALID    
Severity: critical CC: plasmaroo
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alan Somers 2005-06-01 15:49:39 UTC
a syntax error results while compiling realpath.c .  The relevant output is:
i686-pc-linux-gnu-gcc -c -fno-strict-aliasing  -ansi -pedantic -Wno-return-type
-w  -I.. -Imp -Ire -I../..   -I../../.. -I../../../exports/include   -Dlinux
-D__i386__ -D_POSIX_C_SOURCE=199309L                                
-D_POSIX_SOURCE -D_XOPEN_SOURCE                          -D_BSD_SOURCE
-D_SVID_SOURCE             -D_GNU_SOURCE                            
-DFUNCPROTO=15 -DNARROWPROTO   -DLISP  -DLISPDIR='"/usr/lib/X11/xedit/lisp"'   
          -DNEED_REALPATH      realpath.c
In file included from mp/mp.h:38,
                 from math.h:36,
                 from mp/mp.h:33,
                 from ../lisp/internal.h:39,
                 from string.h:35,
                 from ../../../exports/include/X11/Xos.h:94,
                 from ../lisp/private.h:36,
                 from time.h:35,
                 from /usr/include/sys/types.h:133,
                 from /usr/include/sys/param.h:42,
                 from realpath.c:42:
/usr/include/stdlib.h:447: error: syntax error before "int32_t"
/usr/include/stdlib.h:448: error: ISO C forbids data definition with no type or
storage class
/usr/include/stdlib.h:449: error: syntax error before '*' token
/usr/include/stdlib.h:449: error: ISO C forbids data definition with no type or
storage class
/usr/include/stdlib.h:453: error: syntax error before '*' token
/usr/include/stdlib.h:453: error: ISO C forbids data definition with no type or
storage class
/usr/include/stdlib.h:454: error: syntax error before '}' token
/usr/include/stdlib.h:457: error: syntax error before "int32_t"
In file included from mp/mp.h:33,
                 from ../lisp/internal.h:39,
                 from string.h:35,
                 from ../../../exports/include/X11/Xos.h:94,
                 from ../lisp/private.h:36,
                 from time.h:35,
                 from /usr/include/sys/types.h:133,
                 from /usr/include/sys/param.h:42,
                 from realpath.c:42:
math.h:39: error: syntax error before '*' token
math.h:39: error: syntax error before '*' token
math.h:39: error: ISO C forbids data definition with no type or storage class
math.h:41: error: syntax error before '*' token
math.h:41: error: syntax error before '*' token
math.h:41: error: ISO C forbids data definition with no type or storage class
math.h:42: error: syntax error before '*' token
math.h:42: error: syntax error before '*' token
math.h:42: error: ISO C forbids data definition with no type or storage class
math.h:43: error: syntax error before '*' token
math.h:43: error: syntax error before '*' token
math.h:43: error: ISO C forbids data definition with no type or storage class
math.h:44: error: syntax error before '*' token
math.h:44: error: syntax error before '*' token
math.h:44: error: ISO C forbids data definition with no type or storage class
math.h:45: error: syntax error before '*' token
math.h:45: error: syntax error before '*' token
math.h:45: error: ISO C forbids data definition with no type or storage class
math.h:46: error: syntax error before '*' token
math.h:46: error: syntax error before '*' token
math.h:46: error: ISO C forbids data definition with no type or storage class
math.h:47: error: syntax error before '*' token
math.h:47: error: syntax error before '*' token
math.h:47: error: ISO C forbids data definition with no type or storage class
math.h:48: error: syntax error before '*' token
math.h:48: error: syntax error before '*' token
math.h:48: error: ISO C forbids data definition with no type or storage class
math.h:49: error: syntax error before '*' token
math.h:49: error: syntax error before '*' token
math.h:49: error: ISO C forbids data definition with no type or storage class
math.h:50: error: syntax error before '*' token
math.h:50: error: syntax error before '*' token
math.h:50: error: ISO C forbids data definition with no type or storage class
math.h:51: error: syntax error before '*' token
math.h:51: error: syntax error before '*' token
math.h:51: error: ISO C forbids data definition with no type or storage class
math.h:52: error: syntax error before '*' token
math.h:52: error: syntax error before '*' token
math.h:52: error: ISO C forbids data definition with no type or storage class
math.h:53: error: syntax error before '*' token
math.h:53: error: syntax error before '*' token
math.h:53: error: ISO C forbids data definition with no type or storage class
math.h:54: error: syntax error before '*' token
math.h:54: error: syntax error before '*' token
math.h:54: error: ISO C forbids data definition with no type or storage class
math.h:55: error: syntax error before '*' token
math.h:55: error: syntax error before '*' token
math.h:55: error: ISO C forbids data definition with no type or storage class
math.h:56: error: syntax error before '*' token
math.h:56: error: syntax error before '*' token
math.h:56: error: ISO C forbids data definition with no type or storage class
math.h:57: error: syntax error before '*' token
math.h:57: error: syntax error before '*' token
math.h:57: error: ISO C forbids data definition with no type or storage class
math.h:58: error: syntax error before '*' token
math.h:58: error: syntax error before '*' token
math.h:58: error: ISO C forbids data definition with no type or storage class
math.h:59: error: syntax error before '*' token
math.h:59: error: syntax error before '*' token
math.h:59: error: ISO C forbids data definition with no type or storage class
math.h:60: error: syntax error before '*' token
math.h:60: error: syntax error before '*' token
math.h:60: error: ISO C forbids data definition with no type or storage class
math.h:61: error: syntax error before '*' token
math.h:61: error: syntax error before '*' token
math.h:61: error: ISO C forbids data definition with no type or storage class
math.h:62: error: syntax error before '*' token
math.h:62: error: syntax error before '*' token
math.h:62: error: ISO C forbids data definition with no type or storage class
math.h:63: error: syntax error before '*' token
math.h:63: error: syntax error before '*' token
math.h:63: error: ISO C forbids data definition with no type or storage class
math.h:64: error: syntax error before '*' token
math.h:64: error: syntax error before '*' token
math.h:64: error: ISO C forbids data definition with no type or storage class
math.h:65: error: syntax error before '*' token
math.h:65: error: syntax error before '*' token
math.h:65: error: ISO C forbids data definition with no type or storage class
math.h:66: error: syntax error before '*' token
math.h:66: error: syntax error before '*' token
math.h:66: error: ISO C forbids data definition with no type or storage class
math.h:67: error: syntax error before '*' token
math.h:67: error: syntax error before '*' token
math.h:67: error: ISO C forbids data definition with no type or storage class
math.h:68: error: syntax error before '*' token
math.h:68: error: syntax error before '*' token
math.h:68: error: ISO C forbids data definition with no type or storage class
math.h:69: error: syntax error before '*' token
math.h:69: error: syntax error before '*' token
math.h:69: error: ISO C forbids data definition with no type or storage class
math.h:70: error: syntax error before '*' token
math.h:70: error: syntax error before '*' token
math.h:70: error: ISO C forbids data definition with no type or storage class
math.h:71: error: syntax error before '*' token
math.h:71: error: syntax error before '*' token
math.h:71: error: ISO C forbids data definition with no type or storage class
math.h:72: error: syntax error before '*' token
math.h:72: error: syntax error before '*' token
math.h:72: error: ISO C forbids data definition with no type or storage class
math.h:73: error: syntax error before '*' token
math.h:73: error: syntax error before '*' token
math.h:73: error: ISO C forbids data definition with no type or storage class
math.h:74: error: syntax error before '*' token
math.h:74: error: syntax error before '*' token
math.h:74: error: ISO C forbids data definition with no type or storage class
math.h:75: error: syntax error before '*' token
math.h:75: error: syntax error before '*' token
math.h:75: error: ISO C forbids data definition with no type or storage class
math.h:76: error: syntax error before '*' token
math.h:76: error: syntax error before '*' token
math.h:76: error: ISO C forbids data definition with no type or storage class
math.h:77: error: syntax error before '*' token
math.h:77: error: syntax error before '*' token
math.h:77: error: ISO C forbids data definition with no type or storage class
math.h:78: error: syntax error before '*' token
math.h:78: error: syntax error before '*' token
math.h:78: error: ISO C forbids data definition with no type or storage class
math.h:79: error: syntax error before '*' token
math.h:79: error: syntax error before '*' token
math.h:79: error: ISO C forbids data definition with no type or storage class
math.h:80: error: syntax error before '*' token
math.h:80: error: syntax error before '*' token
math.h:80: error: ISO C forbids data definition with no type or storage class
math.h:81: error: syntax error before '*' token
math.h:81: error: syntax error before '*' token
math.h:81: error: ISO C forbids data definition with no type or storage class
math.h:85: error: syntax error before '*' token
math.h:85: error: syntax error before '*' token
math.h:85: error: ISO C forbids data definition with no type or storage class
math.h:86: error: syntax error before '*' token
math.h:86: error: syntax error before '*' token
math.h:86: error: ISO C forbids data definition with no type or storage class
math.h:87: error: syntax error before '*' token
math.h:87: error: syntax error before '*' token
math.h:87: error: ISO C forbids data definition with no type or storage class
math.h:88: error: syntax error before '*' token
math.h:88: error: syntax error before '*' token
math.h:88: error: ISO C forbids data definition with no type or storage class
math.h:89: error: syntax error before '*' token
math.h:89: error: syntax error before '*' token
math.h:89: error: ISO C forbids data definition with no type or storage class
math.h:90: error: syntax error before '*' token
math.h:90: error: syntax error before '*' token
math.h:90: error: ISO C forbids data definition with no type or storage class
math.h:91: error: syntax error before '*' token
math.h:91: error: syntax error before '*' token
math.h:91: error: ISO C forbids data definition with no type or storage class
math.h:92: error: syntax error before '*' token
math.h:92: error: syntax error before '*' token
math.h:92: error: ISO C forbids data definition with no type or storage class
math.h:93: error: syntax error before '*' token
math.h:93: error: syntax error before '*' token
math.h:93: error: ISO C forbids data definition with no type or storage class
math.h:94: error: syntax error before '*' token
math.h:94: error: syntax error before '*' token
math.h:94: error: ISO C forbids data definition with no type or storage class
math.h:95: error: syntax error before '*' token
math.h:95: error: syntax error before '*' token
math.h:95: error: ISO C forbids data definition with no type or storage class
math.h:96: error: syntax error before '*' token
math.h:96: error: syntax error before '*' token
math.h:96: error: ISO C forbids data definition with no type or storage class
math.h:97: error: syntax error before '*' token
math.h:97: error: syntax error before '*' token
math.h:97: error: ISO C forbids data definition with no type or storage class
In file included from /usr/include/sys/stat.h:105,
                 from /usr/include/fcntl.h:37,
                 from ../../../exports/include/X11/Xos.h:167,
                 from ../lisp/private.h:36,
                 from time.h:35,
                 from /usr/include/sys/types.h:133,
                 from /usr/include/sys/param.h:42,
                 from realpath.c:42:
/usr/include/bits/stat.h:70: error: field `st_atim' has incomplete type
/usr/include/bits/stat.h:71: error: field `st_mtim' has incomplete type
/usr/include/bits/stat.h:72: error: field `st_ctim' has incomplete type
/usr/include/bits/stat.h:116: error: field `st_atim' has incomplete type
/usr/include/bits/stat.h:117: error: field `st_mtim' has incomplete type
/usr/include/bits/stat.h:118: error: field `st_ctim' has incomplete type
distcc[4852] ERROR: compile realpath.c on tantalum failed
make[5]: *** [realpath.o] Error 1
make[5]: Leaving directory
`/var/tmp/portage/xorg-x11-6.8.2-r1/work/xc/programs/xedit/lisp'
make[4]: *** [lisp] Error 2
make[4]: Leaving directory
`/var/tmp/portage/xorg-x11-6.8.2-r1/work/xc/programs/xedit'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.2-r1/work/xc/programs'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.2-r1/work/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.2-r1/work/xc'
make: *** [World] Error 2

!!! ERROR: x11-base/xorg-x11-6.8.2-r1 failed.
!!! Function build, Line 956, Exitcode 2
!!! make World failed
!!! If you need support, post the topmost build error, NOT this status message.

Reproducible: Always
Steps to Reproduce:
1.CFLAGS="" emerge -av '=x11-base/xorg-x11-6.8.2-r1'
2.
3.

Actual Results:  
syntax error compiling realpath.c

Expected Results:  
emerge should have completed successfully

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20040808-r1,
2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 15 2005, 01:11:10)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.4-r1
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer -ffast-math"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://toughguy.caltech.edu/pub/linux/gentoo
http://gentoo.binarycompass.org http://gentoo.osuosl.org/ http://gentoo.ccccom.com"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl eds emboss
encode esd fam foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2
imagemagick imlib ipv6 java jpeg libg++ libwww mad mikmod motif mozilla mp3 mpeg
mysql ncurses nis nls ogg oggvorbis opengl oss pam pdflib perl png python qt
quicktime readline sdl spell ssl svga tcpd tiff truetype truetype-fonts
type1-fonts vorbis xml2 xmms xv zlib video_cards_i915 userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2005-06-02 08:06:09 UTC
Which version of linux-headers do you have installed?
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2005-07-10 06:01:58 UTC
Donnie, from the emerge info:

virtual/os-headers:  2.4.22-r1

You need to update your headers, preferably to 2.6.11. If you still experience
issues, please reopen this bug.