jack-ullery / AppAnvil

Graphical user interface for the AppArmor security module (in-progress)
GNU General Public License v3.0
14 stars 12 forks source link

Can't build. Please help #84

Closed gentoosys closed 4 months ago

gentoosys commented 4 months ago

HI. I am very interested in your project. But I can't build it on Arch from AUR. libappanvil builts ok, but appanvil fails

/usr/src/debug/appanvil-git/AppAnvil/src/tabs/controller/profile_modify_controller.cc:124:(.text.unlikely+0x12b7): undefined reference to AppArmor::Tree::FileMode::getExecuteMode[abi:cxx11]() const' /usr/bin/ld: /tmp/ccggFwdE.ltrans3.ltrans.o: in functionProfileModifyController::handle_file_rule_changed(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&) [clone .cold]': /usr/include/libappanvil/tree/FileRule.hh:10:(.text.unlikely+0x137e): undefined reference to vtable for AppArmor::Tree::FileRule' /usr/bin/ld: /tmp/ccggFwdE.ltrans3.ltrans.o: in functionProfileModifyController::handle_file_rule_changed(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) [clone .cold]': /usr/include/libappanvil/tree/RuleNode.hh:16:(.text.unlikely+0x14ae): undefined reference to vtable for AppArmor::Tree::RuleNode' /usr/bin/ld: /tmp/ccggFwdE.ltrans4.ltrans.o: in functionProfileModifyImpl::update_profile_text()': /usr/src/debug/appanvil-git/AppAnvil/src/tabs/view/profile_modify.cc:49:(.text+0x1409): undefined reference to `AppArmor::Parser::operator std::cxx11::basic_string<char, std::char_traits, std::allocator >() const' /usr/bin/ld: /tmp/ccggFwdE.ltrans4.ltrans.o: in function ProfileModifyImpl<AppArmor::Parser>::handle_raw_profile_text_change()': /usr/src/debug/appanvil-git/AppAnvil/src/tabs/view/profile_modify.cc:56:(.text+0x1821): undefined reference toAppArmor::Parser::operator std::cxx11::basic_string<char, std::char_traits, std::allocator >() const' /usr/bin/ld: /tmp/ccggFwdE.ltrans4.ltrans.o: in function ProfileModifyImpl<AppArmor::Parser>::apply_raw_profile_text_change()': /usr/src/debug/appanvil-git/AppAnvil/src/tabs/view/profile_modify.cc:67:(.text+0x19e6): undefined reference toAppArmor::Parser::updateFromString(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /usr/bin/ld: /tmp/ccggFwdE.ltrans4.ltrans.o: in function Profiles::handle_modify_profile_toggle()': /usr/src/debug/appanvil-git/AppAnvil/src/tabs/view/profile_modify.cc:93:(.text+0x936c): undefined reference toAppArmor::Tree::ProfileRule::name[abi:cxx11]() const' /usr/bin/ld: /usr/src/debug/appanvil-git/AppAnvil/src/tabs/view/profile_modify.cc:43:(.text+0x978f): undefined reference to AppArmor::Parser::hasChanges()' /usr/bin/ld: /tmp/ccggFwdE.ltrans5.ltrans.o: in functionvoid std::cxx11::list<AppArmor::Tree::ProfileRule, std::allocator >::_M_assign_dispatch<std::_List_const_iterator >(std::_List_const_iterator, std::_List_const_iterator, std::__false_type) [clone .isra.0]': /usr/include/libappanvil/tree/ProfileRule.hh:10:(.text+0x545e): undefined reference to `vtable for AppArmor::Tree::ProfileRule' /usr/bin/ld: warning: creating DT_TEXTREL in a PIE collect2: error: ld returned 1 exit status make[2]: [CMakeFiles/appanvil.dir/build.make:558: dist/appanvil] Error 1 make[1]: [CMakeFiles/Makefile2:148: CMakeFiles/appanvil.dir/all] Error 2 make: *** [Makefile:166: all] Error 2 ==> ERROR: A failure occurred in package(). Aborting... error: failed to build 'appanvil-git-r619.2df0101-1':

IT's something in code or Makefile. Please help fix it

jack-ullery commented 4 months ago

Thank you for reporting this. (possible duplicate #81?)

Sorry I've been a little slow on this issue. Work and life have been busy and this is a side project for me, but I will try to replicate this soon (probably on Manjaro).

I imagine the issue has something to do with libappanvil, as I've made recent changes there that might not be compatible with the main branch.

jack-ullery commented 4 months ago

Duplicate of #81