Re: AFB Binding Version Mismatch // V2 declared - V3 discovered

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
You should define which version of the API you want to use by adding "-DAFB_BINDING_VERSION=X" (where X is the version wanted, you probably want to set it to 2) to your COMPILE_OPTIONS in your config.cmake, or any other mean to pass it as a preprocessor definition.
If you don't, controller, helpers and app-templates assume that you want the last binding version available, which is the version 3.

Regards,
Loïc Collignon [IoT.bzh]

2018-08-07 13:34 GMT+02:00 <Tobias.Jahnke@xxxxxxxxxxxxx>:

Hi,

 

since our weekend AGL build for RCar3 there is an issue with agl-service-unicens (binding) and the AFB binding version being recognized for it.

 

It seems that this binding is discovered as AFB Binding V3.

In the respective source file it is declared as Binding V2. (#define AFB_BINDING_VERSION 2)

The binding also declares OpenAPI in a JSON file which is generating an internal header file. However, there seems to be no option to define another API version as done in the sources.

 

Here is a trace from journalctl:

 

Aug 01 12:37:40 m3ulcb afbd-agl-service-audio-4a@1.0-11d2ae9[3695]:  INFO: API unicens added [/usr/src/debug/af-binder/master+gitAUTOINC+3aa0f4d3c4-r0/git/src/afb-apiset.c:505,afb_apiset_add]

Aug 01 12:37:40 m3ulcb afbd-agl-service-unicens@0.1-9ae3b96-dirty[3696]:  INFO: binding [/var/local/lib/afm/applications/agl-service-unicens/0.1-9ae3b96-dirty/lib/afb-ucs2.so] looks like an AFB binding V3 [/usr/src/debug/af-binder/master+gitAUTOINC+3aa0f4d3c4-r0/git/src/afb-api-so-v3.c:83,afb_api_so_v3_add]

Aug 01 12:37:40 m3ulcb afbd-agl-service-unicens@0.1-9ae3b96-dirty[3696]:  ERROR: binding [/var/local/lib/afm/applications/agl-service-unicens/0.1-9ae3b96-dirty/lib/afb-ucs2.so] incomplete symbol set: afbBindingV3root is missing [/usr/src/debug/af-binder/master+gitAUTOINC+3aa0f4d3c4-r0/git/src/afb-api-so-v3.c:88,afb_api_so_v3_add]

Aug 01 12:37:40 m3ulcb afbd-agl-service-unicens@0.1-9ae3b96-dirty[3696]:  ERROR: can't start the binding /var/local/lib/afm/applications/agl-service-unicens/0.1-9ae3b96-dirty/lib/afb-ucs2.so [/usr/src/debug/af-binder/master+gitAUTOINC+3aa0f4d3c4-r0/git/src/main-afb-daemon.c:114,apiset_start_list]

 

Can anyone help to figure out what’s wrong and how detection of V2 can be done?

(Just a hint: A build from Wednesday morning last week did not show up this issue.)

 

Best regards

Tobias


_______________________________________________
automotive-discussions mailing list
automotive-discussions@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions


_______________________________________________
automotive-discussions mailing list
automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux