The reason why valaswig is segfaulting is because vala abi has changed and you are probably using a valaswig version compiled against the previous abi change.
Vala 0.11 branch is unstable in abi until they release 0.12 together with gnome3. This is going to happen in a month or so :) till then i recommend you to recompile valaswig from hg after upgrading vala. On 15/02/2011, at 23:34, Nibble <[email protected]> wrote: > I recommend you to use the hg tips of valaswig and r2 (and the vala > head). Bindings build works fine here and we will release new tarballs > with r2-0.7 (coming soon :) > > On Tue, 15 Feb 2011 19:47:32 +0100 > Jan Lieven <[email protected]> wrote: > >> I just tried to build the latest (yeah, I know it's a little >> bit older...) r2-swig release and saw many SegFaults while compiling. >> >> $ make perl >> make[1]: Entering directory >> `/tmp/test/radare2-swig/src/radare2-swig-0.6/perl' CFLAGS = >> LIBS = -lr_util >> valaswig -x --vapidir ../vapi -o r_util.i -m r_util ../vapi/r_util >> Adding dependency package glib-2.0 >> Adding dependency package gobject-2.0 >> Adding dependency package ../vapi/r_util >> /usr/bin/valaswig-cc: line 156: 3950 Segmentation fault >> valaswig ${VALASWIGFLAGS} ${ARG_VAPIDIR} -o ${MOD}.i -m ${MOD} >> ${FILES} make[1]: [r_util.so] Error 1 (ignored) CFLAGS = >> LIBS = -lr_util -lr_bp >> valaswig -x --vapidir ../vapi -o r_bp.i -m r_bp ../vapi/r_bp >> Adding dependency package glib-2.0 >> Adding dependency package gobject-2.0 >> Adding dependency package ../vapi/r_bp >> Adding dependency package r_util >> /usr/bin/valaswig-cc: line 156: 4039 Segmentation fault >> valaswig ${VALASWIGFLAGS} ${ARG_VAPIDIR} -o ${MOD}.i -m ${MOD} >> ${FILES} make[1]: [r_bp.so] Error 1 (ignored) >> >> >> $ gdb --args valaswig -x --vapidir ../vapi -o r_search.i -m >> r_search ../vapi/r_search >> >> Program received signal SIGSEGV, Segmentation fault. >> 0x00007ffff7a5aa50 in vala_data_type_copy () >> from /usr/lib/libvala-0.12.so.0 >> >> The list contains every build target, I just figured it might be too >> much to attach it all. >> I'm not sure if this is a r2-swig, swig, valaswig or vala problem, >> though. > > _______________________________________________ > radare mailing list > [email protected] > http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org > _______________________________________________ radare mailing list [email protected] http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org
