Re: [Sqlrelay-discussion] ruby binding problems
Brought to you by:
mused
|
From: David M. <dav...@fi...> - 2007-01-02 17:19:04
|
I see the problem. One of my scripts assumes that you're using an english locale :/ Try modifying src/api/ruby/Makefile and change the line: RUBYCFLAGS =3D $(shell $(RUBY) getcflags.rb | sed -e "s|-mtune=3Dpentium4= || g" | $(MAKE) -s -f - | grep -v Entering | grep -v Leaving ) to RUBYCFLAGS =3D $(shell $(RUBY) getcflags.rb | sed -e "s|-mtune=3Dpentium4= || g" | $(MAKE) -s -f --no-print-directory ) And let me know if that works or not. Dave On Thu, 2006-12-21 at 16:34 +0100, Fr=C3=A9d=C3=A9ric Logier wrote: > Hi, >=20 > I try to compile sqlrelay 0.38 with the ruby binding, but I obtain > these errors : >=20 > make -C ruby all > make[3]: entrant dans le r=C3=A9pertoire > =C2=AB /home/fred/sources/cvs/sqlrelay/src/api/ruby =C2=BB > cp rubyincludes1.h rubyincludes.h; \ > /bin/sh ../../../libtool --mode=3Dcompile g++ -Wall -pipe > -DHAVE_CONFIG -pthread make[3]: entrant dans le r=C3=A9pertoire > =C2=AB /home/fred/sources/cvs/sqlrelay/src/api/ruby =C2=BB -Wall -g > -fno-strict-aliasing -O2 -fPIC -I. -I/usr/lib/ruby/1.8/i486-linux > -I/usr/lib/ruby/1.8/i486-linux -I. make[3]: quittant le r=C3=A9pertoire > =C2=AB /home/fred/sources/cvs/sqlrelay/src/api/ruby =C2=BB -I./ > -I../../../src/api/c++/include -I/usr/local/firstworks/include > -pthread -c sqlrelay.C -o sqlrelay.lo 2> errors1; \ > if ( test ! -r sqlrelay.lo ); then \ > cp rubyincludes2.h rubyincludes.h; \ > /bin/sh ../../../libtool --mode=3Dcompile g++ -Wall > -pipe -DHAVE_CONFIG -pthread make[3]: entrant dans le r=C3=A9pertoire > =C2=AB /home/fred/sources/cvs/sqlrelay/src/api/ruby =C2=BB -Wall -g > -fno-strict-aliasing -O2 -fPIC -I. -I/usr/lib/ruby/1.8/i486-linux > -I/usr/lib/ruby/1.8/i486-linux -I. make[3]: quittant le r=C3=A9pertoire > =C2=AB /home/fred/sources/cvs/sqlrelay/src/api/ruby =C2=BB -I./ > -I../../../src/api/c++/include -I/usr/local/firstworks/include > -pthread -c sqlrelay.C -o sqlrelay.lo 2> errors2; \ > if ( test ! -r sqlrelay.lo ); then \ > if ( test -s errors1 ); then \ > echo "first try errors : "; cat > errors1; echo; \=20 > fi; \ > if ( test -s errors2 ); then \ > echo "second try errors : "; cat > errors2; echo; \ > fi; \ > exit 1; \ > else \ > cat errors2; \ > fi; \ > else \ > cat errors1; \ > fi; \ > rm -f errors1 errors2 rubyincludes.h > mkdir .libs > g++ -Wall -pipe -DHAVE_CONFIG -pthread "make[3]:" entrant dans le > r=C3=A9pertoire =C2=AB /home/fred/sources/cvs/sqlrelay/src/api/ruby =C2= =BB -Wall -g > -fno-strict-aliasing -O2 -fPIC -I. -I/usr/lib/ruby/1.8/i486-linux > -I/usr/lib/ruby/1.8/i486-linux -I. "make[3]:" quittant le r=C3=A9pertoi= re > =C2=AB /home/fred/sources/cvs/sqlrelay/src/api/ruby =C2=BB -I./ > -I../../../src/api/c++/include -I/usr/local/firstworks/include > -pthread -c sqlrelay.C -fPIC -DPIC -o .libs/sqlrelay.o > g++ -Wall -pipe -DHAVE_CONFIG -pthread "make[3]:" entrant dans le > r=C3=A9pertoire =C2=AB /home/fred/sources/cvs/sqlrelay/src/api/ruby =C2= =BB -Wall -g > -fno-strict-aliasing -O2 -fPIC -I. -I/usr/lib/ruby/1.8/i486-linux > -I/usr/lib/ruby/1.8/i486-linux -I. "make[3]:" quittant le r=C3=A9pertoi= re > =C2=AB /home/fred/sources/cvs/sqlrelay/src/api/ruby =C2=BB -I./ > -I../../../src/api/c++/include -I/usr/local/firstworks/include > -pthread -c sqlrelay.C -fPIC -DPIC -o .libs/sqlrelay.o > first try errors :=20 > g++: make[3]:: No such file or directory > g++: entrant: No such file or directory > g++: dans: No such file or directory > g++: le: No such file or directory=20 > g++: r=C3=A9pertoire: No such file or directory > g++: =C2=AB: No such file or directory > g++: =C2=BB: No such file or directory > g++: make[3]:: No such file or directory > g++: quittant: No such file or directory > g++: le: No such file or directory=20 > g++: r=C3=A9pertoire: No such file or directory > g++: =C2=AB: No such file or directory > g++: =C2=BB: No such file or directory > sqlrelay.C: In function 'void Init_SQLRConnection()': > sqlrelay.C:141: error: invalid conversion from 'VALUE (*)()' to 'VALUE > (*)(...)'=20 > sqlrelay.C:141: error: initializing argument 3 of 'void > rb_define_singleton_method(VALUE, const char*, VALUE (*)(...), i > sqlrelay.C:141: error: initializing argument 3 of 'void > rb_define_singleton_method(VALUE, const char*, VALUE (*)(...), int)'=20 > sqlrelay.C:143: error: invalid conversion from 'VALUE (*)()' to 'VALUE > (*)(...)' > ............. >=20 >=20 > What about the Ruby binding, is it too old ? > And it seems that there is a problem with the makefile because of 'No > such file or directory'=20 >=20 > Ubuntu edgy > g++ (GCC) 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5) > ruby 1.8.4 (2005-12-24) [i486-linux] > -----------------------------------------------------------------------= -- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share= your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ Sqlrelay-discussion mai= ling list Sql...@li... https://lists.sourcef= orge.net/lists/listinfo/sqlrelay-discussion |