radare / valabind

create bindings from vapi to nodejs, python, swig, c++
GNU General Public License v3.0
56 stars 27 forks source link

Compilation fails against vala 0.50.0 #55

Closed tschoonj closed 8 months ago

tschoonj commented 4 years ago

I get the following error:

valac -g --cc="clang"  -o valabind --pkg posix --pkg libvala-0.50 --vapidir=/private/tmp/valabind-20200911-81832-10e3t3o/valabind-1.7.1/private --pkg codegen -X -I/private/tmp/valabind-20200911-81832-10e3t3o/valabind-1.7.1/private --vapidir=/share/vala/vapi/ -X -L/usr/local/Cellar/vala/0.50.0/lib/vala-0.50 -X -lvalaccodegen --save-temps  config.vala main.vala valabindwriter.vala nodeffiwriter.vala utils.vala girwriter.vala swigwriter.vala cxxwriter.vala ctypeswriter.vala dlangwriter.vala gowriter.vala 
valabindwriter.vala:36.3-36.17: error: Access to private member `Vala.CodeContext.profile' denied
        context.profile = Profile.GOBJECT;
        ^^^^^^^^^^^^^^^
swigwriter.vala:97.22-97.52: warning: Access to possible `null'. Perform a check or use an unsafe cast.
            return type_name ((type as PointerType).base_type, retType, true)+"*";
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
nodeffiwriter.vala:63.31-63.61: warning: Access to possible `null'. Perform a check or use an unsafe cast.
            return "_.ptr("+type_name ((type as PointerType).base_type, true)+")";
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ctypeswriter.vala:206.24-206.54: warning: Access to possible `null'. Perform a check or use an unsafe cast.
            var tn = type_name ((type as PointerType).base_type, retType, true);
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation failed: 1 error(s), 3 warning(s)
trufae commented 4 years ago

Fixed in valabind 1.7.2. Thanks for reporting! sorry for the delay :) im a bit busy in so many things but i didnt missed it