V0.7: "first argument not a pointer or valid constant expression" in ccall


#1

Is this a bug or a feature ?

module B
    using Cairo

    test() = ccall((:cairo_version_string,Cairo._jl_libcairo),Cstring,()) 
end

julia> B.test()
ERROR: TypeError: in test, in ccall: first argument not a pointer or valid constant expression, expected Ptr, got Tuple{Symbol,String}

Which is a bit werid since both Cairo and _jl_libcairo are const (but Cairo._jl_libcairo isn’t ?)

Anyway doing import Cairo._jl_libcairo seems to fix the issue.


#2

Works in 0.6; this seems to be a regression on master.


#3

Ok, I’ll open an issue then.