Created attachment 6574 [details] proposed fix Some older compilers do not like to initialize union members in the declaration statement. The following patch fixes build failures on old freebsd systems using older gnu c compilers
Comment on attachment 6574 [details] proposed fix Can you please paste the exact compiler version and error output, thanks! metze
Here is the gcc version and the errors I saw $ gcc --version 2.95.3 utils/net_registry.c: In function `net_registry_import': utils/net_registry.c:961: unknown field `registry_value' specified in initializer utils/net_registry.c:962: warning: missing braces around initializer utils/net_registry.c:962: warning: (near initialization for `import_callback.setval') utils/net_registry.c:962: warning: initialization from incompatible pointer type utils/net_registry.c:963: unknown field `setval_type' specified in initializer
Ok, would the following work? .setval = { .registry_value = (reg_import_callback_setval_registry_value_t)&import_create_val, },
Yes that will work.
5d736d87778754de7043d902c7d1d5db1c46cb02 is the fix in master. Björn can you review it and assign to Karolin?
Pushed to v3-6-test. Closing out bug report. Thanks!