Nmap Development mailing list archives

Compilation fails with "undefined reference to `luaopen_lpeg'"


From: Claudio Moretti <flyingstar16 () gmail com>
Date: Sun, 6 Mar 2016 14:34:16 +0000

Hi all,

while compiling nmap from SVN (Revision: 35660) on Debian testing (uname
-a: 3.16-3-amd64 #1 SMP Debian 3.16.5-1 (2014-10-10) x86_64), I've been hit
with this error, which is preventing me from compiling.

I found https://github.com/nmap/nmap/issues/237 in which the user was
saying that compiling with -j8 was working; it actually wasn't

https://gist.github.com/mcagl/0cbca5274e0364c59208#file-gistfile1-txt-L198

the error was simply hidden in the middle of the log; this I believe was
effectively preventing him (and myself today) to run "make install".

I started playing around with the various lua versions, trying (and
failing) to get nmap to compile with lua5.3 (./configure
--with-liblua=/usr/include/lua5.3), but configure went looking for lua5.2;
installing lua-lpeg-dev didn't help either.

I eventually managed to compile and install successfully using the included
version of lua (./configure --with-liblua=included), but it's not optimal.

These are the outputs of ./configure and make (both with ">> logfile 2>&1")

https://gist.github.com/flyingstar16/62548554402c72ec1a51
https://gist.github.com/flyingstar16/c44fd220b42d7f58acdc

And, as asked by dmiller in the GitHub ticket,

claudio@host:~/projects/nmap$ objdump -t nse_lpeg.o | grep luaopen
0000000000004890 g     F .text    0000000000000083
_Z12luaopen_lpegP9lua_State

This was run after a "failed" make.

Anyone has any suggestions?

Thanks,

Claudio
_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: