Hi I have been digging a bit and I found that json-c (used by my application) cannot cohexist with jansson (used by avro) as they define the same symbols. No compilation or linking error of course, just a weird issue. Thank you for the hint.
Alfredo > On 9 Feb 2024, at 16:28, Martin Grigorov <mgrigo...@apache.org> wrote: > > Hi, > > Error 22 in Linux is EINVAL - Invalid argument > > Martin > > On Fri, Feb 9, 2024 at 5:21 PM Alfredo Cardigliano <cardigli...@ntop.org > <mailto:cardigli...@ntop.org>> wrote: >> Hi >> I am integrating Avro in an application, using avro_schema_from_json to >> parse the schema, >> while this function is working fine when compiling a C sample application, >> this fails returning >> error code 22 when compiling in a C++ application. I am using the libavro >> shipped with latest >> Ubuntu 22. >> >> Any hint about this return value (22)? Thank you. >> >> Alfredo