And total bonehead solution. I was missing LD_LIBRARY_PATH and DYLD_LIBRARY_PATH from my env.
Thanks to anyone who took a moment to read this! :D Eli On Fri, Feb 12, 2016 at 11:05 AM Eli Flesher <[email protected]> wrote: > Further diagnostics seem to show inconsistent linking: > > :~/logagent/heka_build/build/heka$ ldd ./bin/hekad > linux-vdso.so.1 => (0x00007ffebb57d000) > libluasandbox.so.0 => > /home/vagrant/logagent/heka_build/build/heka/./bin/../lib/libluasandbox.so.0 > (0x00007fc1e363c000) > libluasb.so.0 => > /home/vagrant/logagent/heka_build/build/heka/./bin/../lib/libluasb.so.0 > (0x00007fc1e3402000) > libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 > (0x00007fc1e31dd000) > libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc1e2e13000) > libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fc1e2b0b000) > libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc1e2906000) > /lib64/ld-linux-x86-64.so.2 (0x00007fc1e3849000) > :~/logagent/heka_build/build/heka$ ldd ./share/heka/lua_modules/lpeg.so > linux-vdso.so.1 => (0x00007ffe9eb0f000) > libluasb.so.0 => not found > libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe6ac060000) > /lib64/ld-linux-x86-64.so.2 (0x00007fe6ac645000) > > > I’m not at all familiar with this build system. Can anyone help me here? > > On Fri, Feb 12, 2016 at 10:42 AM Eli Flesher <[email protected]> wrote: > >> FWIW these artifacts are being created by the build: >> >> $ find ./ | grep libluasb.so.0 >> ./build/heka/lib/libluasb.so.0 >> ./build/ep_base/Build/lua_sandbox/ep_base/Build/lua-5_1_5/libluasb.so.0 >> ./build/ep_base/Build/lua_sandbox/ep_base/lib/libluasb.so.0 >> ./build/_CPack_Packages/Linux/DEB/heka_0.10.0_amd64/usr/lib/libluasb.so.0 >> >> $ find ./ | grep libluasandbox.so.0 >> ./build/heka/lib/libluasandbox.so.0.10.2 >> ./build/heka/lib/libluasandbox.so.0 >> ./build/ep_base/Build/lua_sandbox/src/libluasandbox.so.0.10.2 >> ./build/ep_base/Build/lua_sandbox/src/libluasandbox.so.0 >> >> ./build/_CPack_Packages/Linux/DEB/heka_0.10.0_amd64/usr/lib/libluasandbox.so.0.10.2 >> >> ./build/_CPack_Packages/Linux/DEB/heka_0.10.0_amd64/usr/lib/libluasandbox.so.0 >> >> On Fri, Feb 12, 2016 at 10:21 AM Eli Flesher <[email protected]> wrote: >> >>> Hi Everyone, >>> >>> I’m running into some trouble building a Deb for Heka with customer >>> plugins. All of the customer plugins are written in Go and after source >>> ./build.sh is ran, I have working binaries. I then run `make install` in >>> the build directory followed by cpack and/or make deb. >>> >>> Both cpack and make deb give me this following error message about >>> missing libraries that I can’t seem to resolve. I’m using the v0.10.0 tag >>> for Heka. >>> >>> $ cpack >>> CPack: Create package using TGZ >>> CPack: Install projects >>> CPack: - Run preinstall target for: heka >>> CPack: - Install project: heka >>> CPack: Create package >>> CPack: - package: >>> /home/eflesher/logagent/heka_build/build/heka-0_10_0-linux-amd64.tar.gz >>> generated. >>> CPack: Create package using DEB >>> CPack: Install projects >>> CPack: - Install scripts: >>> /home/eflesher/logagent/heka_build/cmake/CMakeDebHelperInstall.cmake >>> CPack: - Install script: >>> /home/eflesher/logagent/heka_build/cmake/CMakeDebHelperInstall.cmake >>> CPack: - Run preinstall target for: heka >>> CPack: - Install project: heka >>> CPack: Create package >>> CPackDeb: - Generating dependency list >>> CMake Error at /usr/share/cmake-2.8/Modules/CPackDeb.cmake:265 (message): >>> CPackDeb: dpkg-shlibdeps: dpkg-shlibdeps: error: couldn't find library >>> libluasb.so.0 needed by ./usr/share/heka/lua_modules/sax.so (ELF >>> format: >>> 'elf64-x86-64'; RPATH: '') >>> >>> dpkg-shlibdeps: error: couldn't find library libluasandbox.so.0 needed >>> by >>> ./usr/share/heka/lua_modules/sax.so (ELF format: 'elf64-x86-64'; >>> RPATH: '') >>> >>> dpkg-shlibdeps: warning: binaries to analyze should already be >>> installed in >>> their package's directory >>> >>> dpkg-shlibdeps: warning: binaries to analyze should already be >>> installed in >>> their package's directory >>> >>> dpkg-shlibdeps: error: couldn't find library libluasb.so.0 needed by >>> ./usr/share/heka/lua_io_modules/socket/core.so (ELF format: >>> 'elf64-x86-64'; >>> RPATH: '') >>> >>> dpkg-shlibdeps: warning: binaries to analyze should already be >>> installed in >>> their package's directory >>> >>> dpkg-shlibdeps: error: couldn't find library libluasb.so.0 needed by >>> ./usr/share/heka/lua_modules/circular_buffer.so (ELF format: >>> 'elf64-x86-64'; RPATH: '') >>> >>> dpkg-shlibdeps: error: couldn't find library libluasandbox.so.0 needed >>> by >>> ./usr/share/heka/lua_modules/circular_buffer.so (ELF format: >>> 'elf64-x86-64'; RPATH: '') >>> >>> dpkg-shlibdeps: warning: binaries to analyze should already be >>> installed in >>> their package's directory >>> >>> dpkg-shlibdeps: warning: $ORIGIN is used in RPATH of ./usr/bin/hekad >>> and >>> the corresponding directory could not be identified due to lack of >>> DEBIAN >>> sub-directory in the root of package's build tree >>> >>> dpkg-shlibdeps: error: couldn't find library libluasandbox.so.0 needed >>> by >>> ./usr/bin/hekad (ELF format: 'elf64-x86-64'; RPATH: '$ORIGIN/../lib') >>> >>> dpkg-shlibdeps: warning: $ORIGIN is used in RPATH of ./usr/bin/hekad >>> and >>> the corresponding directory could not be identified due to lack of >>> DEBIAN >>> sub-directory in the root of package's build tree >>> >>> dpkg-shlibdeps: error: couldn't find library libluasb.so.0 needed by >>> ./usr/bin/hekad (ELF format: 'elf64-x86-64'; RPATH: '$ORIGIN/../lib') >>> >>> dpkg-shlibdeps: warning: $ORIGIN is used in RPATH of ./usr/bin/hekad >>> and >>> the corresponding directory could not be identified due to lack of >>> DEBIAN >>> sub-directory in the root of package's build tree >>> >>> dpkg-shlibdeps: warning: $ORIGIN is used in RPATH of ./usr/bin/hekad >>> and >>> the corresponding directory could not be identified due to lack of >>> DEBIAN >>> sub-directory in the root of package's build tree >>> >>> dpkg-shlibdeps: warning: binaries to analyze should already be >>> installed in >>> their package's directory >>> >>> dpkg-shlibdeps: error: couldn't find library libluasb.so.0 needed by >>> ./usr/share/heka/lua_modules/hyperloglog.so (ELF format: >>> 'elf64-x86-64'; >>> RPATH: '') >>> >>> dpkg-shlibdeps: error: couldn't find library libluasandbox.so.0 needed >>> by >>> ./usr/share/heka/lua_modules/hyperloglog.so (ELF format: >>> 'elf64-x86-64'; >>> RPATH: '') >>> >>> dpkg-shlibdeps: warning: binaries to analyze should already be >>> installed in >>> their package's directory >>> >>> dpkg-shlibdeps: error: couldn't find library libluasb.so.0 needed by >>> ./usr/share/heka/lua_io_modules/mime/core.so (ELF format: >>> 'elf64-x86-64'; >>> RPATH: '') >>> >>> dpkg-shlibdeps: warning: binaries to analyze should already be >>> installed in >>> their package's directory >>> >>> >>> ▽ >>> dpkg-shlibdeps: warning: binaries to analyze should already be >>> installed in >>> their package's directory >>> >>> dpkg-shlibdeps: warning: binaries to analyze should already be >>> installed in >>> their package's directory >>> >>> dpkg-shlibdeps: warning: binaries to analyze should already be >>> installed in >>> their package's directory >>> >>> dpkg-shlibdeps: error: couldn't find library libluasb.so.0 needed by >>> ./usr/share/heka/lua_modules/cjson.so (ELF format: 'elf64-x86-64'; >>> RPATH: >>> '') >>> >>> dpkg-shlibdeps: warning: binaries to analyze should already be >>> installed in >>> their package's directory >>> >>> dpkg-shlibdeps: error: couldn't find library libluasb.so.0 needed by >>> ./usr/lib/libluasandbox.so.0.10.2 (ELF format: 'elf64-x86-64'; RPATH: >>> '') >>> >>> dpkg-shlibdeps: warning: binaries to analyze should already be >>> installed in >>> their package's directory >>> >>> dpkg-shlibdeps: warning: binaries to analyze should already be >>> installed in >>> their package's directory >>> >>> dpkg-shlibdeps: error: couldn't find library libluasb.so.0 needed by >>> ./usr/share/heka/lua_modules/lpeg.so (ELF format: 'elf64-x86-64'; >>> RPATH: >>> '') >>> >>> dpkg-shlibdeps: warning: binaries to analyze should already be >>> installed in >>> their package's directory >>> >>> dpkg-shlibdeps: error: couldn't find library libluasb.so.0 needed by >>> ./usr/share/heka/lua_modules/cuckoo_filter.so (ELF format: >>> 'elf64-x86-64'; >>> RPATH: '') >>> >>> dpkg-shlibdeps: error: couldn't find library libluasandbox.so.0 needed >>> by >>> ./usr/share/heka/lua_modules/cuckoo_filter.so (ELF format: >>> 'elf64-x86-64'; >>> RPATH: '') >>> >>> dpkg-shlibdeps: warning: binaries to analyze should already be >>> installed in >>> their package's directory >>> >>> dpkg-shlibdeps: error: couldn't find library libluasb.so.0 needed by >>> ./usr/share/heka/lua_modules/bloom_filter.so (ELF format: >>> 'elf64-x86-64'; >>> RPATH: '') >>> >>> dpkg-shlibdeps: error: couldn't find library libluasandbox.so.0 needed >>> by >>> ./usr/share/heka/lua_modules/bloom_filter.so (ELF format: >>> 'elf64-x86-64'; >>> RPATH: '') >>> >>> dpkg-shlibdeps: warning: binaries to analyze should already be >>> installed in >>> their package's directory >>> >>> dpkg-shlibdeps: warning: binaries to analyze should already be >>> installed in >>> their package's directory >>> >>> dpkg-shlibdeps: error: couldn't find library libluasb.so.0 needed by >>> ./usr/share/heka/lua_modules/struct.so (ELF format: 'elf64-x86-64'; >>> RPATH: >>> '') >>> >>> dpkg-shlibdeps: warning: binaries to analyze should already be >>> installed in >>> their package's directory >>> >>> dpkg-shlibdeps: error: cannot continue due to the errors listed above >>> >>> Note: libraries are not searched in other binary packages that do not >>> have >>> any shlibs or symbols file. >>> >>> To help dpkg-shlibdeps find private libraries, you might need to use >>> -l. >>> >>> >>> >>> CPack Error: Error while execution CPackDeb.cmake >>> CPack Error: Problem compressing the directory >>> CPack Error: Error when generating package: heka >>> -- >>> — >>> *Elijah Flesher* | *Lyft* <http://lyft.me/> | *Software Engineer* >>> 206.661.4697 | @eliflesher >>> >> -- >> — >> *Elijah Flesher* | *Lyft* <http://lyft.me/> | *Software Engineer* >> 206.661.4697 | @eliflesher >> > -- > — > *Elijah Flesher* | *Lyft* <http://lyft.me/> | *Software Engineer* > 206.661.4697 | @eliflesher > -- — *Elijah Flesher* | *Lyft* <http://lyft.me/> | *Software Engineer* 206.661.4697 | @eliflesher
_______________________________________________ Heka mailing list [email protected] https://mail.mozilla.org/listinfo/heka

