Hi Michael, Thank you for your answers!
On Tue, 2017-01-17 at 19:52 +0000, Michael Smith wrote: > Unfortunately this is made a little harder since our builds of boost > and yaml-cpp aren't hosted. However, the instructions for building > them are > at > https://github.com/puppetlabs/pl-build-tools-vanagon/blob/master/configs/components/boost.rb > and > https://github.com/puppetlabs/pl-build-tools-vanagon/blob/master/configs/components/yaml-cpp.rb. > Those both build statically, so you'd then use `-DBOOST_STATIC=ON > -DYAMLCPP_STATIC=ON`. We use Boost 1.58 currently. I already had built YAML-CPP, but I was using ubuntu default Boost. > As for the specific issues, it looks like building with -fPIC would > help with the errors you saw with static libraries > (see > https://github.com/puppetlabs/pl-build-tools-vanagon/blob/master/configs/components/boost.rb#L63-L64 > and > https://github.com/puppetlabs/pl-build-tools-vanagon/blob/master/files/cmake/linux-toolchain.cmake#L21-L22). That's very interesting and probably the bits I was missing. I assumed that my dependencies would be built with -fPIC enabled, including yaml-cpp. It looks like ubuntu's Boost static libraries are not built with -fPIC, thus generating those errors. > The dynamic link issues are harder to pin down. That is likely an > issue in the order things are linked (there are lots of possible build > configurations, so the one you're trying with dynamic libraries is > likely not tested). Yes, you're probably right. Also the gcc linker is not very good at permutations :) It might also come from using different compiler versions, since on ubuntu 16.04 gcc defaults to version 5.x, and I'm building with gcc 4.8 which looks like is what facter is built with in the puppet-agent package. I have a battle plan now, thanks :) I'll report my progress here. -- Brice Figureau My Blog: http://www.masterzen.fr/ -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/1484751025.28660.8.camel%40daysofwonder.com. For more options, visit https://groups.google.com/d/optout.