libgphoto2 uses values that were deprecated by HAL over a year ago. They have been removed in a recent commit however gphoto2 will remain broken. Here's a simple patch from Danny Kukawka <danny.kukawka@web.de> to fix the issue.
Created attachment 145269 [details, diff] libgphoto2-fix-fdi_file_generation.diff
thanks for the patch, I'll take a look at it asap
this is in 2.4.1, thanks for reporting.