librelist archives

« back to archive

binject.c and (maybe) archlinux 64-bit

binject.c and (maybe) archlinux 64-bit

From:
D.p.
Date:
2010-07-09 @ 19:54
Hi, dear all

I`m stuck on compiling shoes with those progs:
rake, version 0.8.7
ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
gcc (GCC) 4.5.0 20100610 (prerelease)
archlinux 64-bit, kernel 2.6.33.5-brainfuck

Error was:
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I.  -fPIC -march=native -m64
-mtune=native -O2 -pipe  -fPIC  -Iincludes -DRUBY_1_8   -c binject.c
binject.c: In function 'binject_exe_file_copy1':
binject.c:336:8: warning: assignment makes pointer from integer without a cast
binject.c:345:14: error: 'rb_io_t' has no member named 'fd'
make: *** [binject.o] Error 1

What do I need to have the compilation done? Please, any suggestions.

Also I corrected the line in the Rakefile:
require_relative 'platform/skel' to require 'platform/skel'
because
$ gem install extensions
and then:
require 'extensions/all'
before require_relative
did nothing.

This error do not depend of VIDEO variable.

//Dimitri

Re: [shoes] binject.c and (maybe) archlinux 64-bit

From:
Steve Klabnik
Date:
2010-07-09 @ 20:22
Shoes requires Ruby 1.9.1.  Give that a shot?

Re: [shoes] binject.c and (maybe) archlinux 64-bit

From:
ashbb
Date:
2010-07-10 @ 00:41
Hi Dimitri,

Oh, you might find a bug in the case of building Shoes with Ruby 1.8. :)

> binject.c:345:14: error: 'rb_io_t' has no member named 'fd'
This is occured in function 'binject_exe_file_copy1'.

The binject_exe_file_copy1 is a function just only for Ruby 1.9.1 MinGW on
Windows. No need for Linux.

Look at req/binject/ext/binject_c/binject.c, line 488-496:
http://github.com/ashbb/shoes/blob/master/req/binject/ext/binject_c/binject.c

Can you try to add ifdef and build again?
I think it's okay like this:

#ifdef RUBY_1_9
void binject_exe_file_copy1
{
  .....
}
#endif

As Steve mentioned, we are now developing Shoes with Ruby 1.9.1.
My developing environment is for Ruby 1.9.1.
So, I'll appreciate if you confirm above solution. ;-)

Thanks,
ashbb

Re: [shoes] binject.c and (maybe) archlinux 64-bit

From:
ccoupe@cableone.net
Date:
2010-07-10 @ 05:03
I thought we had #ifdefs for both 1.8.7 and 1.9.1  for 
binject.c.   (I have a binject.c that compiles both). Sadly, I'm
away from my home machine for a week or two so I can't fix it before 
then.<BR>
<BR>
 <BR>
<BR>
<span style="font-weight: bold;">On Fri Jul  9 18:41 , ashbb 
<ashbbb@gmail.com> sent:<BR>
<BR>
</ashbbb@gmail.com></span><blockquote style="border-left: 2px solid 
rgb(245, 245, 245); margin-left: 5px; margin-right: 0px; padding-left: 
5px; padding-right: 0px;">Hi Dimitri,<BR>
<BR>
Oh, you might find a bug in the case of building Shoes with Ruby 1.8. :)<BR>
<BR>
<span style="font-weight: bold;">></span> binject.c:345:14: error: 
'rb_io_t' has no member named 'fd'<BR>
This is occured in function 'binject_exe_file_copy1'.<BR>

<BR>
The binject_exe_file_copy1 is a function just only for Ruby 1.9.1 MinGW on
Windows. No need for Linux.<BR>
<BR>
Look at req/binject/ext/binject_c/binject.c, line 488-496:<BR>
<a target="_blank" 
href="http://github.com/ashbb/shoes/blob/master/req/binject/ext/binject_c/binject.c">http://github.com/ashbb/shoes/blob/master/req/binject/ext/binject_c/binject.c</a><BR>

<BR>
Can you try to add ifdef and build again?<BR>
I think it's okay like this:<BR>
<BR>
#ifdef RUBY_1_9<BR>
void binject_exe_file_copy1<BR>
{<BR>
  .....<BR>
}<BR>
#endif<BR>
<BR>
As Steve mentioned, we are now developing Shoes with Ruby 1.9.1.<BR>

My developing environment is for Ruby 1.9.1.<BR>
So, I'll appreciate if you confirm above solution. ;-)<BR>
<BR>
Thanks,<BR>
ashbb<BR>
<BR>

</blockquote><BR><hr>Msg sent via CableONE.net MyMail - http://www.cableone.net

Re: [shoes] binject.c and (maybe) archlinux 64-bit

From:
Devyn Cairns
Date:
2010-07-10 @ 06:48
Whoa, your email got really messed up ;-) Perhaps it is somehow linked to "Msg
sent via CableONE.net MyMail" ? I've never trusted ISP webmail interfaces…

On Fri, Jul 9, 2010 at 10:03 PM, ccoupe@cableone.net <ccoupe@cableone.net>wrote:

> I thought we had #ifdefs for both 1.8.7 and 1.9.1  for
> binject.c.   (I have a binject.c that compiles both). Sadly, I'm
> away from my home machine for a week or two so I can't fix it before
> then.<BR>
> <BR>
>  <BR>
> <BR>
> <span style="font-weight: bold;">On Fri Jul  9 18:41 , ashbb <
> ashbbb@gmail.com> sent:<BR>
> <BR>
> </ashbbb@gmail.com></span><blockquote style="border-left: 2px solid
> rgb(245, 245, 245); margin-left: 5px; margin-right: 0px; padding-left: 5px;
> padding-right: 0px;">Hi Dimitri,<BR>
> <BR>
> Oh, you might find a bug in the case of building Shoes with Ruby 1.8.
> :)<BR>
> <BR>
> <span style="font-weight: bold;">></span> binject.c:345:14: error:
> 'rb_io_t' has no member named 'fd'<BR>
> This is occured in function 'binject_exe_file_copy1'.<BR>
>
> <BR>
> The binject_exe_file_copy1 is a function just only for Ruby 1.9.1 MinGW on
> Windows. No need for Linux.<BR>
> <BR>
> Look at req/binject/ext/binject_c/binject.c, line 488-496:<BR>
> <a target="_blank" href="
> http://github.com/ashbb/shoes/blob/master/req/binject/ext/binject_c/binject.c
> ">
> http://github.com/ashbb/shoes/blob/master/req/binject/ext/binject_c/binject.c
> </a><BR>
>
> <BR>
> Can you try to add ifdef and build again?<BR>
> I think it's okay like this:<BR>
> <BR>
> #ifdef RUBY_1_9<BR>
> void binject_exe_file_copy1<BR>
> {<BR>
>   .....<BR>
> }<BR>
> #endif<BR>
> <BR>
> As Steve mentioned, we are now developing Shoes with Ruby 1.9.1.<BR>
>
> My developing environment is for Ruby 1.9.1.<BR>
> So, I'll appreciate if you confirm above solution. ;-)<BR>
> <BR>
> Thanks,<BR>
> ashbb<BR>
> <BR>
>
> </blockquote><BR><hr>Msg sent via CableONE.net MyMail -
> http://www.cableone.net
>



-- 
    ~devyn

Re: [shoes] binject.c and (maybe) archlinux 64-bit

From:
Devyn Cairns
Date:
2010-07-10 @ 06:48
Whoa, your email got really messed up ;-) Perhaps it is somehow linked to "Msg
sent via CableONE.net MyMail" ? I've never trusted ISP webmail interfaces…

On Fri, Jul 9, 2010 at 10:03 PM, ccoupe@cableone.net <ccoupe@cableone.net>wrote:

> I thought we had #ifdefs for both 1.8.7 and 1.9.1  for
> binject.c.   (I have a binject.c that compiles both). Sadly, I'm
> away from my home machine for a week or two so I can't fix it before
> then.<BR>
> <BR>
>  <BR>
> <BR>
> <span style="font-weight: bold;">On Fri Jul  9 18:41 , ashbb <
> ashbbb@gmail.com> sent:<BR>
> <BR>
> </ashbbb@gmail.com></span><blockquote style="border-left: 2px solid
> rgb(245, 245, 245); margin-left: 5px; margin-right: 0px; padding-left: 5px;
> padding-right: 0px;">Hi Dimitri,<BR>
> <BR>
> Oh, you might find a bug in the case of building Shoes with Ruby 1.8.
> :)<BR>
> <BR>
> <span style="font-weight: bold;">></span> binject.c:345:14: error:
> 'rb_io_t' has no member named 'fd'<BR>
> This is occured in function 'binject_exe_file_copy1'.<BR>
>
> <BR>
> The binject_exe_file_copy1 is a function just only for Ruby 1.9.1 MinGW on
> Windows. No need for Linux.<BR>
> <BR>
> Look at req/binject/ext/binject_c/binject.c, line 488-496:<BR>
> <a target="_blank" href="
> http://github.com/ashbb/shoes/blob/master/req/binject/ext/binject_c/binject.c
> ">
> http://github.com/ashbb/shoes/blob/master/req/binject/ext/binject_c/binject.c
> </a><BR>
>
> <BR>
> Can you try to add ifdef and build again?<BR>
> I think it's okay like this:<BR>
> <BR>
> #ifdef RUBY_1_9<BR>
> void binject_exe_file_copy1<BR>
> {<BR>
>   .....<BR>
> }<BR>
> #endif<BR>
> <BR>
> As Steve mentioned, we are now developing Shoes with Ruby 1.9.1.<BR>
>
> My developing environment is for Ruby 1.9.1.<BR>
> So, I'll appreciate if you confirm above solution. ;-)<BR>
> <BR>
> Thanks,<BR>
> ashbb<BR>
> <BR>
>
> </blockquote><BR><hr>Msg sent via CableONE.net MyMail -
> http://www.cableone.net
>



-- 
    ~devyn

Re: [shoes] binject.c and (maybe) archlinux 64-bit

From:
Devyn Cairns
Date:
2010-07-10 @ 06:48
Whoa, your email got really messed up ;-) Perhaps it is somehow linked to "Msg
sent via CableONE.net MyMail" ? I've never trusted ISP webmail interfaces…

On Fri, Jul 9, 2010 at 10:03 PM, ccoupe@cableone.net <ccoupe@cableone.net>wrote:

> I thought we had #ifdefs for both 1.8.7 and 1.9.1  for
> binject.c.   (I have a binject.c that compiles both). Sadly, I'm
> away from my home machine for a week or two so I can't fix it before
> then.<BR>
> <BR>
>  <BR>
> <BR>
> <span style="font-weight: bold;">On Fri Jul  9 18:41 , ashbb <
> ashbbb@gmail.com> sent:<BR>
> <BR>
> </ashbbb@gmail.com></span><blockquote style="border-left: 2px solid
> rgb(245, 245, 245); margin-left: 5px; margin-right: 0px; padding-left: 5px;
> padding-right: 0px;">Hi Dimitri,<BR>
> <BR>
> Oh, you might find a bug in the case of building Shoes with Ruby 1.8.
> :)<BR>
> <BR>
> <span style="font-weight: bold;">></span> binject.c:345:14: error:
> 'rb_io_t' has no member named 'fd'<BR>
> This is occured in function 'binject_exe_file_copy1'.<BR>
>
> <BR>
> The binject_exe_file_copy1 is a function just only for Ruby 1.9.1 MinGW on
> Windows. No need for Linux.<BR>
> <BR>
> Look at req/binject/ext/binject_c/binject.c, line 488-496:<BR>
> <a target="_blank" href="
> http://github.com/ashbb/shoes/blob/master/req/binject/ext/binject_c/binject.c
> ">
> http://github.com/ashbb/shoes/blob/master/req/binject/ext/binject_c/binject.c
> </a><BR>
>
> <BR>
> Can you try to add ifdef and build again?<BR>
> I think it's okay like this:<BR>
> <BR>
> #ifdef RUBY_1_9<BR>
> void binject_exe_file_copy1<BR>
> {<BR>
>   .....<BR>
> }<BR>
> #endif<BR>
> <BR>
> As Steve mentioned, we are now developing Shoes with Ruby 1.9.1.<BR>
>
> My developing environment is for Ruby 1.9.1.<BR>
> So, I'll appreciate if you confirm above solution. ;-)<BR>
> <BR>
> Thanks,<BR>
> ashbb<BR>
> <BR>
>
> </blockquote><BR><hr>Msg sent via CableONE.net MyMail -
> http://www.cableone.net
>



-- 
    ~devyn

Re: [shoes] binject.c and (maybe) archlinux 64-bit

From:
Devyn Cairns
Date:
2010-07-10 @ 06:48
Whoa, your email got really messed up ;-) Perhaps it is somehow linked to "Msg
sent via CableONE.net MyMail" ? I've never trusted ISP webmail interfaces…

On Fri, Jul 9, 2010 at 10:03 PM, ccoupe@cableone.net <ccoupe@cableone.net>wrote:

> I thought we had #ifdefs for both 1.8.7 and 1.9.1  for
> binject.c.   (I have a binject.c that compiles both). Sadly, I'm
> away from my home machine for a week or two so I can't fix it before
> then.<BR>
> <BR>
>  <BR>
> <BR>
> <span style="font-weight: bold;">On Fri Jul  9 18:41 , ashbb <
> ashbbb@gmail.com> sent:<BR>
> <BR>
> </ashbbb@gmail.com></span><blockquote style="border-left: 2px solid
> rgb(245, 245, 245); margin-left: 5px; margin-right: 0px; padding-left: 5px;
> padding-right: 0px;">Hi Dimitri,<BR>
> <BR>
> Oh, you might find a bug in the case of building Shoes with Ruby 1.8.
> :)<BR>
> <BR>
> <span style="font-weight: bold;">></span> binject.c:345:14: error:
> 'rb_io_t' has no member named 'fd'<BR>
> This is occured in function 'binject_exe_file_copy1'.<BR>
>
> <BR>
> The binject_exe_file_copy1 is a function just only for Ruby 1.9.1 MinGW on
> Windows. No need for Linux.<BR>
> <BR>
> Look at req/binject/ext/binject_c/binject.c, line 488-496:<BR>
> <a target="_blank" href="
> http://github.com/ashbb/shoes/blob/master/req/binject/ext/binject_c/binject.c
> ">
> http://github.com/ashbb/shoes/blob/master/req/binject/ext/binject_c/binject.c
> </a><BR>
>
> <BR>
> Can you try to add ifdef and build again?<BR>
> I think it's okay like this:<BR>
> <BR>
> #ifdef RUBY_1_9<BR>
> void binject_exe_file_copy1<BR>
> {<BR>
>   .....<BR>
> }<BR>
> #endif<BR>
> <BR>
> As Steve mentioned, we are now developing Shoes with Ruby 1.9.1.<BR>
>
> My developing environment is for Ruby 1.9.1.<BR>
> So, I'll appreciate if you confirm above solution. ;-)<BR>
> <BR>
> Thanks,<BR>
> ashbb<BR>
> <BR>
>
> </blockquote><BR><hr>Msg sent via CableONE.net MyMail -
> http://www.cableone.net
>



-- 
    ~devyn

Re: [shoes] binject.c and (maybe) archlinux 64-bit

From:
Devyn Cairns
Date:
2010-07-10 @ 06:48
Whoa, your email got really messed up ;-) Perhaps it is somehow linked to "Msg
sent via CableONE.net MyMail" ? I've never trusted ISP webmail interfaces…

On Fri, Jul 9, 2010 at 10:03 PM, ccoupe@cableone.net <ccoupe@cableone.net>wrote:

> I thought we had #ifdefs for both 1.8.7 and 1.9.1  for
> binject.c.   (I have a binject.c that compiles both). Sadly, I'm
> away from my home machine for a week or two so I can't fix it before
> then.<BR>
> <BR>
>  <BR>
> <BR>
> <span style="font-weight: bold;">On Fri Jul  9 18:41 , ashbb <
> ashbbb@gmail.com> sent:<BR>
> <BR>
> </ashbbb@gmail.com></span><blockquote style="border-left: 2px solid
> rgb(245, 245, 245); margin-left: 5px; margin-right: 0px; padding-left: 5px;
> padding-right: 0px;">Hi Dimitri,<BR>
> <BR>
> Oh, you might find a bug in the case of building Shoes with Ruby 1.8.
> :)<BR>
> <BR>
> <span style="font-weight: bold;">></span> binject.c:345:14: error:
> 'rb_io_t' has no member named 'fd'<BR>
> This is occured in function 'binject_exe_file_copy1'.<BR>
>
> <BR>
> The binject_exe_file_copy1 is a function just only for Ruby 1.9.1 MinGW on
> Windows. No need for Linux.<BR>
> <BR>
> Look at req/binject/ext/binject_c/binject.c, line 488-496:<BR>
> <a target="_blank" href="
> http://github.com/ashbb/shoes/blob/master/req/binject/ext/binject_c/binject.c
> ">
> http://github.com/ashbb/shoes/blob/master/req/binject/ext/binject_c/binject.c
> </a><BR>
>
> <BR>
> Can you try to add ifdef and build again?<BR>
> I think it's okay like this:<BR>
> <BR>
> #ifdef RUBY_1_9<BR>
> void binject_exe_file_copy1<BR>
> {<BR>
>   .....<BR>
> }<BR>
> #endif<BR>
> <BR>
> As Steve mentioned, we are now developing Shoes with Ruby 1.9.1.<BR>
>
> My developing environment is for Ruby 1.9.1.<BR>
> So, I'll appreciate if you confirm above solution. ;-)<BR>
> <BR>
> Thanks,<BR>
> ashbb<BR>
> <BR>
>
> </blockquote><BR><hr>Msg sent via CableONE.net MyMail -
> http://www.cableone.net
>



-- 
    ~devyn

Re: [shoes] binject.c and (maybe) archlinux 64-bit

From:
ccoupe@cableone.net
Date:
2010-07-10 @ 08:31
Indeed . the ISP WebMail sent me 5 copies of your message.  I'll be 
very quiet for a while. <BR>
<span style="font-weight: bold;"><devyn.cairns@gmail.com><BR>
</devyn.cairns@gmail.com></span><blockquote style="border-left: 2px solid 
rgb(245, 245, 245); margin-left: 5px; margin-right: 0px; padding-left: 
5px; padding-right: 0px;">Whoa, your email got really messed up ;-) 
Perhaps it is somehow linked to "<defanged_meta charset="utf-8">Msg sent 
via CableONE.net MyMail" ? I've never trusted ISP webmail interfaces…<BR>
<BR>
</defanged_meta>
</blockquote><BR><hr>Msg sent via CableONE.net MyMail - http://www.cableone.net