I am getting a error each time trying to upgrade kdebase-3.2.1. Here is the error: /bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=pentium3 -O3 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_GNU_SOURCE -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.2/lib -R /usr/kde/3.2/lib -R /usr/qt/3/lib -R /usr/X11R6/lib -o krandom.kss random.o -lkdeui -lm /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../Scrt1.o(.text+0x28): unresolvable relocation against symbol `main' collect2: ld returned 1 exit status make[2]: *** [kblankscrn.kss] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdebase-3.2.1/work/kdebase-3.2.1/kscreensaver' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdebase-3.2.1/work/kdebase-3.2.1' make: *** [all] Error 2 Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-r5) ================================================================= System uname: 2.4.22-gentoo-r5 i686 Pentium III (Katmai) Gentoo Base System version 1.4.3.13 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.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/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache fixpackages sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb bonobo cdr crypt cups curl encode esd flash foomaticdb gd gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg kde ldap libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl php png python qt quicktime readline sdl slang snmp spell ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xv zlib" Reproducible: Always Steps to Reproduce: 1. emerge -UuvD world 2. When it builds kdebase-3.2.1 it fails when linking kscreensaver Actual Results: The error reported above. Expected Results: Kdebase installed.
Hi, That is exactly the same problem that I have .... I am using gcc-3.3.2-r7 / glibc-2.3.2-r9 with -O3 and -march=pentium4 in the CFLAGS ... I tried using gcc-3.2.3-r2 instead -> no success Then I tried gcc-3.3.2-r7 with -O2 instead of -O3 -> no success Seems like it has to do with that Scrt1.o (->glibc) ..... ?!? (I found patches for this in glibc-2.3.3_pre20040207) Maybe I should give the glibc_2.3.3-betas a try ... But as there are almost no bug reports for this "kscreensaver" and kde-3.2.1 ist marked "stable", I am sure it _must_ compile on most other Gentoo's .... strange problem somehow ... :-)
Hi again, just FYI: I emerged glibc_2.3.3_pre20040207 / kdelibs-3.2.1 / "whole kde-3.2.1" over night and the kscreensaver-problem was gone .... So with the pre-glibc it seemed to work for me and for now. Don't know if there will be any other issues due to glibc, but I will see. Anyway I will try to re-test with glibc-2.3.2-r9 again as soon as I have some time "left". There must be something wrong somewhere :-(
Created attachment 28498 [details, diff] solve the build problem with PORTAGE_TMPDIR changed This patch solv the build problem with PORTAGE_TMPDIR changed. The problem is due to a previously positioned ernno so it can be solve by setting errno to 0 (like advised in fr man) before mkdir call and errno test (in kdebase-3.2.1/kdm/kfrontend/genkdmconf.c).
Has the patch from Stany Marcel been applied to the kdebase-3.2.1.ebuild file?
it's been fixed in the latest portage and kdebase-3.2.2.