Build fails with this: gcc -o Xorg -march=i686 -O2 -pipe -ansi -pedantic -Wno-return-type -w -L../../exports/lib xkb/xf86KillSrv.o xkb/xf86VT.o xkb/xf86Private.o ../../programs/Xserver/hw/xfree86/common/xf86Init.o ../../programs/Xserver/hw/xfree86/common/xf86IniExt.o ../../programs/Xserver/hw/xfree86/common/libxf86.a ../../programs/Xserver/hw/xfree86/parser/libxf86config.a ../../programs/Xserver/hw/xfree86/os-support/libxf86_os.a ../../programs/Xserver/hw/xfree86/loader/libloader.a ../../programs/Xserver/hw/xfree86/common/libxf86.a dix/libdix.a os/libos.a ../../exports/lib/libXau.a ../../lib/font/fontbase.o ../../lib/font/libfontbase.a Xext/libexts.a xkb/libxkb.a Xi/libxinput.a lbx/liblbx.a ../../lib/lbxutil/liblbxutil.a ../../programs/Xserver/hw/xfree86/common/libxf86.a composite/libcomposite.a damageext/libdamage.a miext/damage/libdamage.a xfixes/libxfixes.a miext/cw/libcw.a Xext/libexts.a xkb/libxkb.a Xi/libxinput.a lbx/liblbx.a ../../lib/lbxutil/liblbxutil.a randr/librandr.a render/librender.a dix/libxpstubs.a mi/libmi.a composite/libcomposite.a damageext/libdamage.a miext/damage/libdamage.a xfixes/libxfixes.a miext/cw/libcw.a Xext/libexts.a xkb/libxkb.a Xi/libxinput.a lbx/liblbx.a ../../lib/lbxutil/liblbxutil.a randr/librandr.a render/librender.a ../../programs/Xserver/hw/xfree86/os-support/libxf86_os.a -lz -lm -lXau -lXdmcp -lXau -rdynamic -ldl -Wl,-rpath-link,../../exports/lib ../../programs/Xserver/hw/xfree86/loader/libloader.a(xf86sym.o)(.data+0x124c): undefined reference to `__stack_smash_handler' ../../programs/Xserver/hw/xfree86/loader/libloader.a(xf86sym.o)(.data+0x1254): undefined reference to `__guard' collect2: ld returned 1 exit status And yes, I know bug 73446 but although you say it is fixed, I get this error. grep __stack_smash_handler /lib/libc.so.6 yields nothing, as expected. $GCC_SPEC is empty Reproducible: Always Steps to Reproduce: Portage 2.0.51-r3 (default-linux/x86/gcc2, gcc-2.95.3, glibc-2.2.5-r9, 2.6.9 i686) ================================================================= System uname: 2.6.9 i686 AMD Athlon(tm) XP 1700+ Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux-headers-2.4.18 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=i686 -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /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/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=i686 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X acpi alsa arts berkdb bitmap-fonts cdr crypt cscope cups dvd dvdr f77 fam fortran gdbm gif gpm gtk2 imagemagick java jpeg kde ldap lesstif libwww mad maildir memlimit mmx motif ncurses nls oggvorbis opengl pam pdflib perl png qt readline samba sasl sdl slang smime speex spell sse ssl tetex tiff truetype unicode vim-with-x x86 xml xml2 xprint xv zlib"
It says it's fixed if you emerged glibc-2.3.4.20040808-r1.ebuild revision 1.16 or later. Please remerge your glibc (or switch to the ~x86 version) and try again. Also, the environment variable is GCC_SPECS not GCC_SPEC. If you have further comments, please follow up on bug #73446. *** This bug has been marked as a duplicate of 73446 ***
this guy is running a gcc-2.x system ... that means GCC_SPECS would have never made a diff on his system ...
Spanky, who would actually know something about how to fix this, then? I sure don't.
i will look at the xorg ebuild and see where this comes from, thanks for the bug report, Alex
Thanks pappy! If you get a chance, talk with tocharian about this -- he's lined up to be the main hardened X guy.
solar@gentoo.org says: fixed in -r4 test and report back the bug will be closed if no reply from you in 2*48 hours. have a nice day. Alex
-r4 is still p.masked. hardened never has a stable working xorg.
I'm looking forward to unmasking it in the near future, however.
Created attachment 45875 [details] USE="dlloader hardened" ACCEPT_KEYWORDS="~amd64" xorg-x11-6.8.0-r4 compile log testing hardened xorg-6.8.0-r4 on amd64... relaying results per solar's request
Comment on attachment 45875 [details] USE="dlloader hardened" ACCEPT_KEYWORDS="~amd64" xorg-x11-6.8.0-r4 compile log hardenedgentoo64 init.d # emerge info Portage 2.0.51-r8 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.7-hardened-r16 x86_64) ================================================================= System uname: 2.6.7-hardened-r16 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.7 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Dec 6 2004, 07:31:57)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3 sys-devel/binutils: 2.15.92.0.2-r1, 2.15.90.0.1.1-r3 sys-devel/libtool: 1.5.10-r1 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=k8 -mtune=k8 -O2 -pipe" CHOST="x86_64-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/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/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -mtune=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X X509 acl acpi alsa berkdb bitmap-fonts cap cjk cluster crypt cups dba dio directfb erandom esd ext-png ext-zlib extensions f77 fam flac font-server fortran ftp gd gdbm gif gnome gpm gtk gtk2 gtkhtml hardened hardenedphp image imagemagick imlib innodb ipv6 java javascript jp2 jpeg junit kde kerberos latex lcms ldap libwww lzw lzw-tiff maildir memlimit mixer mmap mng motif mozilla mozp3p mozsvg mozxmlterm mp3 mpeg mpeg4 mpi mplayer msn multilib mysql nas native ncurses netboot nis nls nptl nptlonly objc odbc oggvorbis openal opengl oss pam parse-clocks pcntl pcre pdflib perl pg-hier pg-intdatetime pg-vacuumdelay php physfs pic pie plotutils png posix postgres postgresql ppds private pthreads python qt readline ruby sasl sdl sftplogging shaper shared sharedmem silc slang sndfile snmp snortsam sockets softquota speex spl ssl svg sysvipc szip t1lib tcltk tcpd tcpmd5 tetex tga theora tiff truetype truetype-fonts type1-fonts unicode usb v4l2 vda wddx wmf wxwin wxwindows xanim xchatdccserver xchattext xgetdefault xine xml2 xmms xosd xpm xprint xrandr xscreensaver xv xvid xvmc yahoo yv12 zlib"
ok... Xorg -configure offered me allot more promise for the --guard issue being fixed as there were considerably less unresolved symbols and the server did not exit with fatal error 11... this may work. The remaining unresolved symbols were as follows dlopen: /usr/lib64/modules/drivers/atimisc_drv.so: undefined symbol: ATIPublicOptions (EE) Failed to load /usr/lib64/modules/drivers/atimisc_drv.so (EE) Failed to load module "atimisc" (loader failed, 7) dlopen: /usr/lib64/modules/drivers/apm_drv.so: undefined symbol: XvRTPort (EE) Failed to load /usr/lib64/modules/drivers/apm_drv.so (EE) Failed to load module "apm" (loader failed, 7) (++) Using config file: "/root/xorg.conf.new" (EE) NV(0): Cannot map V_BIOS Xorg is not able to detect your mouse. Edit the file and correct the Device. Your xorg.conf file is /root/xorg.conf.new To test the server, run 'X -config /root/xorg.conf.new'
after setup it appears that nvidia-glx does not work however Xorg -probeonly has one one remaining error hardenedgentoo64 init.d # Xorg -probeonly X Window System Version 6.8.0 Release Date: 8 September 2004 X Protocol Version 11, Revision 0, Release 6.8 Build Operating System: Linux 2.6.7-hardened-r16 x86_64 [ELF] Current Operating System: Linux hardenedgentoo64 2.6.7-hardened-r16 #1 Sun Dec 5 12:53:23 PST 2004 x86_64 Build Date: 12 December 2004 Before reporting problems, check http://wiki.X.Org to make sure that you have the latest version. Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Sun Dec 12 14:54:21 2004 (==) Using config file: "/etc/X11/xorg.conf" Using vt 7 (EE) NV(0): Cannot map V_BIOS
Created attachment 45878 [details] xorg logfiles
Sorry to tell you this but I already tried -r4 after -r3 did not work. And I can confirm, -r4 has the same problem for me. If you need the log from that too, I still have it.
I have the same compile problem here. Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r9 i686) ================================================================= System uname: 2.6.9-gentoo-r9 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.16 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /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="-march=pentium3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://mir.zyrianes.net/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="X Xaw3d acl apache2 apm avi bash-completion bitmap-fonts cdr crypt cups dbm divx4linux dvd dvdr emacs encode f77 fbcon flac foomaticdb fortran ftp gd gdbm ggi gif gnutls gpm gtk gtk2 imagemagick imap imlib jpeg lcms ldap leim libg++ libwww mad mikmod milter mime mng mozilla mpeg mysql mysqli ncurses nls odbc oggvorbis opengl oss pam pdflib perl php png posix ppds profile python quicktime readline recode samba sasl sdl shared sharedmem simplexml slang slp sndfile soap sockets socks5 spl ssl svga tcpd tetex theora tiff truetype unicode usb x86 xml2 xmlrpc xmms xpm xsl xv xvid zlib"
hardenedgentoo64 ~ # ps aux |grep X acidz0r 31002 0.0 0.1 4688 1228 tty1 S+ 05:56 0:00 /bin/sh /usr/X11R6/bin/startx acidz0r 31015 0.0 0.0 5572 752 tty1 S+ 05:56 0:00 xinit /etc/X11/xinit/xinitrc -- -nolisten tcp -br -deferglyphs 16 root 31016 0.9 1.1 136444 11340 ? S 05:56 0:02 X :0 -nolisten tcp -br -deferglyphs 16 acidz0r 31032 0.0 0.1 4404 1148 tty1 S 05:56 0:00 /bin/sh /etc/X11/Sessions/kde-3.3.2 acidz0r 31261 0.0 1.5 80516 16140 ? S 05:58 0:00 kdeinit: kio_file file /tmp/ksocket-acidz0r/klauncherxEEZdc.slave-socket /tmp/ksocket-acidz0r/kdesktopbg0Xib.slave-socket root 31304 0.0 0.0 2648 512 pts/6 R+ 06:01 0:00 grep X hardenedgentoo64 ~ # uname -a Linux hardenedgentoo64 2.6.7-hardened-r16 #1 Sun Dec 5 12:53:23 PST 2004 x86_64 AMD Athlon(tm) 64 Processor 3200+ AuthenticAMD GNU/Linux might not work on x86 but it's sure working on amd64 =]