Public bug reported: aalogparse.h cannot be included from C++ code because it uses 'namespace' and 'class' as variable names, and these are reserved keywords in C++.
/usr/include/aalogparse/aalogparse.h:137:15: error: expected unqualified-id before ‘namespace’ 137 | char *namespace; | ^~~~~~~~~ /usr/include/aalogparse/aalogparse.h:163:15: error: expected unqualified-id before ‘class’ 163 | char *class; | ^~~~~ This is interesting to me because abi-compliance-checker necessarily processes all headers as C++; but it's likely of general interest to be able to link C++ code to libapparmor. ** Affects: apparmor (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apparmor in Ubuntu. https://bugs.launchpad.net/bugs/2004592 Title: aalogparse.h cannot be included from C++ code Status in apparmor package in Ubuntu: New Bug description: aalogparse.h cannot be included from C++ code because it uses 'namespace' and 'class' as variable names, and these are reserved keywords in C++. /usr/include/aalogparse/aalogparse.h:137:15: error: expected unqualified-id before ‘namespace’ 137 | char *namespace; | ^~~~~~~~~ /usr/include/aalogparse/aalogparse.h:163:15: error: expected unqualified-id before ‘class’ 163 | char *class; | ^~~~~ This is interesting to me because abi-compliance-checker necessarily processes all headers as C++; but it's likely of general interest to be able to link C++ code to libapparmor. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2004592/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp