hi i already reported this
(Ruby-GNOME 2 / Bugs / #133 ‘struct RString’ has no member named ‘ptr’ error reoccurred)
but nobody did care for that bug tracker.
so i subscribed to this mailing list.
forgive me for rude double posting.
ruby --version
ruby 1.9.1p376 (2009-12-07 revision 26041) [i686-linux]
i tried to compile recent svn. but old error reoccured .
make[1]: Entering directory /media/sdc1/ruby-gnome2/gio/src' gcc -I. -I/media/sdc1/ruby-gnome2/glib/src -I/media/sdc1/ruby-gnome2/glib/src -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I/media/sdc1/ruby-gnome2/gio/src -I/usr/lib/ruby/site_ruby/1.9.1/i686-linux -I/usr/lib/ruby/vendor_ruby/1.9.1/i686-linux -DHAVE_RB_DEFINE_ALLOC_FUNC -DHAVE_RB_BLOCK_PROC -DHAVE_OBJECT_ALLOCATE -DHAVE_RB_EXEC_RECURSIVE -DRUBY_GIO2_COMPILATION -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -Wall -Wno-parentheses -Wall -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -finline-functions -fno-common -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Winline -Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked -Wp,-D_FORTIFY_SOURCE=2 -Wpointer-arith -Wsign-compare -Wstrict-aliasing=2 -Wswitch-default -Wswitch-enum -Wundef -Wunsafe-loop-optimizations -Wwrite-strings -o util.o -c util.c util.c: In function ‘g_file_ary_to_glist’: util.c:59: warning: value computed is not used util.c: In function ‘cstr_to_rval_own’: util.c:128: error: ‘struct RString’ has no member named ‘ptr’ util.c:129: error: ‘struct RString’ has no member named ‘len’ util.c:130: error: ‘struct RString’ has no member named ‘aux’ util.c: In function ‘rbgio_raise_io_error’: util.c:237: warning: format not a string literal and no format arguments make[1]: *** [util.o] error 1 make[1]: Leaving directory
/media/sdc1/ruby-gnome2/gio/src’
make: *** [all] error 2
thi is error line.
it is not easy to change RString ->ptr TO RString_PTR
VALUE
cstr_to_rval_own(char *string, gsize length)
{
NEWOBJ(str, struct RString);
OBJSETUP(str, rb_cString, T_STRING);
str->ptr = string;
str->len = length;
str->aux.capa = length;
return (VALUE)str;
}
$ svn info
Path: .
URL:
Repository Root:
Repository UUID: c539e5d7-1e9e-499f-b274-3850e4969db1
Revision: 3723
Node Kind: directory
Schedule: normal
Last Changed Author: ktou
Last Changed Rev: 3699
Last Changed Date: 2009-09-23 09:03:40 +0900 (Wed, 23 Sep 2009)