Problem with Curb 0.3.2

58 views
Skip to first unread message

Florian

unread,
Apr 1, 2009, 2:46:24 PM4/1/09
to Curb - Ruby libcurl Bindings
Hi,
I am encountering problems with Curb:
Passenger ApplicationSpawner: /www/vinos: symbol lookup error: /usr/
lib/ruby/gems/1.8/gems/curb-0.3.2/lib/curb_core.so: undefined symbol:
curl_global_init

Is this a known bug?

Thanks,
Florian

Florian

unread,
Apr 1, 2009, 3:12:06 PM4/1/09
to Curb - Ruby libcurl Bindings
When trying to build against the latest libcurl, I get this error:
....................................................................../
usr/bin/ruby: symbol lookup error: /opt/taf2-
curb-0a4fd75422141a6c6e77eb237b9238eee9035d4b/ext/curb_core.so:
undefined symbol: RSTRING_PTR
rake aborted!

Thanks,
Florian

Todd Fisher

unread,
Apr 1, 2009, 8:25:01 PM4/1/09
to curb---ruby-li...@googlegroups.com
Florian,
 
   Can you try rebuilding with the attached patch:

patch -p0 < rstring_ptr.patch

Thanks,
Todd
rstring_ptr.patch

Florian

unread,
Apr 2, 2009, 1:24:48 PM4/2/09
to Curb - Ruby libcurl Bindings
Hi Todd,
thanks for your response. with a previous version, that ran on the box
just fine (0.1.4), I had the problem that cookies that were set via
"Set-Cookie" didn't seem to be used at all - i.e. upon inspecting the
headers of the connection, I didn't find any even though I had
explicitly enabled cookies - is this fixed in the current version?
It's not really hard to do this manually, but this was the main reason
for me to switch to the new version of curb.

the unit tests don't seem to pass:

Finished in 0.17543 seconds.

1) Error:
test_download_bad_url_gives_404(TestCurbCurlDownload):
Curl::Err::ConnectionFailedError: couldn't connect to server
/opt/taf2-curb-0a4fd75422141a6c6e77eb237b9238eee9035d4b/lib/
curb.rb:40:in `perform'
/opt/taf2-curb-0a4fd75422141a6c6e77eb237b9238eee9035d4b/lib/
curb.rb:40:in `download'
/opt/taf2-curb-0a4fd75422141a6c6e77eb237b9238eee9035d4b/lib/
curb.rb:33:in `open'
/opt/taf2-curb-0a4fd75422141a6c6e77eb237b9238eee9035d4b/lib/
curb.rb:33:in `download'
./tests/tc_curl_download.rb:22:in
`test_download_bad_url_gives_404'

2) Error:
test_download_url_to_file(TestCurbCurlDownload):
Curl::Err::ConnectionFailedError: couldn't connect to server
/opt/taf2-curb-0a4fd75422141a6c6e77eb237b9238eee9035d4b/lib/
curb.rb:40:in `perform'
/opt/taf2-curb-0a4fd75422141a6c6e77eb237b9238eee9035d4b/lib/
curb.rb:40:in `download'
/opt/taf2-curb-0a4fd75422141a6c6e77eb237b9238eee9035d4b/lib/
curb.rb:33:in `open'
/opt/taf2-curb-0a4fd75422141a6c6e77eb237b9238eee9035d4b/lib/
curb.rb:33:in `download'
./tests/tc_curl_download.rb:14:in `test_download_url_to_file'

3) Error:
test_delete_remote(TestCurbCurlEasy):
Curl::Err::ConnectionFailedError: couldn't connect to server
./tests/tc_curl_easy.rb:479:in `http_delete'
./tests/tc_curl_easy.rb:479:in `test_delete_remote'

4) Error:
test_get_remote(TestCurbCurlEasy):
Curl::Err::ConnectionFailedError: couldn't connect to server
./tests/tc_curl_easy.rb:467:in `http_get'
./tests/tc_curl_easy.rb:467:in `test_get_remote'

5) Error:
test_head_remote(TestCurbCurlEasy):
Curl::Err::ConnectionFailedError: couldn't connect to server
./tests/tc_curl_easy.rb:485:in `http_head'
./tests/tc_curl_easy.rb:485:in `test_head_remote'

6) Error:
test_post_remote(TestCurbCurlEasy):
Curl::Err::ConnectionFailedError: couldn't connect to server
./tests/tc_curl_easy.rb:473:in `http_post'
./tests/tc_curl_easy.rb:473:in `test_post_remote'

7) Error:
test_put_remote(TestCurbCurlEasy):
Curl::Err::ConnectionFailedError: couldn't connect to server
./tests/tc_curl_easy.rb:495:in `http_put'
./tests/tc_curl_easy.rb:495:in `test_put_remote'

74 tests, 338 assertions, 0 failures, 7 errors
rake aborted!
Command failed with status (1): [/usr/bin/ruby -I"/opt/taf2-
curb-0a4fd75422...]

(See full trace by running task with --trace)



On Apr 1, 5:25 pm, Todd Fisher <todd.fis...@gmail.com> wrote:
> Florian,
>    Can you try rebuilding with the attached patch:
>
> patch -p0 < rstring_ptr.patch
>
> Thanks,
> Todd
>
> On Wed, Apr 1, 2009 at 3:12 PM, Florian <floleib...@gmail.com> wrote:
>
> > When trying to build against the latest libcurl, I get this error:
> > ....................................................................../
> > usr/bin/ruby: symbol lookup error: /opt/taf2-
> > curb-0a4fd75422141a6c6e77eb237b9238eee9035d4b/ext/curb_core.so:
> > undefined symbol: RSTRING_PTR
> > rake aborted!
>
> > Thanks,
> > Florian
>
> > On Apr 1, 11:46 am, Florian <floleib...@gmail.com> wrote:
> > > Hi,
> > > I am encountering problems with Curb:
> > > Passenger ApplicationSpawner: /www/vinos: symbol lookup error: /usr/
> > > lib/ruby/gems/1.8/gems/curb-0.3.2/lib/curb_core.so: undefined
> > symbol:curl_global_init
>
> > > Is this a known bug?
>
> > > Thanks,
> > > Florian
>
>  rstring_ptr.patch
> < 1KViewDownload

Todd Fisher

unread,
Apr 2, 2009, 2:34:51 PM4/2/09
to curb---ruby-li...@googlegroups.com
look for a file in test/server_lock-*

rm test/server_lock-*

-Todd

Florian

unread,
Apr 2, 2009, 4:15:42 PM4/2/09
to Curb - Ruby libcurl Bindings
thanks, but that didn't fix the problem :/

On Apr 2, 11:34 am, Todd Fisher <todd.fis...@gmail.com> wrote:
> look for a file in test/server_lock-*
>
> rm test/server_lock-*
>
> -Todd
>

Florian

unread,
Apr 2, 2009, 4:24:27 PM4/2/09
to Curb - Ruby libcurl Bindings
Hey Todd,
while you have a look at this ~ is it possible to also send multipart-
forms without sending a file? Alternatively, it'd be great if there
was a way to do "raw" post sends, i.e. i can pass in a string like
this: "\r\n--AaB03x\r\nContent-Disposition: form-data; name=\"user\"\r
\n\r\nsFKePKrnWL\r\n--AaB03x--\r\n"

- afaik, there is currently no way to do this...

Thanks,

Florian

unread,
Apr 2, 2009, 4:28:28 PM4/2/09
to Curb - Ruby libcurl Bindings
Sorry ~ my "multipart_form_post" was true, that explains why I
couldn't sent plain :).
Reply all
Reply to author
Forward
0 new messages