Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147269 - net-fs/sfs does not compile with gcc-4.1
Summary: net-fs/sfs does not compile with gcc-4.1
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 117482 119029
  Show dependency tree
 
Reported: 2006-09-12 00:16 UTC by Tobias
Modified: 2007-07-21 10:57 UTC (History)
3 users (show)

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


Attachments
sfs-0.8_pre20060720-r1.ebuild.diff (sfs-0.8_pre20060720-r1.ebuild.diff,1.27 KB, patch)
2006-11-27 17:31 UTC, Daniel Lin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias 2006-09-12 00:16:57 UTC
Sfs is uncompilable with the new default compiler (gcc-4.1). Looking through the sfs cvs, I find some checkins related to gcc-4.1. Could the ebuild please be updated? It's a blocker for my 'emerge -vae world' that the gcc-upgrade guide tells me to do.
Comment 1 Tobias 2006-09-12 00:20:21 UTC
Forgot to paste error message. This is the error-message.

/bin/sh ../libtool --mode=compile i686-pc-linux-gnu-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=athlon-xp -funroll-loops -pipe -Wall   -c aio.C
i686-pc-linux-gnu-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\" -DDAT
ADIR=\"/usr/share/sfs\" -DPIDDIR=\"/var/run\" -DSFSDIR=\"/var/sfs\" -O3 -march=athlon-xp -funroll-loops -pipe -Wall -c aio.C -o aio.o
aiod.h:41: error: ISO C++ forbids declaration of 'aiod' with no type
aiod.h:41: error: expected ';' before '*' token
aiod.h:48: error: expected `)' before '*' token
aiod.h:66: error: 'aiofh' was not declared in this scope
aiod.h:66: error: template argument 1 is invalid
aiod.h:66: error: template argument 2 is invalid
aiod.h:66: error: expected ';' before 'cbopen'
aiod.h:161: error: 'aiofh' was not declared in this scope
aiod.h:161: error: template argument 1 is invalid
aiod.h:161: error: 'cbopen' has not been declared
aiod.h:200: error: 'cbopen' has not been declared
aio.C:26: error: prototype for 'aiobuf::aiobuf(aiod*, size_t, size_t)' does not match any in class 'aiobuf'
aiod.h:44: error: candidate is: aiobuf::aiobuf(const aiobuf&)
aio.C: In constructor 'aiobuf::aiobuf(aiod*, size_t, size_t)':
aio.C:27: error: class 'aiobuf' does not have any field named 'iod'
aio.C:35: error: 'iod' was not declared in this scope
aio.C: In destructor 'aiobuf::~aiobuf()':
aio.C:48: error: 'iod' was not declared in this scope
aio.C:52: error: 'iod' was not declared in this scope
aio.C: At global scope:
aio.C:374: error: 'cbopen' has not been declared
aio.C:374: error: prototype for 'void aiod::open_cb(ref<aiofh>, int, ptr<aiobuf>)' does not match any in class 'aiod'
aiod.h:161: error: candidate is: static void aiod::open_cb(int, int, ptr<aiobuf>)
aio.C: In member function 'void aiod::open_cb(ref<aiofh>, int, ptr<aiobuf>)':
aio.C:377: error: invalid type argument of 'unary *'
aio.C:381: error: invalid type argument of 'unary *'
aio.C:383: error: invalid type argument of 'unary *'
aio.C: At global scope:
aio.C:464: error: prototype for 'void aiod::open(str, int, int, ref<callback<void, ptr<aiofh>, int, void> >)' does not match any in class 'aiod'
aiod.h:200: error: candidate is: void aiod::open(str, int, int, int)
aio.C: In member function 'void aiod::open(str, int, int, ref<callback<void, ptr<aiofh>, int, void> >)':
aio.C:475: error: no matching function for call to 'wrap(aiod* const, <unresolved overloaded function type>, str&, int&, int&, ref<callback<void, ptr<aiofh>, int, void> >&)'
aio.C: In member function 'void aiofh::rw(aiod_op, off_t, ptr<aiobuf>, u_int, u_int, ref<callback<void, ptr<aiobuf>, int, int> >)':
aio.C:575: error: 'class aiobuf' has no member named 'iod'
refcnt.h: In constructor 'refcounted<T, scalar>::refcounted(const A1&, const A2&, const A3&) [with A1 = aiod*, A2 = ssize_t, A3 = size_t, T = aiobuf]':
aio.C:394:   instantiated from here
refcnt.h:333: error: no matching function for call to 'aiobuf::aiobuf(aiod* const&, const int&, const unsigned int&)'
aiod.h:44: note: candidates are: aiobuf::aiobuf(const aiobuf&)
refcnt.h: In constructor 'refcounted<T, scalar>::refcounted(const A1&, const A2&, const A3&) [with A1 = aiod*, A2 = size_t, A3 = int, T = aiobuf]':
aio.C:399:   instantiated from here
refcnt.h:333: error: no matching function for call to 'aiobuf::aiobuf(aiod* const&, const unsigned int&, const int&)'
aiod.h:44: note: candidates are: aiobuf::aiobuf(const aiobuf&)
refcnt.h: In constructor 'refcounted<T, scalar>::refcounted(const A1&, const A2&, const A3&) [with A1 = void (*)(int, int, ptr<aiobuf>), A2 = ref<aiofh>, A3 = ref<callback<void, ptr<aiofh>, int, void> >, T = callback_1_2<void, ptr<aiobuf>, int, int>]':
callback.h:1035:   instantiated from 'refcounted<callback_1_2<R, B1, A1, A2>, scalar>* wrap(R (*)(A1, A2, B1), const AA1&, const AA2&) [with R = void, B1 = ptr<aiobuf>, A1 = int, AA1 = ref<aiofh>, A2 = int, AA2 = ref<callback<void, ptr<aiofh>, int, void> >]'
aio.C:491:   instantiated from here
refcnt.h:333: error: invalid conversion from 'aiofh*' to 'int'
refcnt.h:333: error:   initializing argument 2 of 'callback_1_2<R, B1, A1, A2>::callback_1_2(R (*)(A1, A2, B1), const A1&, const A2&) [with R = void, B1 = ptr<aiobuf>, A1 = int, A2 = int]'
callback.h:1035:   instantiated from 'refcounted<callback_1_2<R, B1, A1, A2>, scalar>* wrap(R (*)(A1, A2, B1), const AA1&, const AA2&) [with R = void, B1 = ptr<aiobuf>, A1 = int, AA1 = ref<aiofh>, A2 = int, AA2 = ref<callback<void, ptr<aiofh>, int, void> >]'
aio.C:491:   instantiated from here
refcnt.h:333: error: invalid conversion from 'callback<void, ptr<aiofh>, int, void>*' to 'int'
refcnt.h:333: error:   initializing argument 3 of 'callback_1_2<R, B1, A1, A2>::callback_1_2(R (*)(A1, A2, B1), const A1&, const A2&) [with R = void, B1 = ptr<aiobuf>, A1 = int, A2 = int]'
make[2]: *** [aio.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/sfs-0.7.2/work/sfs-0.7.2/async'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sfs-0.7.2/work/sfs-0.7.2'
make: *** [all-recursive-am] Error 2

!!! ERROR: net-fs/sfs-0.7.2 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  sfs-0.7.2.ebuild, line 53:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 2 Tobias 2006-09-12 00:22:46 UTC
Portage 2.1-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.16-gentoo-r9-blaster i686)
=================================================================
System uname: 2.6.16-gentoo-r9-blaster i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.12.4
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/yp"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe"
DISTDIR="/home/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ds.thn.htu.se/linux/gentoo/ http://trumpetti.atm.tut.fi/gentoo http://ds.thn.htu.se/linux/gentoo/"
LINGUAS="sv"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 7zip S3TC X509 aac accounting acl acpi acpi4linux adns altcolors apache2 apm audiofile autofs avi bash-completion berkdb bitmap-fonts boundschecking bzip2 caps chroot cjk clamd clearpasswd cli crypt dbi dlloader doc dri eds emboss encode enscript exiscan exiscan-acl expat ffmpeg foomaticdb fortran gcj gdbm gif gmp gnomedb gnutls gpgme graphviz gstreamer hardened iconv idea imap iproute2 ipv6 isdnlog java jbig jpeg lcms libg++ libwww lm_sensors mad maildir matroska mbox md5sum memlimit mikmod mldonkeypango mmap mmx modchat modlocalizer mono motif moznocompose moznoirc mp3 mpeg mppe-mppc mysql mysqli ncurses nis nls no-old-linux nowebdav nptl nptlonly objc offensive ogg pam pam-mysql pam_chroot pam_console pam_timestamp parse-clocks pcap pcre pdflib pear-db perl php pic png pppd pwdb python quicktime rc5 readline reflection regexp rrdtool sasl sdk sensord session shared slang smime sox spell spl sqlite sqlite3 sse ssl symlink sysfs tcpd threads truetype truetype-fonts type1-fonts udev unicode vorbis wmf xattr xfs xinetd xml xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux linguas_sv userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-09-12 00:34:40 UTC
(In reply to comment #0)
> Sfs is uncompilable with the new default compiler (gcc-4.1). Looking through
> the sfs cvs, I find some checkins related to gcc-4.1. Could the ebuild please
> be updated? It's a blocker for my 'emerge -vae world' that the gcc-upgrade
> guide tells me to do.
> 

Ask upstream to do a release. Last one is more than 3 years old and I highly doubt anyone will wade thru 3+ years of patches.
Comment 4 Daniel Lin 2006-11-27 17:31:05 UTC
Created attachment 102879 [details, diff]
sfs-0.8_pre20060720-r1.ebuild.diff

Until upstream makes a release, here's the snapshot that Debian uses.

Works for me.  The "LIBGMP=-lgmp" is a workaround for the fact that configure doesn't seem to set it properly, though I don't know why.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-05-12 08:03:42 UTC
Apparently noone's from net-fs interested; going to m-needed and CCing treecleaners.
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2007-05-13 02:38:47 UTC
i've added a snapshot to the tree, sfs-0.8.0_pre20070512.  it's package.masked as i've only build-tested it.  please try it and let us know if it works as expected.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-07-21 10:57:41 UTC
Please, test net-fs/sfs-0.8.0_pre20070512 and get back to us.