Giter VIP home page Giter VIP logo

sfslite's Introduction

DEPRECATED

SFSLITE is deprecated. No more development will be taking place. Thank you for contributing!

SFSLITE README

$Id$

SFSLITE HOWTO

  • Based on David Mazieres's SFS (see www.fs.net)

  • Build requires GMP version 4 or higher

If from SVN, then you need the GNU autotool suite, with libtool/libtoolize:

	$ sh -x setup.gnu -f -i -s
	$ ./configure
	$ gmake
	$ gmake install

If from a release tarball, then just:

	$ ./configure
	$ gmake
	$ gmake install

This will install with the default build options: -O2 with static linkage, and no dmalloc support. Different build options accessed like:

	$ ./configure --with-mode=shdbg

etc, where the modes are:

	shdbg:	shared build, with dmalloc support, no compiler optimization
	shared: shared build, no compiler optimization
	shopt:	shared build, -O2
	debug:  static build, with dmalloc support, no compiler optimization
	deflt:	static build, -O2, no dmalloc

This library was also available as a port for FreeBSD, but I fell behind and had trouble navigating the Ports bureaucracy. If you depend on the FreeBSD port and would like to help me out, please drop me a line.

Max Krohn (first name AT okws DOT org)

sfslite's People

Contributors

andrewrk avatar benbrittain avatar brian-plummer-okcupid avatar dfkoh avatar egwynn avatar jonathan-brannan-okcupid avatar maxtaco avatar mmaxim avatar s4y avatar srinigithub avatar tejacques avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sfslite's Issues

Compilation error (missing yyget_fileno())

I get the following error when I try to compile the last commit baa49b8

 /opt/centos/devtoolset-1.1/root/usr/bin/g++ -g -Wall -Werror -Wno-mismatched-tags -Wno-overloaded-virtual -Wno-unused-private-field -Wno-unused --std=gnu++0x -o .libs/tame tame.o parse.o scan.o processor.o const.o output.o  ../async/.libs/libasync.so -lnsl -lresolv -lpcre  -Wl,--rpath -Wl,/usr/local/lib/sfslite-1.2/shdbg
 parse.o: In function `yyparse()':
 /usr/local/src/sfslite/tame/./parse.yy:110: undefined reference to `yyget_lineno()'
 /usr/local/src/sfslite/tame/./parse.yy:127: undefined reference to `yyget_lineno()'
 /usr/local/src/sfslite/tame/./parse.yy:135: undefined reference to `yyget_lineno()'
 /usr/local/src/sfslite/tame/./parse.yy:137: undefined reference to `yyget_lineno()'
 /usr/local/src/sfslite/tame/./parse.yy:161: undefined reference to `yyget_lineno()'
 parse.o:/usr/local/src/sfslite/tame/./parse.yy:201: more undefined references to `yyget_lineno()' follow
 collect2: error: ld returned 1 exit status
 make[3]: *** [tame] Error 1
 make[3]: Leaving directory `/usr/local/src/sfslite/tame'
 make[2]: *** [all] Error 2
 make[2]: Leaving directory `/usr/local/src/sfslite/tame'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/usr/local/src/sfslite'
 make: *** [all] Error 2

Here is Bison version:

 → bison --version 
 bison (GNU Bison) 3.0.3

And Flex version

 → flex --version
 flex 2.5.39

Other tools are:

  • autoconf and automake is updated to the last stable version
  • GCC is in the version 4.7.2
  • CentOS 5.9 64bits

error: 'auto_auth& auto_auth::operator=(const auto_auth&)' is private

In file included from ../../sfsmisc/nfsserv.h:37:0,
from ../../sfsmisc/sfsclient.h:28,
from ../../sfsmisc/sfsclient.C:24:
../../async/qhash.h: In instantiation of 'void qhash<K, V, H, E, R, kludge>::insert(const K&, typename unref_t::ref_type) [with K = long unsigned int; V = auto_auth; H = hashfn; E = equals; R = qhash_lookup_return<auto_auth>; ihash_entry<qhash_slot<K, V> > qhash_slot<K, V>::* kludge = &qhash_slot<long unsigned int, auto_auth>::link; typename unref_t::ref_type = const auto_auth&]':
../../sfsmisc/sfsclient.C:833:1: required from here
../../arpc/arpc.h:74:14: error: 'auto_auth& auto_auth::operator=(const auto_auth&)' is private
auto_auth &operator= (const auto_auth &);
^
In file included from ../../arpc/rpctypes.h:34:0,
from ../../arpc/xdrmisc.h:84,
from ../../arpc/arpc.h:30,
from ../../sfsmisc/nfsserv.h:37,
from ../../sfsmisc/sfsclient.h:28,
from ../../sfsmisc/sfsclient.C:24:
../../async/qhash.h:132:16: error: within this context
s->value = v;
^

configure error

I have an configure error: can't find pcre.h anywhere. How can I correctly build sfslite? Thanks

Failed to MAKE rpcc/.scan.ll

Hi,

I tried this on Ubuntu 12.04
Make fails with the following output

./parse.cc:1:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
cc1plus: warning: unrecognized command line option "-Wno-unused-private-field" [enabled by default]
cc1plus: warning: unrecognized command line option "-Wno-mismatched-tags" [enabled by default]
g++ -DHAVE_CONFIG_H -I. -I.. -I../async -I../crypt -I /include -I.. -DSUPPORT_UTF8=1 -I../libsafeptr -I../arpc -I../sfsmisc -I../libtame -I../libaapp -I../libaapp -I../libtame -I../async -I../svc -I../crypt -I../svc -DEXECDIR="/usr/local/lib/sfslite-1.2" -DETCDIR="/etc/sfs" -DDATADIR="/usr/local/share/sfslite" -DPIDDIR="/var/run" -DSFSDIR="/var/sfs" -g -O2 -Wall -Werror -Wno-mismatched-tags -Wno-overloaded-virtual -Wno-unused-private-field --std=gnu++0x -Wno-error -c ./scan.cc
./scan.ll: In function ‘int yylex()’:
./scan.ll:56:8: error: ‘T_CONST’ was not declared in this scope
./scan.ll:57:8: error: ‘T_STRUCT’ was not declared in this scope
./scan.ll:58:8: error: ‘T_UNION’ was not declared in this scope
./scan.ll:59:8: error: ‘T_ENUM’ was not declared in this scope
./scan.ll:60:8: error: ‘T_TYPEDEF’ was not declared in this scope
./scan.ll:61:8: error: ‘T_PROGRAM’ was not declared in this scope
./scan.ll:62:8: error: ‘T_NAMESPACE’ was not declared in this scope
./scan.ll:64:8: error: ‘T_UNSIGNED’ was not declared in this scope
./scan.ll:65:8: error: ‘T_INT’ was not declared in this scope
./scan.ll:66:8: error: ‘T_HYPER’ was not declared in this scope
./scan.ll:67:8: error: ‘T_DOUBLE’ was not declared in this scope
./scan.ll:68:8: error: ‘T_QUADRUPLE’ was not declared in this scope
./scan.ll:69:31: error: ‘T_VOID’ was not declared in this scope
./scan.ll:71:8: error: ‘T_VERSION’ was not declared in this scope
./scan.ll:72:8: error: ‘T_SWITCH’ was not declared in this scope
./scan.ll:73:8: error: ‘T_CASE’ was not declared in this scope
./scan.ll:74:8: error: ‘T_DEFAULT’ was not declared in this scope
./scan.ll:76:31: error: ‘T_OPAQUE’ was not declared in this scope
./scan.ll:77:31: error: ‘T_STRING’ was not declared in this scope
./scan.ll:93:31: error: ‘T_ID’ was not declared in this scope
./scan.ll:95:31: error: ‘T_NUM’ was not declared in this scope
lex.yy.c: At global scope:
lex.yy.c:1438:17: warning: ‘void yyunput(int, char*)’ defined but not used [-Wunused-function]

Am I missing any tool?

Thanks,
Raghu.

compile error

errors show as blow: can you help me
In file included from arandom.c:24:
sysconf.h: In function ‘getpeereid’:
sysconf.h:462: error: storage size of ‘cred’ isn’t known
cc1: warnings being treated as errors
sysconf.h:462: error: unused variable ‘cred’

complie error bigint.h

i got the error when i use : make
bigint.h: In member function ‘void mpdelayed<bigint, mpdelayed<A, B, C> >::getres(MP_INT*) const’:
bigint.h:367:31: error: cannot convert ‘const A {aka const bigint}’ to ‘const MP_INT* {aka const __mpz_struct*}’ in argument passing
{ b.getres (r); f (r, a, r); }
^
At global scope:
image
can you please help me ?
my system is ubuntu 18.04

crypt/pm.C does not compile

Gcc is invovked with -Werror and -Wall through libtool, resulting in four errors exactly like:
pm.C:72:57: error: narrowing conversion of '255' from 'int' to 'const char' inside { } is ill-formed in C++11 [-Werror=narrowing]
to remedy this, cast all of the 0xFF's in line 72 of crypt/pm.C to chars:
static const char match[4] = { (char) 0xFF, (char) 0xFF, (char) 0xFF, (char) 0xFF};
If you'd like, I can put up a PKGBUILD in the AUR shortly afer you post the fix.
thanks,
Jimmy

Compilation errors

Hi,
I was unable to successfully install the package downloaded via .zip archive. I receive this compilation error and do not understand why:

sfsconst_stub.C: In function ‘void sfsconst_init(bool)’:
sfsconst_stub.C:394:20: error: ignoring return value of ‘int setgid(__gid_t)’, declared with attribute warn_unused_result [-Werror=unused-result]
setgid (sfs_gid);
^
sfsconst_stub.C:395:22: error: ignoring return value of ‘int setuid(__uid_t)’, declared with attribute warn_unused_result [-Werror=unused-result]
setuid (sb.st_uid);
^
At global scope:
cc1plus: error: unrecognized command line option ‘-Wno-unused-private-field’ [-Werror]
cc1plus: error: unrecognized command line option ‘-Wno-mismatched-tags’ [-Werror]

Can you please help me?
Thanks in advance
Antonio

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.