x86_64-pc-linux-gnu-gcc -O2 -pipe -march=k8 -mtune=k8 -fno-strict-aliasing -ansi -pedantic -Wno-return-type -w -I../.. -I../../exports/include -Dlinux - D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DFUNCPROTO=15 -DNARROWPROTO - DBINDIR=\"/usr/bin\" -DXDMDIR=\"/etc/X11/xdm\" - DHASXDMAUTH -DUSESHADOW -DUSE_PAM -DUNIXCONN -DTCPCONN - DHAS_STICKY_DIR_BIT -DHAS_FCHOWN -DIPv6 -DGREET_USER_STATIC - DDEV_RANDOM=\"/dev/random\" -DOSMAJORVERSION=2 - DOSMINORVERSION=6 -DXPM -DUSE_XINERAMA -DHAS_MKSTEMP -fPIC -c -o Login.o Login.c Login.c:52:21: LoginP.h: No such file or directory Login.c:67: error: parse error before "w" Login.c:68: error: parse error before "w" Login.c:85: error: `LoginRec' undeclared here (not in a function) Login.c:85: error: parse error before ')' token Login.c:85: error: initializer element is not constant Login.c:85: error: (near initialization for `resources[4].resource_offset') Login.c:85: error: initializer element is not constant Login.c:85: error: (near initialization for `resources[4]') Login.c:86: error: `XtNpromptColor' undeclared here (not in a function) Login.c:86: error: initializer element is not constant Login.c:86: error: (near initialization for `resources[5].resource_name') Login.c:87: error: parse error before ')' token Login.c:87: error: initializer element is not constant Login.c:87: error: (near initialization for `resources[5].resource_offset') ... ... ... edit xc/programs/xdm/greeter/Login.c to change line 52 from: # include "LoginP.h" to # include "greeter/LoginP.h" Reproducible: Always Steps to Reproduce: 1.Run an emerge of xorg-x11-6.8.2-r4 that fails mysteriously to compile xdm 2.go into the /var/tmp/portage/xorg-x11-6.8.2-r4/work/xc/programs/xdm directory and try the make again 3.watch the compile fail on Login.c (after fixing other bugs in includes) looking for include of LoginP.h Actual Results: The compile failed with a lot of messages. Expected Results: compiled cleanly. Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.3, glibc-2.3.5-r1, 2. 6.11-hardened-r15 x86_64) ================================================================= System uname: 2.6.11-hardened-r15 x86_64 AMD Athlon(tm) 64 Processor 3400+ Gentoo Base System version 1.6.13 ccache version 2.3 [disabled] dev-lang/python: 2.3.5-r2 sys-apps/sandbox: 1.2.12 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.6 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=k8 -mtune=k8" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/ share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb / usr/lib64/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -march=k8 -mtune=k8" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/ distributions/gentoo" LINGUAS="en gb" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage" USE="amd64 X avi berkdb bitmap-fonts cdr crypt cups curl eds emboss encode esd fam foomaticdb fortran ftp gif gnome gpm gstreamer gtk gtk2 hardened imlib ipv6 jpeg kde lzw lzw-tiff md5 mozilla mp3 mpeg ncurses nls opengl pam pdflib perl png python qt quicktime readline samba sdl spell ssl tcpd tiff truetype-fonts type1-fonts usb userlocales xml2 xpm xv zlib linguas_en linguas_gb userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Created attachment 68885 [details, diff] patch to greeter/Login.c for xorg-x11-6.8.2-r4 xc/programs/xdm
OK, stop please and post the fixed to one bug... Thanks. *** This bug has been marked as a duplicate of 106715 ***