ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] with-lua does not compile

From: "Luis EG Ontanon" <luis@xxxxxxxxxxx>
Date: Tue, 2 Sep 2008 11:18:57 +0200
It appears like lua_State is not defined (like if the configure script
actually found lua but it did not set up propperly CFLAGS and
LDFLAGS).

Can you get this to compile using just what you find in /usr/lib ?
(CFLAGS=/usr/local/include LDFLAGS=/usr/local/lib)

/*start*/
#include <stdlib.h>
#include <lua.h>
int main (int c, char** v) {
   lua_State* L = lua_newstate(realloc,NULL);
}
/*end*/




On Tue, Sep 2, 2008 at 9:22 AM, Zoran Bošnjak
<Zoran.Bosnjak@xxxxxxxxxxxxxxxxxx> wrote:
> Latest devel release of wireshark (svn r26107) does not compile when --with-lua option is set.
>
> $./autogen.sh
> $./configure --with-lua=/usr/lib
> $make
>
> I get this error:
> ...
> ./wslua_tvb.c:600: error: expected ')' before '*' token
> ./wslua_tvb.c:643: error: expected ')' before '*' token
> ./wslua_tvb.c:682: error: expected ')' before '*' token
> ./wslua_tvb.c:715: error: expected ')' before '*' token
> ./wslua_tvb.c:740: error: expected ')' before '*' token
> ./wslua_tvb.c:758: error: expected ')' before '*' token
> ./wslua_tvb.c:785: error: expected ')' before '*' token
> ./wslua_tvb.c:813: error: expected ')' before '*' token
> ./wslua_tvb.c:839: error: expected ')' before '*' token
> ./wslua_tvb.c:854: error: expected ')' before '*' token
> ./wslua_tvb.c:873: error: expected ')' before '*' token
> ./wslua_tvb.c:889: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TvbRange_methods'
> ./wslua_tvb.c:903: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TvbRange_meta'
> ./wslua_tvb.c:910: error: expected ')' before '*' token
> make[4]: *** [wslua_tvb.lo] Error 1
> make[4]: Leaving directory `/home/bosnjak/wireshark/asterix/epan/wslua'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory `/home/bosnjak/wireshark/asterix/epan/wslua'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/bosnjak/wireshark/asterix/epan'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/bosnjak/wireshark/asterix'
> make: *** [all] Error 2
>
> regards,
> Zoran
> _______________________________________________
> Wireshark-dev mailing list
> Wireshark-dev@xxxxxxxxxxxxx
> https://wireshark.org/mailman/listinfo/wireshark-dev
>



-- 
This information is top security. When you have read it, destroy yourself.
-- Marshall McLuhan