Hi,

See the following:

$ uname -a
Linux Manjaro 5.3.7-2-MANJARO #1 SMP PREEMPT Tue Oct 22 18:56:05 UTC
2019 x86_64 GNU/Linux

$ yay -S lua52

$ make COPTS="-DHAVE_DBUS -DHAVE_IDN -DHAVE_LUASCRIPT -DHAVE_CONNTRACK
-DHAVE_DNSSEC" -j24
Package lua5.2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `lua5.2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'lua5.2', required by 'virtual:world', not found
Package lua5.2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `lua5.2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'lua5.2', required by 'virtual:world', not found
make[1]: Entering directory
'/home/data/software/anti-gfw/dns/dnsmasq/dnsmasq.git/src'
cc  -o dnsmasq cache.o rfc1035.o util.o option.o forward.o network.o
dnsmasq.o dhcp.o lease.o rfc2131.o netlink.o dbus.o bpf.o helper.o
tftp.o log.o conntrack.o dhcp6.o rfc3315.o dhcp-common.o outpacket.o
radv.o slaac.o auth.o ipset.o domain.o dnssec.o blockdata.o tables.o
loop.o inotify.o poll.o rrfilter.o edns0.o arp.o crypto.o dump.o
ubus.o metrics.o -ldbus-1    -lidn   -lnetfilter_conntrack -lnfnetlink
    -lnettle -lhogweed  -lgmp
/usr/bin/ld: helper.o: in function `grab_extradata_lua.part.0':
helper.c:(.text+0x3e): undefined reference to `lua_pushstring'
/usr/bin/ld: helper.c:(.text+0x52): undefined reference to `lua_setfield'
/usr/bin/ld: helper.o: in function `create_helper':
helper.c:(.text+0x308): undefined reference to `luaL_newstate'
/usr/bin/ld: helper.c:(.text+0x317): undefined reference to `luaL_openlibs'
/usr/bin/ld: helper.c:(.text+0x333): undefined reference to `luaL_loadfilex'
/usr/bin/ld: helper.c:(.text+0x352): undefined reference to `lua_pcallk'
/usr/bin/ld: helper.c:(.text+0x36d): undefined reference to `lua_tolstring'
/usr/bin/ld: helper.c:(.text+0x3b1): undefined reference to `lua_settop'
/usr/bin/ld: helper.c:(.text+0x3c4): undefined reference to `lua_getglobal'
/usr/bin/ld: helper.c:(.text+0x3d5): undefined reference to `lua_type'
/usr/bin/ld: helper.c:(.text+0x3ef): undefined reference to `lua_settop'
/usr/bin/ld: helper.c:(.text+0x6e3): undefined reference to `lua_getglobal'
/usr/bin/ld: helper.c:(.text+0x6f4): undefined reference to `lua_type'
/usr/bin/ld: helper.c:(.text+0x70e): undefined reference to `lua_settop'
/usr/bin/ld: helper.c:(.text+0xbb0): undefined reference to `lua_getglobal'
/usr/bin/ld: helper.c:(.text+0xbc1): undefined reference to `lua_pushstring'
/usr/bin/ld: helper.c:(.text+0xbd1): undefined reference to `lua_createtable'
/usr/bin/ld: helper.c:(.text+0xc0a): undefined reference to `lua_pushnumber'
/usr/bin/ld: helper.c:(.text+0xc22): undefined reference to `lua_setfield'
/usr/bin/ld: helper.c:(.text+0xc3b): undefined reference to `lua_pushstring'
/usr/bin/ld: helper.c:(.text+0xc53): undefined reference to `lua_setfield'
/usr/bin/ld: helper.c:(.text+0xc6c): undefined reference to `lua_pushstring'
/usr/bin/ld: helper.c:(.text+0xc84): undefined reference to `lua_setfield'
/usr/bin/ld: helper.c:(.text+0xe7c): undefined reference to `lua_pushstring'
/usr/bin/ld: helper.c:(.text+0xe94): undefined reference to `lua_setfield'
/usr/bin/ld: helper.c:(.text+0xebd): undefined reference to `lua_pushstring'
/usr/bin/ld: helper.c:(.text+0xed5): undefined reference to `lua_setfield'
/usr/bin/ld: helper.c:(.text+0xeef): undefined reference to `lua_pushstring'
/usr/bin/ld: helper.c:(.text+0xf07): undefined reference to `lua_setfield'
/usr/bin/ld: helper.c:(.text+0xf1f): undefined reference to `lua_callk'
/usr/bin/ld: helper.c:(.text+0xf92): undefined reference to `lua_getglobal'
/usr/bin/ld: helper.c:(.text+0xfa3): undefined reference to `lua_type'
/usr/bin/ld: helper.c:(.text+0xfbd): undefined reference to `lua_pushstring'
/usr/bin/ld: helper.c:(.text+0xfcd): undefined reference to `lua_createtable'
/usr/bin/ld: helper.c:(.text+0xfe7): undefined reference to `lua_pushstring'
/usr/bin/ld: helper.c:(.text+0xfff): undefined reference to `lua_setfield'
/usr/bin/ld: helper.c:(.text+0x1010): undefined reference to `lua_pushstring'
/usr/bin/ld: helper.c:(.text+0x1028): undefined reference to `lua_setfield'
/usr/bin/ld: helper.c:(.text+0x104a): undefined reference to `lua_pushstring'
/usr/bin/ld: helper.c:(.text+0x127d): undefined reference to `lua_getglobal'
/usr/bin/ld: helper.c:(.text+0x128e): undefined reference to `lua_type'
/usr/bin/ld: helper.c:(.text+0x12ac): undefined reference to `lua_callk'
/usr/bin/ld: helper.c:(.text+0x13d0): undefined reference to `lua_pushstring'
/usr/bin/ld: helper.c:(.text+0x13e0): undefined reference to `lua_createtable'
/usr/bin/ld: helper.c:(.text+0x13fa): undefined reference to `lua_pushstring'
/usr/bin/ld: helper.c:(.text+0x1412): undefined reference to `lua_setfield'
/usr/bin/ld: helper.c:(.text+0x142c): undefined reference to `lua_pushstring'
/usr/bin/ld: helper.c:(.text+0x15bd): undefined reference to `lua_pushstring'
/usr/bin/ld: helper.c:(.text+0x15d5): undefined reference to `lua_setfield'
/usr/bin/ld: helper.c:(.text+0x15fb): undefined reference to `lua_pushstring'
/usr/bin/ld: helper.c:(.text+0x1613): undefined reference to `lua_setfield'
/usr/bin/ld: helper.c:(.text+0x162d): undefined reference to `lua_pushstring'
/usr/bin/ld: helper.c:(.text+0x1645): undefined reference to `lua_setfield'
/usr/bin/ld: helper.c:(.text+0x165f): undefined reference to `lua_pushstring'
/usr/bin/ld: helper.c:(.text+0x1677): undefined reference to `lua_setfield'
/usr/bin/ld: helper.c:(.text+0x16ea): undefined reference to `lua_getglobal'
/usr/bin/ld: helper.c:(.text+0x16fb): undefined reference to `lua_type'
/usr/bin/ld: helper.c:(.text+0x1750): undefined reference to `lua_pushnumber'
/usr/bin/ld: helper.c:(.text+0x1768): undefined reference to `lua_setfield'
/usr/bin/ld: helper.c:(.text+0x178d): undefined reference to `lua_callk'
/usr/bin/ld: helper.c:(.text+0x1844): undefined reference to `lua_pushstring'
/usr/bin/ld: helper.c:(.text+0x185c): undefined reference to `lua_setfield'
/usr/bin/ld: helper.c:(.text+0x188f): undefined reference to `lua_pushstring'
/usr/bin/ld: helper.c:(.text+0x18a7): undefined reference to `lua_setfield'
collect2: error: ld returned 1 exit status
make[1]: *** [/home/data/software/dnsmasq.git/Makefile:164: dnsmasq] Error 1
make[1]: Leaving directory '/home/data/software/dnsmasq.git/src'
make: *** [Makefile:86: all] Error 2


How to solve this issue?
-- 
Hongsheng Zhao <hongyi.z...@gmail.com>
Institute of Semiconductors, Chinese Academy of Sciences
GnuPG DSA: 0xD108493

_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

Reply via email to