search for: rb_define_alloc_func

Displaying 14 results from an estimated 14 matches for "rb_define_alloc_func".

2013 Feb 18
4
Some fixes for building the Debian package for 1.20.2
I needed to add a few patches to be able to build libguestfs 1.20.2 out of tree. Mostly srcdir/builddir issues -- I think that I had posted something for building the daemon before. As mentioned on IRC, I found that compiling (Ruby bindings) caused config.h file shipped with the Ruby headers to be included rather than ${builddir}/config.h. This can be fixed because the relevant checks can be
2017 Aug 10
3
[PATCH] ruby: fix order of CFLAGS
...uestfs/extconf.rb.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ruby/ext/guestfs/extconf.rb.in b/ruby/ext/guestfs/extconf.rb.in index c4551fa6c..6b806101e 100644 --- a/ruby/ext/guestfs/extconf.rb.in +++ b/ruby/ext/guestfs/extconf.rb.in @@ -33,8 +33,9 @@ have_func("rb_define_alloc_func") have_type("rb_alloc_func_t") $CFLAGS = - "#{$CFLAGS} @CFLAGS@ -DGUESTFS_PRIVATE=1 " << - "@WARN_CFLAGS@ @WERROR_CFLAGS@" + "#{$CFLAGS} " << + "@WARN_CFLAGS@ @WERROR_CFLAGS@ " << + "@CFLAGS@ -DGUESTFS_PRIVATE=1&...
2013 Mar 07
7
Fixes from the patch queue of the Debian package
Here are three patches that fix issues with out-of-tree building and one that uses Ruby's own autoconf stuff for determining how Ruby bindings should be built. Cheers, -Hilko
2004 Oct 23
0
win32-ipc, with blocks (code review please)
...{ VALUE mWin32, cIpc; /* Modules and Classes */ mWin32 = rb_define_module("Win32"); cIpc = rb_define_class_under(mWin32, "Ipc", rb_cObject); cIpcError = rb_define_class_under(mWin32,"IpcError",rb_eStandardError); // IPC class and instance methods rb_define_alloc_func(cIpc,ipc_allocate); rb_define_singleton_method(cIpc,"wait_any",ipc_wait_any,-1); rb_define_singleton_method(cIpc,"wait_all",ipc_wait_all,-1); rb_define_method(cIpc,"initialize",ipc_init,1); rb_define_method(cIpc,"wait",ipc_wait,-1); // Consta...
2013 Dec 27
0
[PATCH] ruby: Fix .new method (RHBZ#1046509).
...NULL); - /* Wrap it, and make sure the close function is called when the - * handle goes away. - */ return Data_Wrap_Struct (c_guestfs, NULL, ruby_guestfs_free, g); } @@ -707,10 +760,10 @@ Init__guestfs (void) #ifndef HAVE_TYPE_RB_ALLOC_FUNC_T #define rb_alloc_func_t void* #endif - rb_define_alloc_func (c_guestfs, (rb_alloc_func_t) ruby_guestfs_create); + rb_define_alloc_func (c_guestfs, (rb_alloc_func_t) ruby_guestfs_alloc); #endif - rb_define_module_function (m_guestfs, \"create\", ruby_guestfs_create, -1); + rb_define_method (c_guestfs, \"initialize\", ruby_guestfs_in...
2006 Aug 15
5
Ferret Segmentation Faults
Hi, I am getting a number of segmentation faults using Ferret 0.9.5, Fedora Core 5 and Ruby 1.8.4 I installed it with the recommended gem install ferret and example segmentation fault creation line would be as follows: @records = FerretConfig::INDEX.search("address_line_2:\"Dumbarton\"") I am also using acts_as_ferret and rails 1.15 but think this is an issue with
2004 Feb 08
5
wxruby 0.2 for osx panther release
A first draft of the wxruby binary release for the macintosh is now available at: http://www.nicreations.net/wxruby-0.2-osx-panther.dmg Install the metapackage (mpkg). You will need to choose a folder for the sample apps. wxruby.bundle is installed in /usr/lib/ruby/1.6/powerpc-darwin7.0 A few questions: 1) Should I just leave the samples in a folder instead of making the user
2003 Nov 13
7
modified classes
-- +-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy | | Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" | +-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+ -------------- next part -------------- A non-text attachment was scrubbed... Name:
2005 Dec 30
8
WxRuby newbie Mac OS 10.4 install questions
...g 10.4.3). After hand copying the wxruby.bundle into /usr/lib/ruby/1.8/powerpc-darwin8.0 I could then run most of the examples, with two problems. 1) Dozens of messages on startup of the form: /usr/lib/ruby/1.8/powerpc-darwin8.0/wxruby.bundle: warning: defining Wx::XX.allocate is deprecated; use rb_define_alloc_func() 2) Non of the examples that use Menus seem to work, all I see is a single "ruby" menu. As far as number 2), I see that README.osx has a paragraph that says "Applications under OS X require resource bundles. Most side effects of this have been minimized as much as possible, but...
2004 Jul 31
3
Bug in new_work_item
Hi all, Windows 2000 Ruby 1.8.2 R7 VC++ 6.0 I noticed that if I try to call new_work_item and give the task a name that already exists, I get a segfault: C:\eclipse\workspace\win32-taskscheduler>ruby test.rb "0.1.0" test.rb:22:in `new_work_item'': NewWorkItem() function failed (Win32::TaskSchedul erError) from test.rb:22 test.rb:22: [BUG] Segmentation fault ruby
2017 Jul 07
2
[PATCH v2] v2v: docs: VDSM location of virt-v2v log file.
See this bug for background information: https://bugzilla.redhat.com/show_bug.cgi?id=1350465 Thanks: Tomáš Golembiovský --- v2v/virt-v2v.pod | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/v2v/virt-v2v.pod b/v2v/virt-v2v.pod index e68d75cf8..0943bf305 100644 --- a/v2v/virt-v2v.pod +++ b/v2v/virt-v2v.pod @@ -1909,18 +1909,32 @@ that
2017 Jul 07
3
[PATCH] v2v: docs: VDSM location of virt-v2v log file.
See this bug for background information: https://bugzilla.redhat.com/show_bug.cgi?id=1350465 --- v2v/virt-v2v.pod | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/v2v/virt-v2v.pod b/v2v/virt-v2v.pod index e68d75cf8..93d1a9ecd 100644 --- a/v2v/virt-v2v.pod +++ b/v2v/virt-v2v.pod @@ -1909,18 +1909,33 @@ that guest through the RHV-M UI,
2017 Jun 27
3
[PATCH] libvirt: disallow non-local connections (RHBZ#1347830)
If the connection is not local, paths of disks will refer to the remote host, which were mistakenly handled as local paths (in the best case failing to open a non-existing disk, and in the worst case opening a different disk!). In case the disks are remote resources like ssh or ceph, nothing guarantees that the hostname can be reached from the local machine, or even that it is actually the same on
2017 Jul 07
4
[PATCH v6 0/3] gobject: Remove gtk-doc (RHBZ#1465665).
Hopefully this time ...