From: Thomas Petazzoni Date: Sun, 31 Jan 2021 23:30:21 +0100 Subject: [Buildroot] [PATCH 1/1] package/pugixml: drop BR2_PACKAGE_PUGIXML_HEADER_ONLY In-Reply-To: <20210128172935.4138671-1-fontaine.fabrice@gmail.com> References: <20210128172935.4138671-1-fontaine.fabrice@gmail.com> Message-ID: <20210131233021.605e67b0@windsurf.home> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On Thu, 28 Jan 2021 18:29:35 +0100 Fabrice Fontaine wrote: > Drop BR2_PACKAGE_PUGIXML_HEADER_ONLY which raises a build failure with > gerbera (the only package that is using pugixml). Indeed, there is two > issues: > - gerbera is not aware that it must define PUGIXML_HEADER_ONLY > - pugixml.cpp is not available in the staging directory so gerbera > can't use it > > It should be noted that pugixml continues to install a (non working) > library even when PUGIXML_HEADER_ONLY is enabled resulting in a build > failure at linking stage instead of configure step: > > [100%] Linking CXX executable gerbera > /home/buildroot/autobuild/run/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-musleabihf/8.3.0/../../../../arm-buildroot-linux-musleabihf/bin/ld: liblibgerbera.a(config_manager.cc.o): in function `ConfigManager::getElement(std::__cxx11::basic_string, std::allocator >) const': > config_manager.cc:(.text+0x4d8): undefined reference to `pugi::xml_document::document_element() const' This looks like an upstream bug in pugixml, isn't it ? We're using pugixml 1.10, but a 1.11 has been released since then. Have you tried that ? Did you ask upstream pugixml about this issue ? Thanks! Thomas -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com