You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Gyoung-Yoon Noh <no...@sub-port.net> on 2005/07/23 06:12:35 UTC

problem building ruby binding

Hi, I've mailed a small patch to users@subversion.tigris.org
two days ago, yes by mistake. :(

Sorry for duplicating, but I decided to report with another
problem, which would have any relation.

1. swig ruby testing fails because of wrong library path.
   See patch attached.

2. Built libraries have addtionary suffix '-pc-linux-gnu-gcc',
   which cause loading library fail.

$ ls -F subversion/bindings/swig/ruby/.libs
client.a                     delta.a                     ra.la@
svn_fs.o
client.la@                   delta.la@                   ra.lai
svn_ra.o
client.lai                   delta.lai
ra.so-pc-linux-gnu-gcc*     svn_repos.o
client.so-pc-linux-gnu-gcc*  delta.so-pc-linux-gnu-gcc*  repos.a
svn_wc.o
core.a                       fs.a                        repos.la@
wc.a
core.la@                     fs.la@                      repos.lai
wc.la@
core.lai                     fs.lai
repos.so-pc-linux-gnu-gcc*  wc.lai
core.o                       fs.so-pc-linux-gnu-gcc*     svn_client.o
wc.so-pc-linux-gnu-gcc*
core.so-pc-linux-gnu-gcc*    ra.a


Probably should be modified in Makefile.am or confingure.ac?

Regards,

Re: problem building ruby binding

Posted by Kouhei Sutou <ko...@cozmixng.org>.
Hi,

In <42...@sub-port.net>
  "Re: problem building ruby binding" on Tue, 26 Jul 2005 19:33:20 +0900,
  Gyoung-Yoon Noh <no...@sub-port.net> wrote:

> Ok, if first problem was already resolved, there is no problem left to me.

It's a good news.

> Arigato, Kouhei.

Douitashimasite.
--
kou

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: problem building ruby binding

Posted by Gyoung-Yoon Noh <no...@sub-port.net>.
Kouhei Sutou wrote:
> What about the command:
> 
>   $ ls subversion/bindings/swig/ruby/.ext/svn/ext/
> 
> 
>>>  * the result when you add "p $LOAD_PATH" to
>>>    the next line of "$LOAD_PATH.unshift(Dir.pwd)" in
>>>    subversion/bindings/swig/ruby/test/run-test.rb.
> 
> 
> Could you show me the result?
> 

Thank you for hearing my awkward reporting with patience.

$ ls subversion/bindings/swig/ruby/.ext/svn/ext/
client.a                    ra.la
client.la                   ra.lai
client.lai                  ra.so-pc-linux-gnu-gcc
client.so-pc-linux-gnu-gcc  repos.a
core.a                      repos.la
core.la                     repos.lai
core.lai                    repos.so-pc-linux-gnu-gcc
core.o                      svn_client.o
core.so-pc-linux-gnu-gcc    svn_delta.o
delta.a                     svn_fs.o
delta.la                    svn_ra.o
delta.lai                   svn_repos.o
delta.so-pc-linux-gnu-gcc   svn_wc.o
fs.a                        wc.a
fs.la                       wc.la
fs.lai                      wc.lai
fs.so-pc-linux-gnu-gcc      wc.so-pc-linux-gnu-gcc
ra.a

Now I'm sure I got the reason.
There was two problems intertwined. As I reported, one is the garbage suffix
(-pc-linux-gnu-gcc). The other is that '.ext' was removed by at_exit 
event handler
in the test/runner.rb. So, I mistook some statements in test/runner.rb 
was wrong.
Ok, if first problem was already resolved, there is no problem left to me.

Arigato, Kouhei.

Re: problem building ruby binding

Posted by Kouhei Sutou <ko...@cozmixng.org>.
Hi,

Thank you for showing your transcript.

I tried on the following environment (Debian sid) but I
can't reproduce.

  % uname -orm
  2.6.8-11-amd64-k8 x86_64 GNU/Linux
  % ruby -v
  ruby 1.8.3 (2005-06-23) [x86_64-linux]


In <11...@gen64>
  "Re: problem building ruby binding" on Tue, 26 Jul 2005 06:17:29 +0900,
  Gyoung-Yoon Noh <no...@sub-port.net> wrote:

> > Could you show me the followings?:
> > 
> >   * the test result

> $ make check-swig-rb
> 
> After all build(compiling & linking) process finished,
> it displays following message:
> 
> <snip>
> 
> cd /home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby; /usr/bin/ruby test/run-test.rb
> /home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby/svn/error.rb:1:in `require': No such file to load -- svn/ext/core (LoadError)
> 

Thanks.

> >   * ls -l subversion/bindings/swig/ruby/svn/ext/ when
> >     you comment out "at_exit {FileUtils.rm_rf(ext_dir)}" in
> >     subversion/bindings/swig/ruby/test/run-test.rb.

> $ ls -l subversion/bindings/swig/ruby/svn/ext/
> ls: subversion/bindings/swig/ruby/svn/ext/: No such file or directory
> 
> $ ls -aF subversion/bindings/swig/ruby/
snip

> $ ls -aF subversion/bindings/swig/ruby/svn
snip

> $ ls -lFR subversion/bindings/swig/ruby/.ext/
> subversion/bindings/swig/ruby/.ext/:
> total 0
> drwxr-xr-x  2 nohmad wheel 16 Jul 25 20:43 svn/
> 
> subversion/bindings/swig/ruby/.ext/svn:
> total 0
> lrwxrwxrwx  1 nohmad wheel 69 Jul 25 20:43 ext
> -> /home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby/.libs/

Thanks.

What about the command:

  $ ls subversion/bindings/swig/ruby/.ext/svn/ext/

> >   * the result when you add "p $LOAD_PATH" to
> >     the next line of "$LOAD_PATH.unshift(Dir.pwd)" in
> >     subversion/bindings/swig/ruby/test/run-test.rb.

Could you show me the result?


Thanks,
--
kou

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: problem building ruby binding

Posted by Gyoung-Yoon Noh <no...@sub-port.net>.
2005-07-24 (일), 14:44 +0900, Kouhei Sutou 쓰시길:
> > 1. swig ruby testing fails because of wrong library path.
> >    See patch attached.
> 
> I can't understand what problem current library path setup
> process has on your environment.
> 
> Could you show me the followings?:
> 
>   * the test result
> 
>   * ls -l subversion/bindings/swig/ruby/svn/ext/ when
>     you comment out "at_exit {FileUtils.rm_rf(ext_dir)}" in
>     subversion/bindings/swig/ruby/test/run-test.rb.
> 
>   * the result when you add "p $LOAD_PATH" to
>     the next line of "$LOAD_PATH.unshift(Dir.pwd)" in
>     subversion/bindings/swig/ruby/test/run-test.rb.
 
I've configured like this:

$ ./configure --prefix=/usr --with-apr=/usr/bin/apr-config
--with-apr-util=/usr/bin/apu-config --with-neon=/usr/bin/neon-config
--with-ruby-sitedir=/usr/lib/ruby/site_ruby/1.8

and did 'make':

$ make check-swig-rb

After all build(compiling & linking) process finished,
it displays following message:

<snip>

cd /home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby; /usr/bin/ruby test/run-test.rb
/home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby/svn/error.rb:1:in `require': No such file to load -- svn/ext/core (LoadError)

from /home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby/svn/error.rb:1

from /home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby/svn/client.rb:2:in `require'

from /home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby/svn/client.rb:2

from /home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby/test/util.rb:3:in `require'

from /home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby/test/util.rb:3

from /home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby/test/test_fs.rb:2:in `require'

from /home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby/test/test_fs.rb:2
        from /usr/lib/ruby/1.8/test/unit/collector/dir.rb:83:in
`require'
         ... 6 levels...
        from /usr/lib/ruby/1.8/test/unit/autorunner.rb:55:in `[]'
        from /usr/lib/ruby/1.8/test/unit/autorunner.rb:192:in `run'
        from /usr/lib/ruby/1.8/test/unit/autorunner.rb:14:in `run'
        from test/run-test.rb:16
make: *** [check-swig-rb] Error 1

</snip>

After commenting out "at_exit {FileUtils.rm_rf(ext_dir)}" line, still
same result.

$ ls -l subversion/bindings/swig/ruby/svn/ext/
ls: subversion/bindings/swig/ruby/svn/ext/: No such file or directory

$ ls -aF subversion/bindings/swig/ruby/
./         core.la            ra.la          svn_delta.c   svn_ra.c
svn_wc.c
../        core.lo            repos.la       svn_delta.lo  svn_ra.lo
svn_wc.lo
.ext/      core.o             svn/           svn_delta.o   svn_ra.o
svn_wc.o
.libs/     delta.la           svn_client.c   svn_fs.c      svn_repos.c
test/
client.la  fs.la              svn_client.lo  svn_fs.lo     svn_repos.lo
wc.la
core.c     libsvn_swig_ruby/  svn_client.o   svn_fs.o      svn_repos.o

$ ls -aF subversion/bindings/swig/ruby/svn
./   client.rb  delta.rb  fs.rb    ra.rb     util.rb
../  core.rb    error.rb  info.rb  repos.rb  wc.rb

$ ls -lFR subversion/bindings/swig/ruby/.ext/
subversion/bindings/swig/ruby/.ext/:
total 0
drwxr-xr-x  2 nohmad wheel 16 Jul 25 20:43 svn/

subversion/bindings/swig/ruby/.ext/svn:
total 0
lrwxrwxrwx  1 nohmad wheel 69 Jul 25 20:43 ext
-> /home/nohmad/tmp/subversion-1.2.1/subversion/bindings/swig/ruby/.libs/



Regards,


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: problem building ruby binding

Posted by Kouhei Sutou <ko...@cozmixng.org>.
Hi,

In <11...@gen64>
  "problem building ruby binding" on Sat, 23 Jul 2005 15:12:35 +0900,
  Gyoung-Yoon Noh <no...@sub-port.net> wrote:

> Hi, I've mailed a small patch to users@subversion.tigris.org
> two days ago, yes by mistake. :(

Sorry, I'm not reading users@ list.

> 1. swig ruby testing fails because of wrong library path.
>    See patch attached.

I can't understand what problem current library path setup
process has on your environment.

Could you show me the followings?:

  * the test result

  * ls -l subversion/bindings/swig/ruby/svn/ext/ when
    you comment out "at_exit {FileUtils.rm_rf(ext_dir)}" in
    subversion/bindings/swig/ruby/test/run-test.rb.

  * the result when you add "p $LOAD_PATH" to
    the next line of "$LOAD_PATH.unshift(Dir.pwd)" in
    subversion/bindings/swig/ruby/test/run-test.rb.

> 2. Built libraries have addtionary suffix '-pc-linux-gnu-gcc',
>    which cause loading library fail.

This was fixed in r15104. In trunk, this problem isn't
occurred.

I attach a diff between r15103:15104.


Thank you for reporting.
Regards,
--
kou