Wireshark-dev: Re: [Wireshark-dev] wslua won't build in 0.99.4
From: LEGO <[email protected]>
Date: Mon, 6 Nov 2006 18:19:52 +0000
I just committed revision 19824 with this fix.

the problem is that in
"typedef\\s+enum[^{]*{([^}]*)}[\\s\\n]*${ename}[\\s\\n]*;";
`"${ename}[\\s\\n]"` is interpreted as "$ename[\\s\\n]" instead of
being interpreted as:
`$ename . "[\\s\\n]"`

which perl version do you use?

Luis

On 11/6/06, Michael Lum <[email protected]> wrote:
I haven't applied many patches but this is what I did on my
Linux machine:

I copied the file make-taps.pl.
Placed the changes in a file called 'jim'.

riccm03.MLUM-48x.208> patch < jim
(Stripping trailing CRs from patch.)
patching file make-taps.pl
patch: **** malformed patch at line 10:


I have attached the revision of the make-taps.pl I have.

# $Id: make-taps.pl 19579 2006-10-17 18:20:44Z lego $


--
Michael Lum                  Principal Software Engineer
4600 Jacombs Road            +1.604.276.0055
Richmond, B.C.
Canada V6V 3B1
UTStarcom Canada, Inc.
CDMA Division



-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of LEGO
Sent: November 6, 2006 9:31 AM
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] wslua won't build in 0.99.4

That's odd... it should have been caught by the buildbot, (I do not see that
error with perl v5.8.6 on MacOS X).

Can you try this patch and see if that fixes the problem for you.

Luis

Index: make-taps.pl
===================================================================
--- make-taps.pl        (revision 19823)
+++ make-taps.pl        (working copy)
@@ -88,7 +88,7 @@
                $enums{$ename} = [];
                my $a = $enums{$ename};

-               my $enumre =
"typedef\\s+enum[^{]*{([^}]*)}[\\s\\n]*${ename}[\\s\\n]*;";
+               my $enumre = "typedef\\s+enum[^{]*{([^}]*)}[\\s\\n]*"
. ${ename} . "[\\s\\n]*;";
                if ($buf =~ s/$enumre//ms ) {
                        $types{$ename} = "/*$ename*/
lua_pushnumber(L,(lua_Number)v->%s);";
                        my $ebody = $1;


On 11/6/06, Michael Lum <[email protected]> wrote:
> Hi,
>
> Windows XP Pro
> Visual C++ 6
>
> (Performed:  distclean, clean_setup, setup)
>
> I just pulled down 0.99.4 from svn and tried to build it and received
> the error below.  Does anyone have any suggestions?
> I searched the dev mailing list and didn't find anything.
>
>         cd ..
>         cd wslua
>         NMAKE /                   -f Makefile.nmake
>
> Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
> Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
>
>         perl make-taps.pl taps taps_wslua.c taps.txt Global symbol
> "@ename" requires explicit package name at make-taps.pl line 91.
> Execution of make-taps.pl aborted due to compilation errors.
> NMAKE : fatal error U1077: 'perl' : return code '0xff'
> Stop.
> NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\NMAKE.EXE' :
> return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\NMAKE.EXE' :
> return code '0x2'
> Stop.
>
> Thanks.
>
> --
> Michael Lum                  Principal Software Engineer
> 4600 Jacombs Road            +1.604.276.0055
> Richmond, B.C.
> Canada V6V 3B1
> UTStarcom Canada, Inc.
> CDMA Division
>
>
>
> _______________________________________________
> Wireshark-dev mailing list
> [email protected]
> http://www.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]
http://www.wireshark.org/mailman/listinfo/wireshark-dev

_______________________________________________
Wireshark-dev mailing list
[email protected]
http://www.wireshark.org/mailman/listinfo/wireshark-dev


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