|
Posted by Sisyphus on July 16, 2005, 7:21 pm
Please log in for more thread options
> Hello
> I am trying to install Inline:CPP module.
>
> 1. I downloaded Inline-CPP-0.25.tar.gz to my local folder and
> extracted, as I did for Inline:C installation.
>
> 2. Then ran Perl Makefile.pl
> 3. Then nmake
> 4. Then nmake test, now I am getting the following error
> ------------------------------------------------------------------
>
E:\Sankaran\Work\TP-TAImpacts-LM051049\InlineCPP\Inline-CPP-0.25.tar\Inline-
CPP-
> 0.25>Perl Makefile
> Can't open perl script "Makefile": No such file or directory
>
>
E:\Sankaran\Work\TP-TAImpacts-LM051049\InlineCPP\Inline-CPP-0.25.tar\Inline-
CPP-
> 0.25>Perl Makefile.pl
> This will configure and build Inline::C++.
> What default C++ compiler would you like to use? [cl -TP]
> What default libraries would you like to include? [MSVCIRT.LIB]
> Checking if your kit is complete...
> Looks good
> Writing Makefile for Inline::CPP::grammar
> Writing Makefile for Inline::CPP
>
>
E:\Sankaran\Work\TP-TAImpacts-LM051049\InlineCPP\Inline-CPP-0.25.tar\Inline-
CPP-
> 0.25>nmake
>
> Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
> Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
>
> mkdir blib
> mkdir blib\lib
> mkdir blib\lib\Inline
> mkdir blib\arch
> mkdir blib\arch\auto
> mkdir blib\arch\auto\Inline
> mkdir blib\arch\auto\Inline\CPP
> mkdir blib\lib\auto
> mkdir blib\lib\auto\Inline
> mkdir blib\lib\auto\Inline\CPP
> cp CPP.pm blib\lib\Inline\CPP.pm
> cp lib/Inline/CPP.pod blib\lib\Inline\CPP.pod
> mkdir ..\blib\lib\Inline\CPP
> mkdir ..\blib\arch\auto\Inline\CPP\grammar
> mkdir ..\blib\lib\auto\Inline\CPP\grammar
> cp grammar.pm ..\blib\lib\Inline\CPP\grammar.pm
>
>
E:\Sankaran\Work\TP-TAImpacts-LM051049\InlineCPP\Inline-CPP-0.25.tar\Inline-
CPP-
> 0.25>nmake test
>
> Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
> Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
>
> D:\Perl\bin\Perl.exe -Mblib -ID:\Perl\lib -ID:\Perl\lib -e "use
> Test::Ha
> rness qw(&runtests $verbose); $verbose=0; runtests @ARGV;" tbasic.t
> tprefi
> x.t
> Using
> E:/Sankaran/Work/TP-TAImpacts-LM051049/InlineCPP/Inline-CPP-0.25.tar/Inlin
> e-CPP-0.25/blib
> tbasic...........
> Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
> Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
>
> mkdir blib
> mkdir blib\lib
> mkdir blib\arch
> mkdir blib\arch\auto
> mkdir blib\arch\auto\_01basic_t_5cd2
> mkdir blib\lib\auto
> mkdir blib\lib\auto\_01basic_t_5cd2
> D:\Perl\bin\Perl.exe -ID:\Perl\lib -ID:\Perl\lib
> D:\Perl\lib\ExtUtils/xs
> ubpp -typemap D:\Perl\lib\ExtUtils\typemap -typemap
> E:\Sankaran\Work\TP-TAImpac
>
ts-LM051049\InlineCPP\Inline-CPP-0.25.tar\Inline-CPP-0.25\_Inline\build\_01b
asic
> _t_5cd2\CPP.map _01basic_t_5cd2.xs > _01basic_t_5cd2.xsc &&
> D:\Perl\bin\Perl.exe
> -ID:\Perl\lib -ID:\Perl\lib -MExtUtils::Command -e mv
> _01basic_t_5cd2.xsc _01ba
> sic_t_5cd2.c
> cl -c
> -IE:/Sankaran/Work/TP-TAImpacts-LM051049/InlineCPP/Inline-CPP-0.25
> .tar/Inline-CPP-0.25/t -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
> -DHAVE_DE
> S_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
> -DPERL_MSVCRT_READFIX -O1 -
> MD -DNDEBUG -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\"
> -ID:\Perl\lib\CORE
> _01basic_t_5cd2.c
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for
> 80x86
> Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
>
> _01basic_t_5cd2.c
> _01basic_t_5cd2.xs(4) : error C2059: syntax error : 'string'
> _01basic_t_5cd2.xs(16) : error C2061: syntax error : identifier
> 'Soldier'
> _01basic_t_5cd2.xs(16) : error C2059: syntax error : ';'
> _01basic_t_5cd2.xs(16) : error C2449: found '{' at file scope (missing
> function
> header?)
> _01basic_t_5cd2.xs(28) : error C2059: syntax error : '}'
> _01basic_t_5cd2.xs(36) : error C2143: syntax error : missing '{' before
> ':'
> _01basic_t_5cd2.xs(36) : error C2059: syntax error : ':'
> _01basic_t_5cd2.xs(40) : error C2143: syntax error : missing '{' before
> ':'
> _01basic_t_5cd2.xs(40) : error C2059: syntax error : ':'
> _01basic_t_5cd2.xs(44) : error C2143: syntax error : missing '{' before
> ':'
> _01basic_t_5cd2.xs(44) : error C2059: syntax error : ':'
> _01basic_t_5cd2.c(59) : error C2143: syntax error : missing ')' before
> '*'
> _01basic_t_5cd2.c(59) : error C2143: syntax error : missing '{' before
> '*'
> _01basic_t_5cd2.c(59) : error C2143: syntax error : missing ';' before
> '*'
> _01basic_t_5cd2.c(59) : error C2059: syntax error : ')'
> _01basic_t_5cd2.c(60) : error C2054: expected '(' to follow 'cv'
> _01basic_t_5cd2.c(79) : error C2143: syntax error : missing ')' before
> '*'
> _01basic_t_5cd2.c(79) : error C2143: syntax error : missing '{' before
> '*'
> _01basic_t_5cd2.c(79) : error C2143: syntax error : missing ';' before
> '*'
> _01basic_t_5cd2.c(79) : error C2059: syntax error : ')'
> _01basic_t_5cd2.c(80) : error C2054: expected '(' to follow 'cv'
> _01basic_t_5cd2.c(103) : error C2143: syntax error : missing ')' before
> '*'
> _01basic_t_5cd2.c(103) : error C2143: syntax error : missing '{' before
> '*'
> _01basic_t_5cd2.c(103) : error C2143: syntax error : missing ';' before
> '*'
> _01basic_t_5cd2.c(103) : error C2059: syntax error : ')'
> _01basic_t_5cd2.c(104) : error C2054: expected '(' to follow 'cv'
> _01basic_t_5cd2.c(127) : error C2143: syntax error : missing ')' before
> '*'
> _01basic_t_5cd2.c(127) : error C2143: syntax error : missing '{' before
> '*'
> _01basic_t_5cd2.c(127) : error C2143: syntax error : missing ';' before
> '*'
> _01basic_t_5cd2.c(127) : error C2059: syntax error : ')'
> _01basic_t_5cd2.c(128) : error C2054: expected '(' to follow 'cv'
> _01basic_t_5cd2.c(151) : error C2143: syntax error : missing ')' before
> '*'
> _01basic_t_5cd2.c(151) : error C2143: syntax error : missing '{' before
> '*'
> _01basic_t_5cd2.c(151) : error C2143: syntax error : missing ';' before
> '*'
> _01basic_t_5cd2.c(151) : error C2059: syntax error : ')'
> _01basic_t_5cd2.c(152) : error C2054: expected '(' to follow 'cv'
> _01basic_t_5cd2.c(175) : error C2143: syntax error : missing ')' before
> '*'
> _01basic_t_5cd2.c(175) : error C2143: syntax error : missing '{' before
> '*'
> _01basic_t_5cd2.c(175) : error C2143: syntax error : missing ';' before
> '*'
> _01basic_t_5cd2.c(175) : error C2059: syntax error : ')'
> _01basic_t_5cd2.c(176) : error C2054: expected '(' to follow 'cv'
> NMAKE : fatal error U1077: 'cl' : return code '0x2'
> Stop.
>
> A problem was encountered while attempting to compile and install your
> Inline
> CPP code. The command that failed was:
> nmake > out.make 2>&1
>
> The build directory was:
>
E:\Sankaran\Work\TP-TAImpacts-LM051049\InlineCPP\Inline-CPP-0.25.tar\Inline-
CPP-
> 0.25\_Inline\build\_01basic_t_5cd2
>
> To debug the problem, cd to the build directory, and inspect the output
> files.
>
> at tbasic.t line 30
> BEGIN failed--compilation aborted at tbasic.t line 64.
> tbasic...........dubious
> Test returned status 2 (wstat 512, 0x200)
> DIED. FAILED tests 1-10
> Failed 10/10 tests, 0.00% okay
> tprefix..........
> Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
> Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
>
> mkdir blib
> mkdir blib\lib
> mkdir blib\arch
> mkdir blib\arch\auto
> mkdir blib\arch\auto\_02prefix_t_4ede
> mkdir blib\lib\auto
> mkdir blib\lib\auto\_02prefix_t_4ede
> D:\Perl\bin\Perl.exe -ID:\Perl\lib -ID:\Perl\lib
> D:\Perl\lib\ExtUtils/xs
> ubpp -typemap D:\Perl\lib\ExtUtils\typemap -typemap
> E:\Sankaran\Work\TP-TAImpac
>
ts-LM051049\InlineCPP\Inline-CPP-0.25.tar\Inline-CPP-0.25\_Inline\build\_02p
refi
> x_t_4ede\CPP.map _02prefix_t_4ede.xs > _02prefix_t_4ede.xsc &&
> D:\Perl\bin\Perl.
> exe -ID:\Perl\lib -ID:\Perl\lib -MExtUtils::Command -e mv
> _02prefix_t_4ede.xsc _
> 02prefix_t_4ede.c
> cl -c
> -IE:/Sankaran/Work/TP-TAImpacts-LM051049/InlineCPP/Inline-CPP-0.25
> .tar/Inline-CPP-0.25/t -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
> -DHAVE_DE
> S_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
> -DPERL_MSVCRT_READFIX -O1 -
> MD -DNDEBUG -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\"
> -ID:\Perl\lib\CORE
> _02prefix_t_4ede.c
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for
> 80x86
> Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
>
> _02prefix_t_4ede.c
> _02prefix_t_4ede.xs(4) : error C2059: syntax error : 'string'
> _02prefix_t_4ede.xs(17) : error C2032: '<Unknown>' : function cannot be
> member o
> f struct 'Foo'
> _02prefix_t_4ede.xs(17) : error C2143: syntax error : missing ';'
> before '{'
> _02prefix_t_4ede.xs(17) : error C2059: syntax error : '{'
> _02prefix_t_4ede.xs(18) : error C2059: syntax error : '}'
> _02prefix_t_4ede.c(33) : error C2143: syntax error : missing ')' before
> '*'
> _02prefix_t_4ede.c(33) : error C2143: syntax error : missing '{' before
> '*'
> _02prefix_t_4ede.c(33) : error C2143: syntax error : missing ';' before
> '*'
> _02prefix_t_4ede.c(33) : error C2059: syntax error : ')'
> _02prefix_t_4ede.c(34) : error C2054: expected '(' to follow 'cv'
> _02prefix_t_4ede.c(57) : error C2143: syntax error : missing ')' before
> '*'
> _02prefix_t_4ede.c(57) : error C2143: syntax error : missing '{' before
> '*'
> _02prefix_t_4ede.c(57) : error C2143: syntax error : missing ';' before
> '*'
> _02prefix_t_4ede.c(57) : error C2059: syntax error : ')'
> _02prefix_t_4ede.c(58) : error C2054: expected '(' to follow 'cv'
> _02prefix_t_4ede.c(74) : error C2143: syntax error : missing ')' before
> '*'
> _02prefix_t_4ede.c(74) : error C2143: syntax error : missing '{' before
> '*'
> _02prefix_t_4ede.c(74) : error C2143: syntax error : missing ';' before
> '*'
> _02prefix_t_4ede.c(74) : error C2059: syntax error : ')'
> _02prefix_t_4ede.c(75) : error C2054: expected '(' to follow 'cv'
> _02prefix_t_4ede.c(95) : error C2143: syntax error : missing ')' before
> '*'
> _02prefix_t_4ede.c(95) : error C2143: syntax error : missing '{' before
> '*'
> _02prefix_t_4ede.c(95) : error C2143: syntax error : missing ';' before
> '*'
> _02prefix_t_4ede.c(95) : error C2059: syntax error : ')'
> _02prefix_t_4ede.c(96) : error C2054: expected '(' to follow 'cv'
> _02prefix_t_4ede.c(114) : error C2143: syntax error : missing ')'
> before '*'
> _02prefix_t_4ede.c(114) : error C2143: syntax error : missing '{'
> before '*'
> _02prefix_t_4ede.c(114) : error C2143: syntax error : missing ';'
> before '*'
> _02prefix_t_4ede.c(114) : error C2059: syntax error : ')'
> _02prefix_t_4ede.c(115) : error C2054: expected '(' to follow 'cv'
> NMAKE : fatal error U1077: 'cl' : return code '0x2'
> Stop.
>
> A problem was encountered while attempting to compile and install your
> Inline
> CPP code. The command that failed was:
> nmake > out.make 2>&1
>
> The build directory was:
>
E:\Sankaran\Work\TP-TAImpacts-LM051049\InlineCPP\Inline-CPP-0.25.tar\Inline-
CPP-
> 0.25\_Inline\build\_02prefix_t_4ede
>
> To debug the problem, cd to the build directory, and inspect the output
> files.
>
> at tprefix.t line 0
> INIT failed--call queue aborted.
> tprefix..........dubious
> Test returned status 2 (wstat 512, 0x200)
> DIED. FAILED tests 1-4
> Failed 4/4 tests, 0.00% okay
> Failed Test Status Wstat Total Fail Failed List of failed
> --------------------------------------------------------------------------
-----
> tbasic.t 2 512 10 10 100.00% 1-10
> tprefix.t 2 512 4 4 100.00% 1-4
> Failed 2/2 test scripts, 0.00% okay. 14/14 subtests failed, 0.00% okay.
> NMAKE : fatal error U1077: 'D:\Perl\bin\Perl.exe' : return code '0x2'
> Stop.
>
>
E:\Sankaran\Work\TP-TAImpacts-LM051049\InlineCPP\Inline-CPP-0.25.tar\Inline-
CPP-
> 0.25>nmake install
>
> Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
> Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
>
> Skipping D:\Perl\site\lib\Inline\CPP.pm (unchanged)
> Skipping D:\Perl\site\lib\Inline\CPP.pod (unchanged)
> Skipping D:\Perl\site\lib\Inline\CPP\grammar.pm (unchanged)
> Writing D:\Perl\site\lib\auto\Inline\CPP\.packlist
> Appending installation info to D:\Perl\lib/perllocal.pod
> ----------------------------------------------------------------
>
> Do anybody know any pre-requisites for installing Inline:CPP? like we
> have to install TextBalanced and ParseRecDecsent before installing
> Inline:C?
>
You're not missing anything. See the 2 messages (and 2 replies) at:
http://www.mail-archive.com/inline@perl.org/msg01336.html
Does that help at all ? (I'm not sure that it will.)
In any case, it's worth adding #include <math.h> to CPP.pm as mentioned
there.
Cheers,
Rob
|