Emerge of ebuild net-fs/sfs-0.7.2 fails during compile with the following error. Reproduced on 2 computers, one unstable and one stable. emerge sync then retried without success. Reproducible: Always Steps to Reproduce: 1.emerge -v sfs Actual Results: 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\" -O2 -mcpu=i686 -pipe -Wall -Werror -c pmap_prot.C -o pmap_prot.o cc1plus: warnings being treated as errors In file included from xdrmisc.h:81, from pmap_prot.h:7, from pmap_prot.C:7: rpctypes.h: In member function `rpc_vec<T, max>& rpc_vec<T, max>::set(const vec<T, NN>&)': rpctypes.h:179: warning: no return statement in function returning non-void make[2]: *** [pmap_prot.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/sfs-0.7.2/work/sfs-0.7.2/arpc' 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. !!! Function src_compile, Line 64, Exitcode 2 !!! (no error message)
Ok, that is a bug in sfs, tickled by gcc-3.2.3. Looking at their cvs log, they seem to have it covered. I changed the ebuild so that it doesn't add -Werror to the gcc calls. That should fix the symptom, and the real problem will be fixed with the next release. Please try and update if it fails for you.
This fix worked but the ebuild now fails for another reason. The code to add the user and group sfs is now not correct. The code I used sucessfully is: enewgroup sfs 71 enewuser sfs 71 /bin/false /dev/null sfs
Good point :) Actually, you can't assume that userid 71 is available. Anyway, I changed the ebuild along those lines. Guess I should test more :)