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 http://lua.org/index.html 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
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#56374): https://lists.yoctoproject.org/g/yocto/message/56374
Mute This Topic: https://lists.yoctoproject.org/mt/89556445/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-