On 21/02/07, Andrew Borley <[EMAIL PROTECTED]> wrote:
On 2/21/07, Pete Robbins <[EMAIL PROTECTED]> wrote:
> On 21/02/07, Andrew Borley <[EMAIL PROTECTED]> wrote:
> >
> > On 2/21/07, Pete Robbins <[EMAIL PROTECTED]> wrote:
> > > I now have Ruby working on Mac. I will remove the ws bindings and
> > clients
> > > from the *Calculator samples so we have a simple sample for each
> > language.
> > > $TUSCANY_SCACPP/extensions/ruby/lib needs to be added to the
> > LD_LIBRARY_PATH
> > > (or PATH on windows) to run the Ruby clients. I've updated the runclient
> > > scripts.
> >
> > Running a Linux build against the latest code gives me an error with
> > the new Ruby layout:
> >
> > make[5]: Entering directory
> >
> >
`/home/ajborley/workspace/TuscanyCPP/sca/runtime/extensions/ruby/extension/src'
> > g++ -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> > -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386
> > -mtune=generic -fasynchronous-unwind-tables -Wall -fPIC -I.
> > -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux -I. -c
> > Extension.cpp
> > Extension.cpp:28:35: error: tuscany/sca/ruby/Ruby.h: No such file or
> > directory
> > Extension.cpp:29:51: error: tuscany/sca/ruby/RubyCompositeContext.h:
> > No such file or directory
> >
> > Did everything get checked in? Am I missing an env variable?
>
>
> Everything is checked in. The extconf.rb RUby script generates the makefile.
> It should add the lib and include paths nexessary. Are there messages before
> the compile like:
>
> checking for #include <tuscany/sca/ruby/RubyCompositeContext.h>
>
> ?
>
Yep, the full build log for sca/runtime/extensions/ruby/extension is:
Making install in extension
make[4]: Entering directory
`/home/ajborley/workspace/TuscanyCPP/sca/runtime/extensions/ruby/extension'
cd src; ruby extconf.rb; make
checking for tuscany/sca/ruby/RubyCompositeContext.h... yes
checking for main() in -ltuscany_sca_ruby_lang... yes
creating Makefile
make[5]: Entering directory
`/home/ajborley/workspace/TuscanyCPP/sca/runtime/extensions/ruby/extension/src'
g++ -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386
-mtune=generic -fasynchronous-unwind-tables -Wall -fPIC -I.
-I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux -I. -c
Extension.cpp
Extension.cpp:28:35: error: tuscany/sca/ruby/Ruby.h: No such file or directory
Extension.cpp:29:51: error: tuscany/sca/ruby/RubyCompositeContext.h:
No such file or directory
Extension.cpp:35: error: âVALUEâ does not name a type
Extension.cpp: In function âvoid Init_tuscany_sca_ruby()â:
Extension.cpp:47: error: âVALUEâ was not declared in this scope
Extension.cpp:47: error: expected `;' before âmoduleâ
Extension.cpp:48: error: âmoduleâ was not declared in this scope
Extension.cpp:48: error: expected primary-expression before â)â token
Extension.cpp:48: error: âANYARGSâ was not declared in this scope
Extension.cpp:48: error: ârb_define_module_functionâ was not declared
in this scope
make[5]: *** [Extension.o] Error 1
make[5]: Leaving directory
`/home/ajborley/workspace/TuscanyCPP/sca/runtime/extensions/ruby/extension/src'
make[4]: *** [extension_build] Error 2
make[4]: Leaving directory
`/home/ajborley/workspace/TuscanyCPP/sca/runtime/extensions/ruby/extension'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory
`/home/ajborley/workspace/TuscanyCPP/sca/runtime/extensions/ruby'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory
`/home/ajborley/workspace/TuscanyCPP/sca/runtime/extensions'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/ajborley/workspace/TuscanyCPP/sca/runtime'
make: *** [install-recursive] Error 1
So the check for tuscany/sca/ruby/RubyCompositeContext.h is there
(although there isn't one for Ruby.h) and looks like it succeeds, but
the build still seems to fail to find it.
The checks are supposed to add the -I and -L stuff for where it finds
the headers and libraries so here should be a -I../../src in the
command line. This works on Mac and my RHEL3 linux. Which linux are
you running?
--
Pete
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]