Skip to contentSkip to conversation

suricata: enable lua support

DISCUSSION Gary Huband 2 participants 6 messages Mar 4, 2022 – Mar 8, 2022 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

How can I enable lua support for suricata?  According to
https://suricata.readthedocs.io/en/suricata-6.0.0/install.html
I can add --enable-lua, so I created a suricata_%.bbappend file with

# Add lua
DEPENDS += "lua-native"
RDEPENDS_${PN} += "lua"
EXTRA_OECONF += "--enable-lua"

But when I bitbake suricata I get this error

| checking for magic.h... yes
| checking for magic_open in -lmagic... yes
| checking for LUA... no
| checking for LUA... no
| checking for LUA... no
| checking for LUA... no
| checking lualib.h usability... no
| checking lualib.h presence... no
| checking for lualib.h... no
|
|    ERROR!  liblua headers not found, go get them
|    from http://lua.org/index.html or your distribution:
|
|    Ubuntu: apt-get install liblua5.1-dev
|    Fedora: dnf install lua-devel
|    CentOS/RHEL: yum install lua-devel
|
|    If you installed software in a non-standard prefix
|    consider adjusting the PKG_CONFIG_PATH environment variable
|    or use --with-liblua-includes and --with-liblua-libraries
|    configure option.

lua and lua-native appear to build.

#1 lore raw

perhaps you needs to add lua to DEPENDS as well.

Quoted 46 lines · Gary Huband via lists.yoctoproject.org

How can I enable lua support for suricata? According to
https://suricata.readthedocs.io/en/suricata-6.0.0/install.html
I can add --enable-lua, so I created a suricata_%.bbappend file with

# Add lua
DEPENDS += "lua-native"
RDEPENDS_${PN} += "lua"
EXTRA_OECONF += "--enable-lua"

But when I bitbake suricata I get this error

| checking for magic.h... yes
| checking for magic_open in -lmagic... yes
| checking for LUA... no
| checking for LUA... no
| checking for LUA... no
| checking for LUA... no
| checking lualib.h usability... no
| checking lualib.h presence... no
| checking for lualib.h... no
|
|    ERROR!  liblua headers not found, go get them
|    from http://lua.org/index.html or your distribution:
|
|    Ubuntu: apt-get install liblua5.1-dev
|    Fedora: dnf install lua-devel
|    CentOS/RHEL: yum install lua-devel
|
|    If you installed software in a non-standard prefix
|    consider adjusting the PKG_CONFIG_PATH environment variable
|    or use --with-liblua-includes and --with-liblua-libraries
|    configure option.

lua and lua-native appear to build.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#56368): https://lists.yoctoproject.org/g/yocto/message/56368
Mute This Topic: https://lists.yoctoproject.org/mt/89556445/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

Adding DEPENDS += "lua"  fixed that error.  I'm assuming that allows the configure to find lua.

Now I'm getting a compile error

| /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

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

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?

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

Quoted 6 lines · Gary Huband via lists.yoctoproject.org

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

Quoted 41 lines

| /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
Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#56371): https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.yoctoproject.org%2Fg%2Fyocto%2Fmessage%2F56371&amp;data=04%7C01%7Cgary%40missionsecure.com%7C7f9815dcc0c142b6d92d08d9fe4262cb%7Cf0ca9611f13f4dc98e1b119172b8ec5d%7C0%7C1%7C637820383359878260%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=vwc4qa0p9%2Bbxsfq9RFUYToQuWBvsmNvn0%2FX3%2BOgjQPo%3D&amp;reserved=0
Mute This Topic: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.yoctoproject.org%2Fmt%2F89556445%2F3616698&amp;data=04%7C01%7Cgary%40missionsecure.com%7C7f9815dcc0c142b6d92d08d9fe4262cb%7Cf0ca9611f13f4dc98e1b119172b8ec5d%7C0%7C1%7C637820383359878260%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=rJV2GkSwgJ8OcGoS6W%2FjZ9wt3OBHAyFpasJ%2F0Elpt6k%3D&amp;reserved=0
Group Owner: [email protected]
Unsubscribe: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.yoctoproject.org%2Fg%2Fyocto%2Funsub&amp;data=04%7C01%7Cgary%40missionsecure.com%7C7f9815dcc0c142b6d92d08d9fe4262cb%7Cf0ca9611f13f4dc98e1b119172b8ec5d%7C0%7C1%7C637820383359878260%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=44krUye0EK6%2FjOMm3P%2BEgS%2BlbWEBa4AF%2BSMjXkSzYmk%3D&amp;reserved=0 [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

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>

: : : : : : : : : : : : : : : : : : : : : : : : : : :

[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.

#5 lore raw
Quoted 9 lines · Gary Huband via lists.yoctoproject.org

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

Quoted 136 lines

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

Quoted 6 lines · Gary Huband via lists.yoctoproject.org

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

Quoted 2 lines

|

/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:

Quoted 6 lines

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:

Quoted 6 lines

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:

Quoted 6 lines

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:

Quoted 6 lines

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:

Quoted 6 lines

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:

Quoted 11 lines

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.
You automatically follow any topics you start or reply to. View/Reply Online (#56375):
https://lists.yoctoproject.org/g/yocto/message/56375
Unfollow This Topic: https://lists.yoctoproject.org/unft/89556445/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#6 lore raw

The problems is that the configure.ac file is hard coded for lua5.1. See

https://forum.suricata.io/t/lua-5-4-3-and-suricata-undefined-reference-error/1906/5

I created a patch to change configure.ac to use lua5.3 (I'm using Zeus). But when I "bitbake suricata" I'm getting the same error because it's not updating the configure file. Do I also have to fix the configure file or is there some way I can force a autoreconf?

Thanks

Gary
________________________________
From: Khem Raj <[email protected]>
Sent: Saturday, March 5, 2022 2:55 AM
To: Gary Huband <[email protected]>
Cc: akuster808 <[email protected]>; [email protected] <[email protected]>
Subject: Re: [yocto] suricata: enable lua support

On Fri, Mar 4, 2022 at 6:23 PM Gary Huband via lists.yoctoproject.org<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.yoctoproject.org%2F&data=04%7C01%7Cgary%40missionsecure.com%7Cfdd7bb729dab4632afa508d9fe7da05d%7Cf0ca9611f13f4dc98e1b119172b8ec5d%7C0%7C1%7C637820637801952624%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Flf1GviaQggt7vNDuC46swBvjTl1%2FJoaw4sVQ6RRDW4%3D&reserved=0> <[email protected]<mailto:[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]<mailto:[email protected]>>
Sent: Friday, March 4, 2022 7:52 PM
To: Gary Huband <[email protected]>; [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Subject: Re: [yocto] suricata: enable lua support

On 3/4/22 15:02, Gary Huband via lists.yoctoproject.org<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.yoctoproject.org%2F&data=04%7C01%7Cgary%40missionsecure.com%7Cfdd7bb729dab4632afa508d9fe7da05d%7Cf0ca9611f13f4dc98e1b119172b8ec5d%7C0%7C1%7C637820637801952624%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Flf1GviaQggt7vNDuC46swBvjTl1%2FJoaw4sVQ6RRDW4%3D&reserved=0> wrote:

Quoted 6 lines

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<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Flua.org%2Findex.html&data=04%7C01%7Cgary%40missionsecure.com%7Cfdd7bb729dab4632afa508d9fe7da05d%7Cf0ca9611f13f4dc98e1b119172b8ec5d%7C0%7C1%7C637820637802108939%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=IIiVAzlCWInZxopdvMsLgkyuDmB5YSRF%2Fa%2FCsQAl7r0%3D&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

Quoted 36 lines

| /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'

Quoted 7 lines
| 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://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fmission-secure-inc-&data=04%7C01%7Cgary%40missionsecure.com%7Cfdd7bb729dab4632afa508d9fe7da05d%7Cf0ca9611f13f4dc98e1b119172b8ec5d%7C0%7C1%7C637820637802108939%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=OG%2F50BtrZR9AjIfTtJTuropOzChcINERZyhRWyWyLGA%3D&reserved=0> | Blog<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.missionsecure.com%2Fblog%3Futm_source%3Demail-signature%26utm_medium%3Demail%26utm_campaign%3Dblog-email-sig&data=04%7C01%7Cgary%40missionsecure.com%7Cfdd7bb729dab4632afa508d9fe7da05d%7Cf0ca9611f13f4dc98e1b119172b8ec5d%7C0%7C1%7C637820637802108939%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=pv1FQe%2F9E0oVWISZeGtO3DCs9jWOOyXFsH1kDtruQh4%3D&reserved=0> | Website<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.missionsecure.com%2F%3Futm_source%3Demail-signature%26utm_medium%3Demail%26utm_campaign%3Dweb-email-sig&data=04%7C01%7Cgary%40missionsecure.com%7Cfdd7bb729dab4632afa508d9fe7da05d%7Cf0ca9611f13f4dc98e1b119172b8ec5d%7C0%7C1%7C637820637802108939%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=9wovY4656fj9McZWqGJH3ZOerurcU2Mvsgdsfd%2FNU7M%3D&reserved=0>

: : : : : : : : : : : : : : : : : : : : : : : : : : :

[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.
You automatically follow any topics you start or reply to.
View/Reply Online (#56375): https://lists.yoctoproject.org/g/yocto/message/56375<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.yoctoproject.org%2Fg%2Fyocto%2Fmessage%2F56375&data=04%7C01%7Cgary%40missionsecure.com%7Cfdd7bb729dab4632afa508d9fe7da05d%7Cf0ca9611f13f4dc98e1b119172b8ec5d%7C0%7C1%7C637820637802108939%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=ONpB%2FpsQmxWo%2BNvNLypGYwSKYd6NG4b7RwhiK3KHVbo%3D&reserved=0>
Unfollow This Topic: https://lists.yoctoproject.org/unft/89556445/1997914<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.yoctoproject.org%2Funft%2F89556445%2F1997914&data=04%7C01%7Cgary%40missionsecure.com%7Cfdd7bb729dab4632afa508d9fe7da05d%7Cf0ca9611f13f4dc98e1b119172b8ec5d%7C0%7C1%7C637820637802108939%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=tklYKDpkWtEyC2zgY0PeEm7UAKEyvfRtFMnp%2BWwiWxU%3D&reserved=0>
Group Owner: [email protected]<mailto:yocto%[email protected]>
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.yoctoproject.org%2Fg%2Fyocto%2Funsub&data=04%7C01%7Cgary%40missionsecure.com%7Cfdd7bb729dab4632afa508d9fe7da05d%7Cf0ca9611f13f4dc98e1b119172b8ec5d%7C0%7C1%7C637820637802108939%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=fU5G6GNBdRofEwQAzrv%2BRB0%2FCgayOAeqGASOjWSsUU8%3D&reserved=0> [[email protected]<mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-

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>

: : : : : : : : : : : : : : : : : : : : : : : : : : :

[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.