It was a mistake in configure option.
with "./configure --with-lua=/usr" it compiles and works fine.
Thanks.

Zoran 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Luis EG Ontanon
Sent: Tuesday, September 02, 2008 11:19 AM
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] with-lua does not compile

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 <[EMAIL PROTECTED]> 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
> [email protected]
> https://wireshark.org/mailman/listinfo/wireshark-dev
>



--
This information is top security. When you have read it, destroy yourself.
-- Marshall McLuhan
_______________________________________________
Wireshark-dev mailing list
[email protected]
https://wireshark.org/mailman/listinfo/wireshark-dev
_______________________________________________
Wireshark-dev mailing list
[email protected]
https://wireshark.org/mailman/listinfo/wireshark-dev

Reply via email to