<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>fixed, used wrong version of lua (needs to be 5.1 => lua5.1,
      lua5.1dev and libmemcached-dev). <br>
    </p>
    <div class="moz-cite-prefix">On 16.12.19 12:08, David Villasmil
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFGRPVo=Gek3aEGVx++F5s964pj4TVw-rYa=_DG50e0dbAhO_A@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div>
        <div dir="auto">Do you have lua’s development libraries?</div>
      </div>
      <div><br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Mon, 16 Dec 2019 at
            10:55, johan <<a href="mailto:johan@democon.be"
              moz-do-not-send="true">johan@democon.be</a>> wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">When
            changing the header path to below mentioned directory, you
            get this:<br>
            <br>
            <br>
            <br>
            make[2]: Entering directory
            '/usr/src/opensips-3.0/modules/lua'<br>
            Compiling sipapi.c<br>
            sipapi.c:895:30: error: array type has incomplete element
            type ‘struct <br>
            luaL_reg’<br>
              static const struct luaL_reg siplua_api_mylib [] =<br>
                                           ^~~~~~~~~~~~~~~~<br>
            sipapi.c: In function ‘siplua_register_api_cclosures’:<br>
            sipapi.c:923:20: error: ‘LUA_GLOBALSINDEX’ undeclared (first
            use in this <br>
            function)<br>
                lua_pushvalue(L, LUA_GLOBALSINDEX);<br>
            <br>
            On 16.12.19 11:49, johan wrote:<br>
            > Hi,<br>
            ><br>
            > the system doesn't find lua.h<br>
            ><br>
            > make[2]: Entering directory
            '/usr/src/opensips-3.0/modules/lua'<br>
            > Compiling sipapi.c<br>
            > sipapi.c:27:17: fatal error: lua.h: No such file or
            directory<br>
            >  #include <lua.h><br>
            >                  ^<br>
            > compilation terminated.<br>
            > ../../Makefile.rules:25: recipe for target 'sipapi.o'
            failed<br>
            > make[2]: *** [sipapi.o] Error 1<br>
            > make[2]: Leaving directory
            '/usr/src/opensips-3.0/modules/lua'<br>
            > Makefile:197: recipe for target 'modules' failed<br>
            > make[1]: *** [modules] Error 2<br>
            > make[1]: Leaving directory '/usr/src/opensips-3.0'<br>
            ><br>
            ><br>
            > however:<br>
            ><br>
            > root@opensips30:/usr/include/lua# ls<br>
            > lauxlib.h  luaconf.h  lua.h  lua.hpp  lualib.h<br>
            ><br>
            ><br>
            > Can somebody please tell ne what I do wrong ?<br>
            ><br>
            <br>
            _______________________________________________<br>
            Users mailing list<br>
            <a href="mailto:Users@lists.opensips.org" target="_blank"
              moz-do-not-send="true">Users@lists.opensips.org</a><br>
            <a
              href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
              rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
          </blockquote>
        </div>
      </div>
      -- <br>
      <div dir="ltr" class="gmail_signature"
        data-smartmail="gmail_signature">
        <div dir="ltr">
          <div>Regards,</div>
          <div><br>
          </div>
          David Villasmil
          <div>email: <a href="mailto:david.villasmil.work@gmail.com"
              target="_blank" moz-do-not-send="true">david.villasmil.work@gmail.com</a></div>
          <div>phone: +34669448337</div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>