Jun, If you pull my master now, the applications/fcgi/fcgi.sh script should work. Once it's running, try hitting http://localhost:8888/applications/fcgi/index.js in your web browser.
I actually removed the examples/ folder from my repo, in favor of applications/, which houses a few different things. It probably only refused to delete it because you had uncommitted changes in fcgi.sh. Thanks for the heads up about librt and libiconv. Although, doesn't the curl module require the iconv() function? Does librt supply that? If there's a way to get away from using libiconv entirely, I'd be psyched, because it's kind of a mess, especially on Mac platforms. Check out the ugly version-sniffing hack in curl.cpp. This thread is getting pretty far astray from v8. If you have any further questions, maybe it'd be better to post an issue on http://k7js.org or email Sèbastien or me off-list. --i On Mar 29, 6:54 am, Jun <[email protected]> wrote: > On Mar 28, 11:59 am, Jun <[email protected]> wrote: > > > > > On Mar 27, 2:44 pm, "Isaac Z. Schlueter" <[email protected]> wrote: > > > > Jun, > > > > Sèbastien is right. I've been a bit sloppily hacking away on this > > > thing, but it seems like it's time to start trying to maintain a more > > > visible/stable project so that people like you can iterate on this and > > > hopefully contribute some useful stuff :) > > > > I know that I ran into this and did something to fix it, but I'm not > > > sure what that was at this point. You're welcome to pull > > > fromhttp://github.com/isaacs/k7 > > > I tried your version and it built well (had to add -lrt and remove - > > liconv on my Ubuntu Dapper system). But example/fcgi.sh doesn't run > > because files are missing from that directory. May try a little more > > later. > > After I copied examples/*.{conf,js}, the FastCGI example worked! > Thanks! > > > Jun > > Jun > > > > now, if you don't mind my crazy stuff in > > > there, or you can wait until Sèbastien has had a chance to review my > > > changes and integrate them into his repo, which should be a bit more > > > stable. My current priority is to stabilize and bring my master more > > > in sync with Sèbastien's, so we should have a more consistent codebase > > > moving forward. (Maybe a week or two?) > > > > If you find any other bugs, please post them tohttp://k7js.org. > > > We're working on a process for maintaining a central stable branch, > > > and documentation and whatnot, but it's still very new at this point. > > > > --i > > > > On Mar 27, 9:35 am, Sébastien Pierre <[email protected]> > > > wrote: > > > > > Hi Jun, > > > > > This post may be a little bit off-topic as it's K7 and not V8-related, > > > > but I'm replying here for now. > > > > > Le Fri, 27 Mar 2009 08:15:57 -0700, > > > > Jun Yang <[email protected]> a écrit : > > > > > > Then I tried k7 executable itself and found curl and fastcgi both > > > > > missing: > > > > > > $ ./k7 > > > > > ReferenceError: system is not defined > > > > > ReferenceError: has is not defined > > > > > K7/V8 version 1.1.3 > > > > > > for (var p in net.http.server) print(p); > > > > > shttpd > > > > > > for (var p in net.http.client) print(p); > > > > > On my machine, I have > > > > > $ ./k7 > > > > ReferenceError: __module__ is not defined > > > > ReferenceError: time is not defined > > > > K7/V8 version 1.1.3> for (var p in net.http.server) print(p); > > > > > shttpd > > > > fcgi> for (var p in net.http.client) print(p) > > > > > curl > > > > > There is a problem with some references being garbage-collected (in > > > > your case, system and has, in my case __module__ and time), and we're > > > > looking into that. It's likely that fcgi and curl modules got garbage > > > > collected as well. If you want to make sure they are loaded, you can > > > > add a printf in " lib/net/http/server/fcgi.cpp" MODULE block. > > > > > I can only suggest that in the meantime you try a previous version, > > > > such as version "06c73900fad62b2b6d92ac21d9afbc7990494741". > > > > > Sorry for that, it's a priority for us to fix this ! > > > > > -- Sébastien --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
