[Oisf-users] Errors compiling suricata2.1beta2

C. L. Martinez carlopmart at gmail.com
Fri Nov 7 08:26:41 UTC 2014


Hi all,

 I am trying to install suricata 2.1beta2 under a FreeBSD 10 amd64
host. I have installed lua52 package. Configure displays the following
compile options:

Suricata Configuration:
  AF_PACKET support:                       no
  PF_RING support:                         no
  NFQueue support:                         no
  NFLOG support:                           no
  IPFW support:                            yes
  DAG enabled:                             no
  Napatech enabled:                        no
  Unix socket enabled:                     yes
  Detection enabled:                       yes

  libnss support:                          yes
  libnspr support:                         yes
  libjansson support:                      yes
  Prelude support:                         no
  PCRE jit:                                yes
  LUA support:                             yes
  libluajit:                               yes
  libgeoip:                                yes
  Non-bundled htp:                         no
  Old barnyard2 support:                   no
  CUDA enabled:                            no

  Suricatasc install:                      yes

  Unit tests enabled:                      no
  Debug output enabled:                    no
  Debug validation enabled:                no
  Profiling enabled:                       yes
  Profiling locks enabled:                 no
  Coccinelle / spatch:                     no

Generic build parameters:
  Installation prefix (--prefix):          /opt/suricata
  Configuration directory (--sysconfdir):  /opt/suricata/etc/suricata/
  Log directory (--localstatedir) :        /opt/suricata/var/log/suricata/

  Host:                                    x86_64-unknown-freebsd10.0
  GCC binary:                              cc
  GCC Protect enabled:                     no
  GCC march native enabled:                no
  GCC Profile enabled:                     no

But I try to make:

detect-lua.o: In function `DetectLuaMatch':
/tmp/o/suricata-2.1beta2/src/detect-lua.c:417: undefined reference to
`lua_getglobal'
/tmp/o/suricata-2.1beta2/src/detect-lua.c:456: undefined reference to
`lua_pcallk'
/tmp/o/suricata-2.1beta2/src/detect-lua.c:466: undefined reference to
`lua_tonumberx'
detect-lua.o: In function `DetectLuaAppMatch':
/tmp/o/suricata-2.1beta2/src/detect-lua.c:547: undefined reference to
`lua_getglobal'
/tmp/o/suricata-2.1beta2/src/detect-lua.c:568: undefined reference to
`lua_pcallk'
/tmp/o/suricata-2.1beta2/src/detect-lua.c:578: undefined reference to
`lua_tonumberx'
detect-lua.o: In function `DetectLuaSetupPrime':
/tmp/o/suricata-2.1beta2/src/detect-lua.c:775: undefined reference to
`lua_pcallk'
/tmp/o/suricata-2.1beta2/src/detect-lua.c:780: undefined reference to
`lua_getglobal'
/tmp/o/suricata-2.1beta2/src/detect-lua.c:796: undefined reference to
`lua_pcallk'
detect-lua.o: In function `LuaDumpStack':
/tmp/o/suricata-2.1beta2/src/detect-lua.c:260: undefined reference to
`lua_tonumberx'
detect-lua.o: In function `DetectLuaMatchBuffer':
/tmp/o/suricata-2.1beta2/src/detect-lua.c:300: undefined reference to
`lua_getglobal'
/tmp/o/suricata-2.1beta2/src/detect-lua.c:311: undefined reference to
`lua_pcallk'
/tmp/o/suricata-2.1beta2/src/detect-lua.c:320: undefined reference to
`lua_tonumberx'
detect-lua.o: In function `DetectLuaThreadInit':
/tmp/o/suricata-2.1beta2/src/detect-lua.c:658: undefined reference to
`lua_setglobal'
/tmp/o/suricata-2.1beta2/src/detect-lua.c:660: undefined reference to
`lua_setglobal'
/tmp/o/suricata-2.1beta2/src/detect-lua.c:662: undefined reference to
`lua_setglobal'
/tmp/o/suricata-2.1beta2/src/detect-lua.c:684: undefined reference to
`lua_pcallk'
detect-lua-extensions.o: In function `LuaSetFlowvar':
/tmp/o/suricata-2.1beta2/src/detect-lua-extensions.c:192: undefined
reference to `lua_tonumberx'
/tmp/o/suricata-2.1beta2/src/detect-lua-extensions.c:216: undefined
reference to `lua_tonumberx'
detect-lua-extensions.o: In function `LuaSetFlowint':
/tmp/o/suricata-2.1beta2/src/detect-lua-extensions.c:374: undefined
reference to `lua_tonumberx'
/tmp/o/suricata-2.1beta2/src/detect-lua-extensions.c:386: undefined
reference to `lua_tonumberx'
detect-lua-extensions.o: In function `LuaRegisterExtensions':
/tmp/o/suricata-2.1beta2/src/detect-lua-extensions.c:598: undefined
reference to `lua_setglobal'
/tmp/o/suricata-2.1beta2/src/detect-lua-extensions.c:601: undefined
reference to `lua_setglobal'
/tmp/o/suricata-2.1beta2/src/detect-lua-extensions.c:604: undefined
reference to `lua_setglobal'
/tmp/o/suricata-2.1beta2/src/detect-lua-extensions.c:607: undefined
reference to `lua_setglobal'
/tmp/o/suricata-2.1beta2/src/detect-lua-extensions.c:610: undefined
reference to `lua_setglobal'
detect-lua-extensions.o:/tmp/o/suricata-2.1beta2/src/detect-lua-extensions.c:613:
more undefined references to `lua_setglobal' follow
detect-lua-extensions.o: In function `LuaGetFlowvar':
/tmp/o/suricata-2.1beta2/src/detect-lua-extensions.c:107: undefined
reference to `lua_tonumberx'
detect-lua-extensions.o: In function `LuaGetFlowint':
/tmp/o/suricata-2.1beta2/src/detect-lua-extensions.c:285: undefined
reference to `lua_tonumberx'
detect-lua-extensions.o: In function `LuaIncrFlowint':
/tmp/o/suricata-2.1beta2/src/detect-lua-extensions.c:446: undefined
reference to `lua_tonumberx'
detect-lua-extensions.o: In function `LuaDecrFlowint':
/tmp/o/suricata-2.1beta2/src/detect-lua-extensions.c:522: undefined
reference to `lua_tonumberx'
output-lua.o: In function `OutputLuaLogDoDeinit':
/tmp/o/suricata-2.1beta2/src/output-lua.c:734: undefined reference to
`lua_getglobal'
/tmp/o/suricata-2.1beta2/src/output-lua.c:741: undefined reference to
`lua_pcallk'
output-lua.o: In function `LuaScriptInit':
/tmp/o/suricata-2.1beta2/src/output-lua.c:483: undefined reference to
`lua_getglobal'
/tmp/o/suricata-2.1beta2/src/output-lua.c:489: undefined reference to
`lua_getglobal'
/tmp/o/suricata-2.1beta2/src/output-lua.c:495: undefined reference to
`lua_getglobal'
/tmp/o/suricata-2.1beta2/src/output-lua.c:410: undefined reference to
`lua_pcallk'
/tmp/o/suricata-2.1beta2/src/output-lua.c:415: undefined reference to
`lua_getglobal'
/tmp/o/suricata-2.1beta2/src/output-lua.c:431: undefined reference to
`lua_pcallk'
output-lua.o: In function `LuaScriptSetup':
/tmp/o/suricata-2.1beta2/src/output-lua.c:547: undefined reference to
`lua_pcallk'
/tmp/o/suricata-2.1beta2/src/output-lua.c:552: undefined reference to
`lua_getglobal'
/tmp/o/suricata-2.1beta2/src/output-lua.c:560: undefined reference to
`lua_pcallk'
output-lua.o: In function `LuaStreamingLogger':
/tmp/o/suricata-2.1beta2/src/output-lua.c:148: undefined reference to
`lua_getglobal'
/tmp/o/suricata-2.1beta2/src/output-lua.c:154: undefined reference to
`lua_pcallk'
output-lua.o: In function `LuaTxLogger':
/tmp/o/suricata-2.1beta2/src/output-lua.c:103: undefined reference to
`lua_getglobal'
/tmp/o/suricata-2.1beta2/src/output-lua.c:107: undefined reference to
`lua_pcallk'
output-lua.o: In function `LuaPacketLoggerAlerts':
/tmp/o/suricata-2.1beta2/src/output-lua.c:203: undefined reference to
`lua_getglobal'
/tmp/o/suricata-2.1beta2/src/output-lua.c:213: undefined reference to
`lua_pcallk'
output-lua.o: In function `LuaPacketLogger':
/tmp/o/suricata-2.1beta2/src/output-lua.c:262: undefined reference to
`lua_getglobal'
/tmp/o/suricata-2.1beta2/src/output-lua.c:271: undefined reference to
`lua_pcallk'
output-lua.o: In function `LuaFileLogger':
/tmp/o/suricata-2.1beta2/src/output-lua.c:321: undefined reference to
`lua_getglobal'
/tmp/o/suricata-2.1beta2/src/output-lua.c:323: undefined reference to
`lua_pcallk'
output-lua.o: In function `LuaFlowLogger':
/tmp/o/suricata-2.1beta2/src/output-lua.c:351: undefined reference to
`lua_getglobal'
/tmp/o/suricata-2.1beta2/src/output-lua.c:353: undefined reference to
`lua_pcallk'
util-lua.o: In function `LuaPrintStack':
/tmp/o/suricata-2.1beta2/src/util-lua.c:220: undefined reference to
`lua_tonumberx'
util-lua-common.o: In function `LuaRegisterFunctions':
/tmp/o/suricata-2.1beta2/src/util-lua-common.c:700: undefined
reference to `lua_setglobal'
/tmp/o/suricata-2.1beta2/src/util-lua-common.c:702: undefined
reference to `lua_setglobal'
/tmp/o/suricata-2.1beta2/src/util-lua-common.c:704: undefined
reference to `lua_setglobal'
/tmp/o/suricata-2.1beta2/src/util-lua-common.c:707: undefined
reference to `lua_setglobal'
/tmp/o/suricata-2.1beta2/src/util-lua-common.c:709: undefined
reference to `lua_setglobal'
util-lua-common.o:/tmp/o/suricata-2.1beta2/src/util-lua-common.c:711:
more undefined references to `lua_setglobal' follow
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make[3]: stopped in /tmp/o/suricata-2.1beta2/src
*** Error code 1

Stop.
make[2]: stopped in /tmp/o/suricata-2.1beta2/src
*** Error code 1

Stop.
make[1]: stopped in /tmp/o/suricata-2.1beta2

Maybe lua52 is not supported??


More information about the Oisf-users mailing list