diff --git a/pkgs/epnix/tools/open62541_1_3/default.nix b/pkgs/epnix/tools/open62541_1_3/default.nix index 6be7f217..34b78cb0 100644 --- a/pkgs/epnix/tools/open62541_1_3/default.nix +++ b/pkgs/epnix/tools/open62541_1_3/default.nix @@ -41,6 +41,8 @@ in }; patches = [ + # https://github.com/epics-modules/opcua/blob/b5db09477eb6404187199753df9e626d9a432210/devOpcuaSup/open62541/README.md#bugfix-for-shared-build + (./shared_build.patch) (fetchpatch { name = "Ensure-absolute-paths-in-pkg-config-file.patch"; url = "https://github.com/open62541/open62541/commit/023d4b6b8bdec987f8f3ffee6c09801bbee4fa2d.patch"; diff --git a/pkgs/epnix/tools/open62541_1_3/shared_build.patch b/pkgs/epnix/tools/open62541_1_3/shared_build.patch new file mode 100644 index 00000000..b8faa802 --- /dev/null +++ b/pkgs/epnix/tools/open62541_1_3/shared_build.patch @@ -0,0 +1,13 @@ +diff --git a/src/ua_types.c b/src/ua_types.c +index b8f6739bb..7e8f7c43d 100644 +--- a/src/ua_types.c ++++ b/src/ua_types.c +@@ -1880,7 +1880,7 @@ UA_Array_delete(void *p, size_t size, const UA_DataType *type) { + } + + #ifdef UA_ENABLE_TYPEDESCRIPTION +-UA_Boolean ++UA_Boolean UA_EXPORT + UA_DataType_getStructMember(const UA_DataType *type, const char *memberName, + size_t *outOffset, const UA_DataType **outMemberType, + UA_Boolean *outIsArray) {