Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10271 - x11-base/xfree-4.2.1-r1 fails to build
Summary: x11-base/xfree-4.2.1-r1 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Mark Guertin
URL:
Whiteboard:
Keywords:
: 10340 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-05 10:00 UTC by Lapo Calamandrei
Modified: 2006-02-04 06:03 UTC (History)
3 users (show)

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


Attachments
xf86.h (xf86.h,15.15 KB, text/plain)
2002-11-05 13:17 UTC, Lapo Calamandrei
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lapo Calamandrei 2002-11-05 10:00:29 UTC
gcc 2.95.3, portage 2.0.43

This is the otput:

gcc -c -O2 -pipe -mcpu=750 -fsigned-char    -I. -I../include
-I../../../exports/include/X11 -I../../../include/extensions 	
-I../../../include/fonts -I../mi -I../render
-I../../../programs/Xserver/hw/xfree86/common -I../../../include/fonts  		 
-I../../.. -I../../../exports/include   -Dlinux -D__powerpc__
-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE
-D_SVID_SOURCE  -D_GNU_SOURCE  -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP
-DXCSECURITY -DTOGCUP  -DXF86BIGFONT -DDPMSExtension  -DPIXPRIV -DPANORAMIX 
-DRENDER  -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA
-DXvExtension -DXFree86LOADER  -DXFree86Server -DXF86VIDMODE -DXvMCExtension 
-DSMART_SCHEDULE -DBUILDDEBUG -DXResExtension -DX_BYTE_ORDER=X_BIG_ENDIAN
-DNDEBUG  -DFUNCPROTO=15 -DNARROWPROTO   -DMITMISC -DXTEST -DXTRAP -DXSYNC
-DXCMISC -DXRECORD  -DMITSHM  -DBIGREQS -DXF86VIDMODE -DXF86MISC -DDBE
-DDPMSExtension -DEVI -DSCREENSAVER -DXV -DXVMC -DGLXEXT -DXF86DRI
-DGLX_DIRECT_RENDERING -DGLX_USE_DLOPEN -DGLX_USE_MESA  -DFONTCACHE  -DRES  
xf86vmode.c
In file included from ../../../programs/Xserver/hw/xfree86/common/xf86.h:17,
                 from xf86vmode.c:47:
../../../programs/Xserver/hw/xfree86/common/xf86str.h:621: parse error before `.'
../../../programs/Xserver/hw/xfree86/common/xf86str.h:1010: warning: This file
contains more `}'s than `{'s.
In file included from xf86vmode.c:47:
../../../programs/Xserver/hw/xfree86/common/xf86.h:398: warning: This file
contains more `}'s than `{'s.
make[4]: *** [xf86vmode.o] Error 1
make[4]: Leaving directory
`/var/tmp/portage/xfree-4.2.1-r1/work/xc/programs/Xserver/Xext'
make[3]: *** [Xext] Error 2
make[3]: Leaving directory
`/var/tmp/portage/xfree-4.2.1-r1/work/xc/programs/Xserver'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/var/tmp/portage/xfree-4.2.1-r1/work/xc/programs'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/var/tmp/portage/xfree-4.2.1-r1/work/xc'
make: *** [install] Error 2
Comment 1 Mark Guertin 2002-11-05 10:23:15 UTC
trying this on my setup at work right now, with gcc 3.2 (I have no more 2.95.3 
boxes) 
Comment 2 Lapo Calamandrei 2002-11-05 10:27:27 UTC
emerge info output:

Portage 2.0.43 (default-ppc-1.0, gcc-2.95.3, glibc-2.2.5-r4,2.2.5-r7)
=================================================================
System uname: 2.4.19-r6 ppc 
USE="png ppc gnome-libs arts aalib guile scanner oss slang readline gpm berkdb
gdbm tcpd pam libwww ssl mitshm perl python esd gif imlib sdl oggvorbis gnome
gtk X qt kde motif mozilla truetype vte -alsa bonobo cdr crypth dga dvd evo
fbcon flash gb gphoto2 gtkhtml imap java jpeg mpeg nls opengl -pcmcia pdflib
quicktime wmf xml xml2 xv zlib doc spell"
ARCH="ppc"
COMPILER=""
CHOST="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring"
CXXFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring"
ACCEPT_KEYWORDS="ppc ~ppc"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
MAKEOPTS="-j2"
JDK_HOME="/opt/blackdown-jdk-1.3.1"
JAVA_HOME="/opt/blackdown-jdk-1.3.1"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
Comment 3 Mark Guertin 2002-11-05 10:46:02 UTC
I am getting a failed patch ATM, can't test.  
 
files/4.2.1-r1/108_all_4.2.1-xterm-enable-backspace.patch: no such file or 
directory 
 
...there is not a 4.2.1-r1 folder, maybe something you are working on azarah? 
 
 
Comment 4 Mark Guertin 2002-11-05 11:41:22 UTC
okie I have that folder now, my bad (stupid cvsrc went missing it seems), 
testing now 
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-05 11:56:35 UTC
It builds fine on x86 with gcc-2.95.3, so its possible that this is a ppc
only problem, or fs corruption?  You dont maybe have htree for ext3 enabled,
as I ran into some bad mojo myself with HTREE ...
Comment 6 Lapo Calamandrei 2002-11-05 12:28:07 UTC
Is the HTREE patch in ppc-sources (2.4.19-r6)?
I run a 2.4.19-r6 kernel.
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-05 12:55:23 UTC
Next is line 618-624 of ${S}/programs/Xserver/hw/xfree86/common/xf86.h :

--------------------------------------------------
/* resource record */
typedef struct _resRec *resPtr;
typedef struct _resRec {
    resRange    val;
    int     entityIndex;    /* who owns the resource */
    resPtr  next;
} resRec;
---------------------------------------------------

There is no '.', which wants to add to my suspicion of either data
corruption, or a bad gcc bug.

Can you attach you copy of:

  /var/tmp/portage/xfree-4.2.1-r1/work/xc/programs/Xserver/hw/xfree86/common/xf86.h


Thanks.
Comment 8 Mark Guertin 2002-11-05 13:15:27 UTC
The parse error comes from this group it seems...

xc/programs/Xserver/hw/xfree86/common/xf86str.h

lines 618-624:

define RANGE(r,u,v,t,d) {\
                       (r).a = (u);\
                       (r).b = (v);\
                       (r).type = (t);\
                       }
#endif

I've deleted the spaces after line 620 as per azarahs.request, let you know how
it goes

Comment 9 Lapo Calamandrei 2002-11-05 13:17:04 UTC
Created attachment 5392 [details]
xf86.h
Comment 10 Lapo Calamandrei 2002-11-05 13:55:56 UTC
the previous ebuild works fine, the only patch that touches that file is 
061_ppc_4.2.0-pci-domains-from-cvs.patch
which isn't in xfree-4.2.1 which worked fine here, so this *must* be the problem.
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-05 14:04:59 UTC
Ok, added 110_all_4.2.1-xf86_h-missing-bracket-fix.patch to fix this, thanks
guys !
Comment 12 Mark Guertin 2002-11-05 14:08:55 UTC
Yep the missing } worked ok, closing this bug
Comment 13 SpanKY gentoo-dev 2002-11-07 01:23:17 UTC
*** Bug 10340 has been marked as a duplicate of this bug. ***
Comment 14 Joe McMahon 2002-11-07 09:27:39 UTC
Similar file (spaces removed) worked here too. Thanks all!