Wireshark-dev: Re: [Wireshark-dev] wslua won't build in 0.99.4
From: "Michael Lum" <Michael.Lum@xxxxxxxxxx>
Date: Mon, 6 Nov 2006 10:47:20 -0800
Hi Luis, I have two version of perl installed.

Assuming the perl from a cygwin shell is being run the version is as
follows:

mlum@ri-mlum ~
$ perl -v

This is perl, v5.8.7 built for cygwin-thread-multi-64int
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2005, Larry Wall

Perl may be copied only under the terms of either the Artistic License or
the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

I have another version that is older that is used for product development.
I'm assuming it is not being used, but FYI, the version is:

This is perl, v5.6.1 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2001, Larry Wall

Thanks

--
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: wireshark-dev-bounces@xxxxxxxxxxxxx
[mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of LEGO
Sent: November 6, 2006 10:20 AM
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] wslua won't build in 0.99.4

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 <Michael.Lum@xxxxxxxxxx> 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: wireshark-dev-bounces@xxxxxxxxxxxxx
> [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] 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 <Michael.Lum@xxxxxxxxxx> 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
> > Wireshark-dev@xxxxxxxxxxxxx
> > 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
> Wireshark-dev@xxxxxxxxxxxxx
> http://www.wireshark.org/mailman/listinfo/wireshark-dev
>
> _______________________________________________
> Wireshark-dev mailing list
> Wireshark-dev@xxxxxxxxxxxxx
> 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
Wireshark-dev@xxxxxxxxxxxxx
http://www.wireshark.org/mailman/listinfo/wireshark-dev