[OpenWrt-Devel] Not sure what is preventing snort3 build
Rosen Penev
rosenp at gmail.com
Thu Apr 18 02:23:17 EDT 2019
On Wed, Apr 17, 2019 at 9:49 PM Rosen Penev <rosenp at gmail.com> wrote:
>
> On Wed, Apr 17, 2019 at 6:56 PM W. Michael Petullo <mike at flyn.org> wrote:
> >
> > The OpenWrt build server seems to be unable to build my snort3 package. See
> > https://downloads.openwrt.org/snapshots/faillogs/x86_64/packages/snort3/compile.txt:
> >
> > [...]
> > make[4]: Leaving directory '/data/bowl-builder/x86_64/build/sdk/build_dir/target-x86_64_musl/snort3/snort-3.0.0'
> > Package snort3 is missing dependencies for the following libraries:
> > liblzma.so.5
> > Makefile:103: recipe for target '/data/bowl-builder/x86_64/build/sdk/bin/packages/x86_64/packages/snort3_3.0.0-beta-2_x86_64.ipk' failed
> > make[3]: *** [/data/bowl-builder/x86_64/build/sdk/bin/packages/x86_64/packages/snort3_3.0.0-beta-2_x86_64.ipk] Error 1
> > time: package/feeds/packages/snort3/compile#851.47#75.04#966.05
> >
> > I am not sure why liblzma.so.5 is required. The snort3 build process
> > states:
> >
> > LZMA: OFF
> I reproduced. Gives the same error. Something's definitely broken.
>
> Before compiling next time, install liblzma in make menuconfig.
>
> From a quick grep, this is what I get:
>
> CMakeCache.txt:HAVE_LZMA:UNINITIALIZED=OFF
> CMakeCache.txt:LIBLZMA_INCLUDE_DIR:PATH=/home/mangix/devstuff/openwrt/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/usr/include
> CMakeCache.txt:LIBLZMA_LIBRARY:FILEPATH=/home/mangix/devstuff/openwrt/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/usr/lib/liblzma.so
> CMakeCache.txt://Have library
> /home/mangix/devstuff/openwrt/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/usr/lib/liblzma.so
> CMakeCache.txt:LIBLZMA_HAS_AUTO_DECODER:INTERNAL=1
> CMakeCache.txt://Have library
> /home/mangix/devstuff/openwrt/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/usr/lib/liblzma.so
> CMakeCache.txt:LIBLZMA_HAS_EASY_ENCODER:INTERNAL=1
> CMakeCache.txt://Have library
> /home/mangix/devstuff/openwrt/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/usr/lib/liblzma.so
> CMakeCache.txt:LIBLZMA_HAS_LZMA_PRESET:INTERNAL=1
> CMakeCache.txt://ADVANCED property for variable: LIBLZMA_INCLUDE_DIR
> CMakeCache.txt:LIBLZMA_INCLUDE_DIR-ADVANCED:INTERNAL=1
> CMakeCache.txt://ADVANCED property for variable: LIBLZMA_LIBRARY
> CMakeCache.txt:LIBLZMA_LIBRARY-ADVANCED:INTERNAL=1
>
> Maybe those variables need to be manually set to /dev/null
> >
> > Furthermore, a local build compiles snort3 without liblzma.
> >
> > The package I build makes no reference to libzma in its binaries:
> >
> > # for f in $(opkg files snort3 | grep -v Package); do ldd $f; done
> > ldd (0x7fbc571cc000)
> > libtirpc.so.3 => /usr/lib/libtirpc.so.3 (0x7fbc5719f000)
> > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7fbc5718b000)
> > libc.so => ldd (0x7fbc571cc000)
> > ldd: /etc/init.d/snort: Not a valid dynamic program
> > /lib/ld-musl-x86_64.so.1 (0x7fcaadb74000)
> > libtirpc.so.3 => /usr/lib/libtirpc.so.3 (0x7fcaadb4c000)
> > libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7fcaada12000)
> > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7fcaad9fe000)
> > libc.so => /lib/ld-musl-x86_64.so.1 (0x7fcaadb74000)
> > /lib/ld-musl-x86_64.so.1 (0x7f182ed3c000)
> > libtirpc.so.3 => /usr/lib/libtirpc.so.3 (0x7f182ed14000)
> > libpcap.so.1 => /usr/lib/libpcap.so.1 (0x7f182ecda000)
> > libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f182eba0000)
> > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7f182eb8c000)
> > libc.so => /lib/ld-musl-x86_64.so.1 (0x7f182ed3c000)
> > ldd: /usr/share/lua/snort_plugin.lua: Not a valid dynamic program
> > /lib/ld-musl-x86_64.so.1 (0x7f653b209000)
> > libtirpc.so.3 => /usr/lib/libtirpc.so.3 (0x7f653b1e1000)
> > libdaq.so.4 => /usr/lib/libdaq.so.4 (0x7f653b1d9000)
> > libdnet.so.1 => /usr/lib/libdnet.so.1 (0x7f653b1c9000)
> > libhwloc.so.15 => /usr/lib/libhwloc.so.15 (0x7f653b18c000)
> > libluajit-5.1.so.2 => /usr/lib/libluajit-5.1.so.2 (0x7f653b125000)
> > libcrypto.so.1.1 => /usr/lib/libcrypto.so.1.1 (0x7f653ae64000)
> > libpcap.so.1 => /usr/lib/libpcap.so.1 (0x7f653ae2a000)
> > libpcre.so.1 => /usr/lib/libpcre.so.1 (0x7f653aded000)
> > libuuid.so.1 => /usr/lib/libuuid.so.1 (0x7f653ade4000)
> > libz.so.1 => /usr/lib/libz.so.1 (0x7f653add0000)
> > libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f653ac96000)
> > libc.so => /lib/ld-musl-x86_64.so.1 (0x7f653b209000)
> > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7f653ac82000)
> > ldd (0x7fee74cc5000)
> > libtirpc.so.3 => /usr/lib/libtirpc.so.3 (0x7fee74c98000)
> > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7fee74c84000)
> > libc.so => ldd (0x7fee74cc5000)
> > ldd: /etc/config/snort: Not a valid dynamic program
> > ldd: /usr/share/lua/snort_config.lua: Not a valid dynamic program
> >
> > Does anyone have an idea of what might be causing the build server
> > to fail?
This fixed it for me
--- a/cmake/include_libraries.cmake
+++ b/cmake/include_libraries.cmake
@@ -14,7 +14,6 @@ if (ENABLE_UNIT_TESTS)
endif (ENABLE_UNIT_TESTS)
# optional libraries
-find_package(LibLZMA QUIET)
find_package(Asciidoc QUIET)
find_package(DBLATEX QUIET)
find_package(Ruby QUIET 1.8.7)
Good enough.
> >
> > --
> > Mike
> >
> > :wq
> >
> > _______________________________________________
> > openwrt-devel mailing list
> > openwrt-devel at lists.openwrt.org
> > https://lists.openwrt.org/mailman/listinfo/openwrt-devel
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list