On Fri, Mar 4, 2022 at 6:23 PM Gary Huband via lists.yoctoproject.org <gary=
[email protected]> wrote:

> The Suricata install site also says to install
>
> liblua5.1-dev
>
> Does this mean that Suricata needs lua 5.1 (which is very old)?? For Zeus
> the lua recipe is 5.3.5.
>
> Do I need to create a recipe for lua 5.1?
>

seems so, lua5.1 is not ABI compatible with newer Lua, so if an app needs
this version then
you will have to add it, perhaps see if you can just use internal version
or something like that

>
> Gary
> ------------------------------
> *From:* akuster808 <[email protected]>
> *Sent:* Friday, March 4, 2022 7:52 PM
> *To:* Gary Huband <[email protected]>; [email protected] <
> [email protected]>
> *Subject:* Re: [yocto] suricata: enable lua support
>
>
>
> On 3/4/22 15:02, Gary Huband via lists.yoctoproject.org wrote:
> >
> > Adding DEPENDS += "lua"  fixed that error.  I'm assuming that allows
> > the configure to find lua.
> >
> > Now I'm getting a compile error
> >
>
> I added this to the recipe and it appears the liblua it  is looking for
> does not exist.
>
> PACKAGECONFIG[lua] = "--enable-lua
> --with-liblua-includes=${STAGING_INCDIR}
> --with-liblua-libraries==${STAGING_LIBDIR}, --disable-lua,lua, lua"
>
> Error:
>
> checking for luaL_openlibs in -llua5.1... no
> |
> |    ERROR!  liblua library not found, go get it
> |    from
> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Flua.org%2Findex.html&amp;data=04%7C01%7Cgary%40missionsecure.com%7C7f9815dcc0c142b6d92d08d9fe4262cb%7Cf0ca9611f13f4dc98e1b119172b8ec5d%7C0%7C1%7C637820383359878260%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=FdB7jyQwXX%2BVjjhLSDhKNSt41GUOgdg%2FG3ajSKIElo0%3D&amp;reserved=0
> or your distribution:
> |
> |    Ubuntu: apt-get install liblua5.1-dev
>
>
> It may be  the lua recipe.  I only see the static lib 'liblua.a'
>
> -armin
>
> > |
> >
> /tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/suricata/6.0.3-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/9.2.0/ld:
>
> > util-lua-dns.o: in function `DnsGetTxid':
> > |
> > /usr/src/debug/suricata/6.0.3-r0/suricata-6.0.3/src/util-lua-dns.c:80:
> > undefined reference to `rs_dns_lua_get_tx_id'
> > |
> >
> /tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/suricata/6.0.3-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/9.2.0/ld:
>
> > util-lua-dns.o: in function `DnsGetAnswerTable':
> > |
> > /usr/src/debug/suricata/6.0.3-r0/suricata-6.0.3/src/util-lua-dns.c:125:
> > undefined reference to `rs_dns_lua_get_answer_table'
> > |
> >
> /tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/suricata/6.0.3-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/9.2.0/ld:
>
> > util-lua-dns.o: in function `DnsGetAuthorityTable':
> > |
> > /usr/src/debug/suricata/6.0.3-r0/suricata-6.0.3/src/util-lua-dns.c:133:
> > undefined reference to `rs_dns_lua_get_authority_table'
> > |
> >
> /tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/suricata/6.0.3-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/9.2.0/ld:
>
> > util-lua-dns.o: in function `DnsGetQueryTable':
> > |
> > /usr/src/debug/suricata/6.0.3-r0/suricata-6.0.3/src/util-lua-dns.c:117:
> > undefined reference to `rs_dns_lua_get_query_table'
> > |
> >
> /tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/suricata/6.0.3-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/9.2.0/ld:
>
> > util-lua-dns.o: in function `DnsGetDnsRrname':
> > |
> > /usr/src/debug/suricata/6.0.3-r0/suricata-6.0.3/src/util-lua-dns.c:69:
> > undefined reference to `rs_dns_lua_get_rrname'
> > |
> >
> /tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/suricata/6.0.3-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/9.2.0/ld:
>
> > util-lua-dns.o: in function `DnsGetRcode':
> > |
> > /usr/src/debug/suricata/6.0.3-r0/suricata-6.0.3/src/util-lua-dns.c:92:
> > undefined reference to `rs_dns_lua_get_rcode'
> > | collect2: error: ld returned 1 exit status
> > | Makefile:2118: recipe for target 'suricata' failed
> > | make[2]: *** [suricata] Error 1
> >
> >
> >
> >
>
>
> *Gary Huband*
> *Sr. Software and Systems Engineer*
>
> Office: 434.284.8071 x720
> Direct: 434.260.4995
> [email protected]
>
> *Follow Us!*
> LinkedIn <https://www.linkedin.com/company/mission-secure-inc->  |  Blog
> <https://www.missionsecure.com/blog?utm_source=email-signature&utm_medium=email&utm_campaign=blog-email-sig>
>   |  Website
> <https://www.missionsecure.com/?utm_source=email-signature&utm_medium=email&utm_campaign=web-email-sig>
>
> : : : : : : : : : : : : : : : : : : : : : : : : : : :
>
> [image: MSi]
>
> This email and any files transmitted with it are confidential and
> proprietary and intended solely for the use of the individual or entity to
> whom they are addressed. Any dissemination, distribution or copying of this
> communication is strictly prohibited without our prior permission. If you
> received this in error, please contact the sender and delete the material
> from any computer.
>
>
> 
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#56376): https://lists.yoctoproject.org/g/yocto/message/56376
Mute This Topic: https://lists.yoctoproject.org/mt/89556445/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to