weyrick / roadsend-php Goto Github PK
View Code? Open in Web Editor NEWOriginal Roadsend PHP compiler/implementation
Original Roadsend PHP compiler/implementation
Hey there. I got it configured, but it didnt compile:
gcc -c clientinfo.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include
clientinfo.c: In function ‘__ILWS_Query’:
clientinfo.c:225: warning: cast to pointer from integer of different size
clientinfo.c:277: warning: cast to pointer from integer of different size
clientinfo.c:292: warning: cast to pointer from integer of different size
clientinfo.c:329: warning: cast from pointer to integer of different size
clientinfo.c:329: warning: cast from pointer to integer of different size
clientinfo.c: In function ‘__ILWS_Post’:
clientinfo.c:429: warning: pointer targets in assignment differ in signedness
clientinfo.c:430: warning: pointer targets in assignment differ in signedness
clientinfo.c:431: warning: cast to pointer from integer of different size
clientinfo.c:482: warning: cast to pointer from integer of different size
clientinfo.c:508: warning: pointer targets in assignment differ in signedness
clientinfo.c:509: warning: pointer targets in assignment differ in signedness
gcc -c server.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include
server.c: In function ‘handle_new_connection’:
server.c:414: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness
gcc -c client.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include
gcc -c gethandler.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include
gcc -c socket.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include
gcc -c memory.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include
gcc -c outstream.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include
gcc -c weblog.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include
gcc -c utils.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include
utils.c: In function ‘__ILWS_stristr’:
utils.c:26: warning: cast from pointer to integer of different size
utils.c:26: warning: cast from pointer to integer of different size
gcc -c fnmatch.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include
gcc -c outgif.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include
gcc -c error.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include
gcc clientinfo.o server.o client.o gethandler.o socket.o memory.o outstream.o weblog.o utils.o fnmatch.o outgif.o error.o -r -dynamiclib -undefined dynamic_lookup -single_module -o libwebserver.dylib
ld: warning: unexpected dylib (/usr/lib/libSystem.dylib) on link line
0 0x10bf8d098 __assert_rtn + 144
1 0x10bfd8682 std::__1::map<ld::File const*, ld::File::Ordinal, std::__1::less<ld::File const*>, std::__1::allocator<std::__1::pair<ld::File const* const, ld::File::Ordinal> > >::operator[](ld::File const* const&) + 0
2 0x10bfd835f ld::tool::SectionRelocationsAtom<x86_64>::sectSymNum(bool, ld::Atom const*) + 45
3 0x10bfcdabb ld::tool::SectionRelocationsAtom<x86_64>::encodeSectionReloc(ld::Internal::FinalSection*, ld::tool::SectionRelocationsAtom<x86_64>::Entry const&, std::__1::vector<macho_relocation_info<Pointer64<LittleEndian> >, std::__1::allocator<macho_relocation_info<Pointer64<LittleEndian> > > >&) + 77
4 0x10bfef0a2 ld::tool::SectionRelocationsAtom<x86_64>::encode() + 62
5 0x10bfd3340 ld::tool::OutputFile::updateLINKEDITAddresses(ld::Internal&) + 420
6 0x10bfcf030 ld::tool::OutputFile::write(ld::Internal&) + 136
7 0x10bf8d4d7 main + 713
8 0x10bf7ecd4 start + 52
A linker snapshot was created at:
/tmp/libwebserver.dylib-2013-08-13-141220.ld-snapshot
ld: Assertion failed: (_machoSection != 0), function machoSection, file /SourceCache/ld64/ld64-136/src/ld/ld.hpp, line 641.
collect2: ld returned 1 exit status
make[4]: *** [all] Error 1
make[3]: *** [all] Error 2
make[2]: *** [../libs/libwebserver.dylib] Error 2
make[1]: *** [tools] Error 2
make: *** [unsafe] Error 2
What's going wrong here? Do I have "too new" libraries?
Regards.
Hi,
I want to use this tool to compile my PHP code into native C.
I can't manage to compile it under ubuntu 12.04
was installting bigloo3.2a.tar.gz
and when compile I get make[4]: *** [php-curl_u.o] Error 1
File "php-curl.scm", line 450, character 14741:
Type error -- procedure' expected,
bool' provided
File "php-curl.scm", line 727, character 24569:
Was wondering if u can say what the status of this project.
I also tried to use PHC and HipHop, but failed to use them.
PHC didn't manage to compile my code as I wanted. HipHop is not good cli tools written in PHP.
My code is around 800K, and using HipHop make it 29MB!
Maybe u have an idea?
Thanks
Sassy
Hi, Mr. Shannon Weyrick,
For a long time I have been looking for solutions focus on compiling PHP code (both for performance and source code protection purpose). And I found Roadsend PHP might be a very promising choice among others I could find. In other words I prefer Roadsend personally although you developed it about 10 years ago. It's really awesome.
At the same time I have noticed the Roadsend uses LGPL license. According to my roughly evaluation, if I would like to use Roadsend in my current project, I still have a series of things to do, such as modify the current Roadsend source code to suit for the latest OS (say, Ubuntu 18.04 or 20.04) and tools (BigIoo new version etc.). Seems a lot :).
To avoid possible potential risks, could you please let me know if I could do not open the source code when I have done the work mentioned above? i.e., using another license model?
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.