search for: rstring_ptr

Displaying 11 results from an estimated 11 matches for "rstring_ptr".

2012 Nov 23
23
Puppet 3.0 Puppet labs repo package problem on rhel5
...t. I recently upgraded from puppet 2.7 -> 3.0.1 After cleaning up some gems on my puppet master everything seemed to be working ok. I had originally used the EPEL repo''s to deploy puppet, but switched to the Puppet Labs repos so I could upgrade to 2.7 then 3. On RHEL5 only, I get a RSTRING_PTR error if I upgrade to the Puppet Labs version (1.4.6) if I roll back to the EPEL veriosn of rubygem-json (1.4.3) Everything works again. Has anyone seen anything like this before? Thanks -a Rolling back to rubygem-json-1.4.3-3.el5.1 and everything works After Upgrade of rubygem-json Info:...
2011 Dec 07
1
[PATCH] hivex: Fix Ruby bindings for 1.9; let the user explicitly choose ruby, rake
...enerator/generator.ml index 065c25d..dd13d6a 100755 --- a/generator/generator.ml +++ b/generator/generator.ml @@ -3265,6 +3265,14 @@ and generate_ruby_c () = #define RARRAY_LEN(r) (RARRAY((r))->len) #endif +#ifndef RSTRING_LEN +#define RSTRING_LEN(r) (RSTRING((r))->len) +#endif + +#ifndef RSTRING_PTR +#define RSTRING_PTR(r) (RSTRING((r))->ptr) +#endif + static VALUE m_hivex; /* hivex module */ static VALUE c_hivex; /* hive_h handle */ static VALUE e_Error; /* used for all errors */ @@ -3287,8 +3295,8 @@ get_value (VALUE valv, hive_set_value *val) val->key = StringValueCStr (...
2009 Feb 17
2
install.rb:655:in `command'': system("make") failed (RuntimeError) (GatoLinux)
...ormat=flowed > > Hi, Lyle, > > FWIW, I also ran into this problem when building fxruby against Ruby > 1.8.5 (on SuSE 10.1, I think). I think I just hacked definitions of > these macros into 1.8.5''s ruby.h file... > > RARRAY_LEN > RARRAY_PTR > RSTRING_LEN > RSTRING_PTR > > I took the definitions from a 1.8.6 ruby.h file. > > IMHO, it wouldn''t be a bad thing to put them in an fxruby include > file with #ifndef guards around them. > > Dave > > On Feb 13, 2009, at 15:48 , Lyle Johnson wrote: > > > What version of Ruby are...
2015 Oct 05
0
Re: [PATCH] Remove multiple hacks that only apply to RHEL 5.
...(there are 5) - adding it to the optgroups_retired list in generator/optgroups.ml > diff --git a/generator/ruby.ml b/generator/ruby.ml > index 87bb34a..cb187b0 100644 > --- a/generator/ruby.ml > +++ b/generator/ruby.ml > @@ -84,20 +84,6 @@ let rec generate_ruby_c () = > #define RSTRING_PTR(r) (RSTRING((r))->ptr) > #endif > > -/* For RHEL 5 (Ruby 1.8.5) */ > -#ifndef HAVE_RB_HASH_LOOKUP > -VALUE > -rb_hash_lookup (VALUE hash, VALUE key) > -{ > - volatile VALUE val; > - > - if (!st_lookup (RHASH(hash)->tbl, key, &val)) > - return Qnil;...
2007 Feb 12
0
[862] trunk/wxruby2/swig/fixmodule.rb: Fix regression from upgrading to SWIG 1.3.31; cure lots of MSW crashes
...&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif line =~ /char\* type_name = (RSTRING\(value\)->ptr|RSTRING_PTR\(value\));/ +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nb...
2009 Mar 08
3
Any good tutorial about upgrade ruby to 1.9.1 and with rails 2.3?
Hi there, Just want to upgrade to ruby1.9.1, but some important gems such as mysql, fastthread, mongrel are not compatible with the newest version, anyone has some good tutorial for recommendation? Thanks, chenillen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to
2015 Oct 05
2
[PATCH] Remove multiple hacks that only apply to RHEL 5.
...uot;; "hello"; uuid]; ["vfs_label"; "/dev/sda1"]], "hello"), [] diff --git a/generator/ruby.ml b/generator/ruby.ml index 87bb34a..cb187b0 100644 --- a/generator/ruby.ml +++ b/generator/ruby.ml @@ -84,20 +84,6 @@ let rec generate_ruby_c () = #define RSTRING_PTR(r) (RSTRING((r))->ptr) #endif -/* For RHEL 5 (Ruby 1.8.5) */ -#ifndef HAVE_RB_HASH_LOOKUP -VALUE -rb_hash_lookup (VALUE hash, VALUE key) -{ - volatile VALUE val; - - if (!st_lookup (RHASH(hash)->tbl, key, &val)) - return Qnil; - - return val; -} -#endif /* !HAVE_RB_HASH_LOOKUP */...
2007 Dec 11
54
1.9
Hey so, People are asking about Mongrel Ruby 1.9 compatibility. Isn''t the point of 1.9 for library developers to have time to get ready for 2.0? It''s not like 1.9 is a production release. Evan -- Evan Weaver Cloudburst, LLC
2014 Aug 04
6
[hivex] Segfault for an integer value to node_set_value
Hi, When an integer argument is passed as value, node_set_value segfaults. Reproducer is at the end of this message The backtrace points at hivex-py.c, function get_value. While obj is non-NULL, `bytes = PyUnicode_AsUTF8String (obj);` returns NULL. Kind regards, Peter https://lekensteyn.nl #!/usr/bin/env python3 import hivex, sys h = hivex.Hivex(sys.argv[1]) print(h) val = {
2014 Aug 16
7
[hivex] [PATCH 0/6] Python fixes for node_set_value
Hi, This patch series is based on a prior patch[1], splitting off changes as requested and incorporating feedback from Richard Jones. It introduces type validation to avoid segmentation faults (instead, it reports an exception) and fixes handling of the bytes type in Python 3. Major changes since that series: - Drop newly introduced support for integer types for DWORD/QWORDS - Reject Unicode
2013 Feb 04
1
[PATCH] generator: Add visibility to action struct
...gError, \"%%s: used handle after closing it\", \"%s\");\n" - name; + f.name; pr "\n"; (* For optargs case, get the arg VALUEs into local variables. @@ -509,7 +508,7 @@ ruby_user_cancel (VALUE gv) pr " const char *%s = RSTRING_PTR (%sv);\n" n n; pr " if (!%s)\n" n; pr " rb_raise (rb_eTypeError, \"expected string for parameter %%s of %%s\",\n"; - pr " \"%s\", \"%s\");\n" n name; + pr " \&...