Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56958 - net-fs/sfs fails to compile using gcc-3.3
Summary: net-fs/sfs fails to compile using gcc-3.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
: 68156 77890 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-13 14:15 UTC by Lonnie Olson
Modified: 2005-06-15 13:07 UTC (History)
6 users (show)

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


Attachments
sfs-gcc3.3 patch (patch-sfs-0.7.2-gcc3.3.diff,1.25 KB, patch)
2004-12-03 07:01 UTC, Andreas
Details | Diff
Not so tiny patch to fix problems with gcc 3.x (sfs-0.7.2-gcc3.patch,60.24 KB, patch)
2005-05-05 15:14 UTC, Maurice van der Pot (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lonnie Olson 2004-07-13 14:15:15 UTC
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"
Comment 1 Andreas 2004-12-03 07:01:05 UTC
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...
Comment 2 SpanKY gentoo-dev 2005-03-14 21:48:54 UTC
*** Bug 77890 has been marked as a duplicate of this bug. ***
Comment 3 SpanKY gentoo-dev 2005-03-14 22:07:25 UTC
*** Bug 68156 has been marked as a duplicate of this bug. ***
Comment 4 SpanKY gentoo-dev 2005-03-14 22:08:23 UTC
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
Comment 5 Maurice van der Pot (RETIRED) gentoo-dev 2005-05-05 15:14:44 UTC
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.
Comment 6 Maurice van der Pot (RETIRED) gentoo-dev 2005-06-15 13:07:22 UTC
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.