Building cURL: missing syscalls()

13 views
Skip to first unread message

arlindo...@gmail.com

unread,
Dec 24, 2008, 1:32:22 AM12/24/08
to NestedVM
Hi,

With a bit tweaking, I've been able to build cURL under NestedVM.
However, it does not not quite work because of missing syscalls. Here
is an example:

$ java curl -v http://opengrads.org/test_data/model.nc
* About to connect() to opengrads.org port 80 (#0)
* Trying 64.111.115.125... WARNING: Unknown fcntl command: 4
connected
* Connected to opengrads.org (64.111.115.125) port 80 (#0)
Attempted to use unknown syscall: 82
* Send failure: Function not implemented
* Failed sending HTTP request
* Connection #0 to host opengrads.org left intact
curl: (55) Send failure: Function not implemented
* Closing connection #0
---

At this point the code is attempting to send an HTTP request. Do you
have any comment as to whether implementing syscall "82" is feasible?

Thank you,

Arlindo




arlindo...@gmail.com

unread,
Dec 25, 2008, 9:15:11 AM12/25/08
to NestedVM
All,

Looking at UnixRuntime I realized that NestedVM defines sendto() and
recfrom() syscalls, but not the more basic send(), recv(). I was able
to patch libcurl to use sendto/recvfrom instead. So, I appear to have
a working cURL and libcurl! (I didn't bother enabling SSL at this
point.) For the record.

Arlindo


On Dec 24, 4:32 am, arlindo.dasi...@gmail.com wrote:
> Hi,
>
>   With a bit tweaking, I've been able to build cURL under NestedVM.
> However, it does not not quite work because of missing syscalls. Here
> is an example:
>
> $ java curl -vhttp://opengrads.org/test_data/model.nc

Adam Megacz

unread,
Jan 3, 2009, 8:30:04 PM1/3/09
to NestedVM

arlindo...@gmail.com writes:
> Looking at UnixRuntime I realized that NestedVM defines sendto() and
> recfrom() syscalls, but not the more basic send(), recv(). I was able
> to patch libcurl to use sendto/recvfrom instead. So, I appear to have
> a working cURL and libcurl! (I didn't bother enabling SSL at this
> point.) For the record.

This is great news, Arlindo! If you care to share your libcurl patch
with us, I can include it in the nestedvm source tree (I added a
#define for the "nestedvm platform" as you requested).

- a

Reply all
Reply to author
Forward
0 new messages