sfs fails to compile due to gcc 3.3 being more picky. See bug 51857 http://bugs.gentoo.org/show_bug.cgi?id=51857 for details on rezound that had the same issue. Reproducible: Always Steps to Reproduce: 1. emerge sfs Actual Results: <snip> /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../async -I../arpc -I../crypt -I../sfsmisc -I../sfsrodb -I../adb -I../svc -I../svc -DEXECDIR=\"//lib/sfs-0.7.2\" -DETCDIR=\"/etc/sfs\" -DDATADIR=\"/usr/share/sfs\" -DPIDDIR=\"/var/run\" -DSFSDIR=\"/var/sfs\" -O3 -march=i686 -funroll-loops -pipe -Wall -c sfsclient.C g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../async -I../arpc -I../crypt -I../sfsmisc -I../sfsrodb -I../adb -I../svc -I../svc -DEXECDIR=\"//lib/sfs-0.7.2\" -DETCDIR=\"/etc/sfs\" -DDATADIR=\"/usr/share/sfs\" -DPIDDIR=\"/var/run\" -DSFSDIR=\"/var/sfs\" -O3 -march=i686 -funroll-loops -pipe -Wall -c sfsclient.C -o sfsclient.o In file included from sfsclient.h:33, from sfsclient.C:24: sfscrypt.h: In constructor `sfspub::sfspub(sfs_keytype, unsigned char, const str&)': sfscrypt.h:53: error: uninitialized member 'sfspub::eksb_id' with 'const' type 'const int' make[2]: *** [sfsclient.lo] Error 1 <snip> Expected Results: emerge successfully installed sfs $ emerge info Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.5-gentoo) ================================================================= System uname: 2.6.5-gentoo i686 AMD Athlon(TM) XP 1900+ Gentoo Base System version 1.5.1 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=i686 -funroll-loops -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/lib/mozilla/defaults/pref /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="-O3 -march=i686 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache 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="/usr/local/bmg-main" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb bonobo crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pda pdflib perl php png postgres python qt quicktime readline ruby sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xinerama xml2 xmms xv zlib"
Created attachment 45204 [details, diff] sfs-gcc3.3 patch this removes the const declarations that make no sense to me. Maybe it would be better to initialize the corresponding variables with proper values...
*** Bug 77890 has been marked as a duplicate of this bug. ***
*** Bug 68156 has been marked as a duplicate of this bug. ***
looks like we just need an upstream release ... i guess all of this crap has been fixed in cvs if someone feels like ripping a patch, i'll add it, but i hate C++ ;p
Created attachment 58162 [details, diff] Not so tiny patch to fix problems with gcc 3.x It would be nice if people could try it out and do some tests with sfs, because I just made sure it built. Oh yeah, guess we'll have to put this one in distfiles if it's added.
It's a real shame that this ebuild that has been marked stable did not even compile, but at least that should be fixed now. However, I have no way of really testing this. Feedback would be appreciated greatly.