dhowett / fauxsu Goto Github PK
View Code? Open in Web Editor NEWA su that is faux. Not a fox. Not for lawsuits.
A su that is faux. Not a fox. Not for lawsuits.
makefiles/targets/Darwin/macosx.mk hardcodes gcc/g++-4.2, but that compiler was removed from Xcode several years ago. It should default to clang/clang++, or perhaps just cc/c++ (which currently points to clang).
On OS X 10.9, compiling fauxsu.cc fails with this error:
g++ -c -DTARGET_MACOSX=1 -O2 -I/sw/build.build/fauxsu-0.9-1/fauxsu-0.9/theos/include -include /sw/build.build/fauxsu-0.9-1/fauxsu-0.9/theos/Prefix.pch -Wall -arch i386 -arch x86_64 -Wno-format -Wno-sign-compare fauxsu.cc -o obj/macosx/fauxsu.cc.o
fauxsu.cc:126:12: error: use of undeclared identifier 'chown'
int ret = chown(path, owner, group);
^
fauxsu.cc:135:12: error: use of undeclared identifier 'fchown'
int ret = fchown(fildes, owner, group);
^
fauxsu.cc:144:12: error: use of undeclared identifier 'lchown'
int ret = lchown(path, owner, group);
^
fauxsu.cc:176:31: error: use of undeclared identifier 'PATH_MAX'
static char _persist_filename[PATH_MAX] = "";
^
fauxsu.cc:180:15: error: use of undeclared identifier 'getenv'
char *env = getenv("_FAUXSU_PERSIST_FILENAME");
^
fauxsu.cc:244:30: error: use of undeclared identifier 'chown'
{ (void *)my_chown, (void *)chown },
^
fauxsu.cc:245:31: error: use of undeclared identifier 'fchown'
{ (void *)my_fchown, (void *)fchown },
^
fauxsu.cc:246:31: error: use of undeclared identifier 'lchown'
{ (void *)my_lchown, (void *)lchown },
^
fauxsu.cc:250:30: error: use of undeclared identifier 'getuid'
{ (void*)my_getuid, (void *)getuid },
^
fauxsu.cc:251:31: error: use of undeclared identifier 'geteuid'
{ (void*)my_geteuid, (void *)geteuid },
^
fauxsu.cc:252:30: error: use of undeclared identifier 'getgid'
{ (void*)my_getgid, (void *)getgid },
^
fauxsu.cc:253:31: error: use of undeclared identifier 'getegid'
{ (void*)my_getegid, (void *)getegid },
^
12 errors generated.
The *id and *chown identifiers are fixed by #including <unistd.h>
, which is no longer implicitly added by the OS X 10.9 toolchain. getenv is satisfied with #include <stdlib.h>
. PATH_MAX needs #include <limits.h>
Thanks.
The .info file assumes 'sed' is the built-in BSD /usr/bin/sed. It should either hardcode /usr/bin/sed, or fix the syntax to work for both the system BSD sed or a 3rd party GNU sed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.