Windows: Perl:Inline
am 06.07.2005 13:56:03 von Sankaran
Hello All,
I was trying to Use Inline, but getting lots of erros. Could you please
help me by sending a good tutorial on this ?? I have done a lots of
search, but couldn't find any more.
Regards,
Sankaran
Re: Windows: Perl:Inline
am 06.07.2005 14:04:20 von Sisyphus
"Sankaran" wrote in message
news:1120650963.317536.165080@g44g2000cwa.googlegroups.com.. .
> Hello All,
>
> I was trying to Use Inline, but getting lots of erros. Could you please
> help me by sending a good tutorial on this ?? I have done a lots of
> search, but couldn't find any more.
>
We need more info. At this stage we don't know if you have even managed to
successfully install Inline.
Specifically, provide an example of what you are trying to do, and also
provide the error messages you are getting as a result of that attempt.
If you have successfully installed Inline, you'll find some useful examples
in 'perldoc Inline::C-Cookbook' (assuming you're trying to use Inline::C).
Cheers,
Rob
Re: Windows: Perl:Inline
am 07.07.2005 05:38:17 von Sankaran
Hello,
My requirement is to call specific DLL (Written in C++ / MFC) functions
from an available perl module. This DLL is responsible to create
registry entries in the given Machine. Since we have a requirement of
creating Registry Entries (some flat files) in Unix, this DLL of
capable of doing that, currently my perl module is capable of creating
registry entries in Windows, but not in Unix, so I am trying to extend
this perl module by using the DLL, so that I can create Registry (or
equivalent) in Unix too. I hope the requirement is clear. For that I
was trying Inline by downloading "Inline-0.44". As of now I know that
installing Inline is copying the entire directory. Or is it something
different? Also I got few replies doing the same in UNIX, but my
requirement is using Inline in windows.
Regards,
Sankaran
Re: Windows: Perl:Inline
am 07.07.2005 05:39:05 von Sankaran
Hello,
My requirement is to call specific DLL (Written in C++ / MFC) functions
from an available perl module. This DLL is responsible to create
registry entries in the given Machine. Since we have a requirement of
creating Registry Entries (some flat files) in Unix, this DLL of
capable of doing that, currently my perl module is capable of creating
registry entries in Windows, but not in Unix, so I am trying to extend
this perl module by using the DLL, so that I can create Registry (or
equivalent) in Unix too. I hope the requirement is clear. For that I
was trying Inline by downloading "Inline-0.44". As of now I know that
installing Inline is copying the entire directory. Or is it something
different? Also I got few replies doing the same in UNIX, but my
requirement is using Inline in windows.
Regards,
Sankaran
Re: Windows: Perl:Inline
am 07.07.2005 07:25:28 von Sisyphus
"Sankaran" wrote in message
news:1120707545.470423.227100@g43g2000cwa.googlegroups.com.. .
> Hello,
>
> My requirement is to call specific DLL (Written in C++ / MFC) functions
> from an available perl module. This DLL is responsible to create
> registry entries in the given Machine. Since we have a requirement of
> creating Registry Entries (some flat files) in Unix, this DLL of
> capable of doing that, currently my perl module is capable of creating
> registry entries in Windows, but not in Unix, so I am trying to extend
> this perl module by using the DLL, so that I can create Registry (or
> equivalent) in Unix too. I hope the requirement is clear.
Not really ..... but that could be my fault, not yours :-)
Are you trying to use the DLL (on the Windows machine) to alter files on the
Unix machine over a network connection ?
Or are you wanting to create an equivalent of the DLL that you can place on
the Unix machine (ie an SO), and have that SO do things on the Unix machine
?
Or .... something else again ?
> For that I
> was trying Inline by downloading "Inline-0.44". As of now I know that
> installing Inline is copying the entire directory. Or is it something
> different? Also I got few replies doing the same in UNIX, but my
> requirement is using Inline in windows.
>
The installation procedure for Inline-0.44 is the same on both Unix and
Windows. I still don't know how far you have got, so I'll go through the
procedure required. (Sorry if you already know all of this.)
Download Inline-0.44.tar.gz from cpan. Extract the files to some (any)
location and then cd to the folder that now contains the Inline-0.44
Makefile.PL.
Run:
perl Makefile.PL
(You'll be prompted on whether you want to install Inline::C as well as
Inline. Answer yes.)
Then run:
nmake test
and if there are no errors, run:
nmake install
Then copy the below code into a file and try running it. After it has
compiled (which will take a few seconds) it should print "Hello, world".
use Inline C => <<'END_C';
void greet() {
printf("Hello, world\n");
}
END_C
greet;
__END__
If you strike errors at any stage, let us know what the errors are (and at
what part they occurred). I assume you're using MSVC++ 6.0 as your compiler.
Let us know if that is not the case - and if it's not the case could you
also supply the output of running 'perl -V'.
After you have installed Inline you can find other examples by running:
perldoc Inline::C-Cookbook
And there's also an inline mailing list that you can subscribe to. See
http://lists.perl.org for details.
Cheers,
Rob
Re: Windows: Perl:Inline
am 07.07.2005 11:14:35 von Sankaran
I am getting the below errors while trying
"nmake test" as you mentioned, but I tried "nmake install"
A problem was encountered while attempting to compile and install your
Inline
C code. The command that failed was:
nmake > out.make 2>&1
The build directory was:
E:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\Inline-0.4 4.tar\Inline-0.44\C\
_Inline_test\build\xsmode
To debug the problem, cd to the build directory, and inspect the output
files.
at t\05xsmode.t line 0
Carp::croak('^JMicrosoft (R) Program Maintenance Utility
Version 6.00.
9782.0...') called at ..\blib\lib/Inline/C.pm line 743
Inline::C::system_call('Inline::C=HASH(0x1f66260)', 'nmake',
'out.make')
called at ..\blib\lib/Inline/C.pm line 709
Inline::C::make('Inline::C=HASH(0x1f66260)') called at
...\blib\lib/Inlin
e/C.pm line 280
Inline::C::call('Inline::C=HASH(0x1f66260)', 'make', '"make"',
2) called
at ..\blib\lib/Inline/C.pm line 690
Inline::C::compile('Inline::C=HASH(0x1f66260)') called at
...\blib\lib/In
line/C.pm line 280
Inline::C::call('Inline::C=HASH(0x1f66260)', 'compile', 'Build
Compile')
called at ..\blib\lib/Inline/C.pm line 265
Inline::C::build('Inline::C=HASH(0x1f66260)') called at
...\blib\lib/Inli
ne.pm line 267
Inline::glue('Inline::C=HASH(0x1f66260)') called at
...\blib\lib/Inline.p
m line 205
Inline::init called at (eval 2) line 5
Inline::INIT() called at t\05xsmode.t line 0
eval {...} called at t\05xsmode.t line 0
INIT failed--call queue aborted.
Failed 5/6 test scripts, 16.67% okay. 8/11 subtests failed, 27.27%
okay.
NMAKE : fatal error U1077: 'D:\Perl\bin\Perl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
I am not able to figure out anything. Please help.
As you mentioned, I will try the other mailing list too.
Sankaran
Re: Windows: Perl:Inline
am 07.07.2005 11:53:01 von Sisyphus
"Sankaran" wrote in message
news:1120727675.325707.202350@z14g2000cwz.googlegroups.com.. .
> I am getting the below errors while trying
> "nmake test" as you mentioned, but I tried "nmake install"
>
> A problem was encountered while attempting to compile and install your
> Inline
> C code. The command that failed was:
> nmake > out.make 2>&1
>
> The build directory was:
>
E:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\Inline-0.4 4.tar\Inline-0.4
4\C\
> _Inline_test\build\xsmode
>
> To debug the problem, cd to the build directory, and inspect the output
> files.
>
What does
E:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\Inline-0.4 4.tar\Inline-0.4
4\C\ _Inline_test\build\xsmode\out.make contain ? It should contain some
error message that will (hopefully) enable us to work out what the problem
is.
The guys on the inline mailing list (I'm one of them, btw) will probably
also want to know what's in out.make. I couldn't see anything in the output
you provided that helps me identify the problem.
> at t\05xsmode.t line 0
> Carp::croak('^JMicrosoft (R) Program Maintenance Utility
>Version 6.00.
That '^J' control character puzzles me.
What version of Windows do you have ? (ie 98 or XP or 2000 or .... ?)
Are you running in a cmd.exe shell ?
What version of the Microsoft compiler do you have ? (ie 6.0 or 7.0 or 7.1
or ... ?)
Are you running ActiveState perl ? If not who built your perl ?
Best to give us the output of 'perl -V', too.
Cheers,
Rob
Re: Windows: Perl:Inline
am 07.07.2005 11:54:02 von Sankaran
I tried as you mentioned, but getting the same error as I got it even
before I have installed Inline, so I doubt somewhere the Inline
installation went wrong and I am not able to figureout this.
Can't find string terminator "END_C" anywhere before EOF at Hello.Pl
line 1.
Sankaran
Re: Windows: Perl:Inline
am 07.07.2005 12:15:03 von Sankaran
1. My Perl -V details are given below
Summary of my perl5 (revision 5 version 6 subversion 0) configuration:
Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
usethreads=undef use5005threads=undef useithreads=define
usemultiplicity=def
ine
useperlio=undef d_sfio=undef uselargefiles=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usesocks=undef
Compiler:
cc='cl', optimize='-O1 -MD -DNDEBUG', gccversion=
cppflags='-DWIN32'
ccflags ='-O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
-DHAVE_DES_FCRYPT
-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize
=4
alignbytes=8, usemymalloc=n, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -release
-libpath:"D:\Perl\lib\C
ORE" -machine:x86'
libpth="C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib"
"C:\Program F
iles\Microsoft Visual Studio\VC98\lib" "D:\Perl\lib\CORE"
libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32
..lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib
uuid.lib wsoc
k32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib
msvcrt.lib
libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl56.lib
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release
-libpath:"D:
\Perl\lib\CORE" -machine:x86'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS PERL_IMPLICIT_CONTEXT
PERL_IMP
LICIT_SYS
Locally applied patches:
ActivePerl Build 623
Built under MSWin32
Compiled at Dec 15 2000 16:27:07
@INC:
D:/Perl/lib
D:/Perl/site/lib
2.
E:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\Inline-0.4 4.tar\Inline-0.44
is the path where I extracted the "Inline-0.44.tar" file downloaded
from CPAN, and my perl is ActiveState perl.
3. I am running this program in my XP machine, from a command propmpt
and VC++ version is 6.0
Hope this helps.
Re: Windows: Perl:Inline
am 07.07.2005 13:12:05 von Sisyphus
"Sankaran" wrote in message
[snip]
>
> Hope this helps.
>
Yep - the info provided in that post of yours does help. It confirms that
you have a compiler, and that the compiler you have is compatible with the
perl that you have, and that you're not running on an ancient version of MS
Windows (which is good news). There should be no big problem. Perl 5.6 is
getting a little old (build 623, especially), but Inline-0.44 should work
fine with it.
But I really need to see what's in the 'out.make' file that was mentioned -
the one that's to be found at the end of that interminably long path :-)
Have you used that compiler to build and install other perl extensions ? I'm
wondering if there is some configuration problem with your compiler.
Obviously if you have built other modules (that contain xs files) using that
compiler, then no such problem exists. But if you're new to this, then
perhaps you are making some fundamental error. Can you, for example, (as
mentioned earlier) successfully build Math::FFT from cpan source ? I refer
to that module because it is small, has no pre-requisites, will test your
compiler, and is easy to troubleshoot if there is a problem.
Cheers,
Rob
Re: Windows: Perl:Inline
am 07.07.2005 13:24:58 von Sisyphus
"Sankaran" wrote in message
news:1120730042.470205.300500@g47g2000cwa.googlegroups.com.. .
> I tried as you mentioned, but getting the same error as I got it even
> before I have installed Inline, so I doubt somewhere the Inline
> installation went wrong and I am not able to figureout this.
>
> Can't find string terminator "END_C" anywhere before EOF at Hello.Pl
> line 1.
>
I don't think there's much point in getting too concerned about this until
we work out why so many of the tests in 'nmake test' failed.
However .... make sure that END_C is hard up against the left hand side of
the page. That is, there must be no spaces before the terminating END_C.
The following terminator is ok:
END_C
but this terminator is not ok:
END_C
See the difference ?
If there happens to be one or more spaces after the END_C on the same line,
then that may also be a problem (not sure).
Another thing I have found (and never been able to explain) is that
sometimes on Win32 there needs to be one or two line breaks between the end
of the Inline::C code and the END_C, and one or two line breaks between the
END_C and the start of the perl code. I still get that error message from
time to time - and when I do get it, I just add some extra lines above and
below the terminating END_C so that:
} // closing bracket of Inline::C function
END_C
my $perlvar = 'something';
becomes:
} // closing bracket of Inline::C function
END_C
my $perlvar = 'something';
I also make sure that there's no spaces after END_C.
Cheers,
Rob
Re: Windows: Perl:Inline
am 08.07.2005 05:14:04 von Sankaran
Hello,
There was few spaces before END_C and I removed those. But Now I am
getting an error like this
************************************************************ *******************************************************
This innvocation of Inline requires the Parse::RecDescent module.
Can't locate Parse/RecDescent.pm in @INC (@INC contains:
E:\Sankaran\Work\TP-TAI
mpacts-LM051049\PerlInline\MyTest1\_Inline\lib D:/Perl/lib
D:/Perl/site/lib .) a
t D:/Perl/site/lib/Inline/C/ParseRecDescent.pm line 14.
at D:/Perl/site/lib/Inline/C.pm line 322
BEGIN failed--compilation aborted at Hello.pl line 5.
************************************************************ *******************************************************
Since I am very new to this area, couldn't able to figure out anything
from this. Do you have any clues??
One more Doubt: My requirement is: Calling few functions in a DLL
(which is already available) from Perl module. Is it possible ? I just
want to ensure I am trying in the right direction. Kindly advise.
Regards,
Sankaran
Re: Windows: Perl:Inline
am 08.07.2005 05:44:30 von Sisyphus
"Sankaran" wrote in message
news:1120792444.834382.84570@g49g2000cwa.googlegroups.com...
> Hello,
>
> There was few spaces before END_C and I removed those. But Now I am
> getting an error like this
>
************************************************************ ****************
***************************************
> This innvocation of Inline requires the Parse::RecDescent module.
> Can't locate Parse/RecDescent.pm in @INC (@INC contains:
> E:\Sankaran\Work\TP-TAI
> mpacts-LM051049\PerlInline\MyTest1\_Inline\lib D:/Perl/lib
> D:/Perl/site/lib .) a
> t D:/Perl/site/lib/Inline/C/ParseRecDescent.pm line 14.
>
> at D:/Perl/site/lib/Inline/C.pm line 322
> BEGIN failed--compilation aborted at Hello.pl line 5.
>
************************************************************ ****************
***************************************
For the Inline::C module to work, you need to have the Parse::RecDescent
module from cpan installed. (I think you should have been warned about that
when you ran 'perl Makefile.PL' while building Inline::C.) Install
Parse::RecDescent (and Text::Balanced, which it needs) and all should be
well. (That's probably why all of those tests failed.)
> One more Doubt: My requirement is: Calling few functions in a DLL
> (which is already available) from Perl module. Is it possible ? I just
> want to ensure I am trying in the right direction. Kindly advise.
>
Which perl module ? Win32::API provides the capability to access dll
functions directly (though the coding can be tricky). Afaik, with Visual
Studio you can't link to the dll - you need to link to an import lib ('.lib'
file) - which can be created from the dll if needs be. So .... yes, you
should be able to access those functions using Inline::C. You might also be
able to access them using Win32::API.
Cheers,
Rob
Re: Windows: Perl:Inline
am 08.07.2005 05:53:27 von Sankaran
Hello,
How to install Parse::RecDescent ?? to which folder ?? for that I have
to download something from CPAn site???
Regards,
Sankaran
Re: Windows: Perl:Inline
am 08.07.2005 07:05:22 von Sisyphus
"Sankaran" wrote in message
news:1120794807.746311.279660@z14g2000cwz.googlegroups.com.. .
> Hello,
>
> How to install Parse::RecDescent ?? to which folder ?? for that I have
> to download something from CPAn site???
>
Yep - same as for Inline::C. Download the source tar.gz file from cpan,
extract it to some location, cd to the top level source directory. and run
'perl Makefile.PL', 'nmake test', 'nmake install'.
I usually start at http://search.cpan.org/ and do a search for (eg)
Parse::RecDescent in 'Distributions'. Then just follow the links to a
'download' link on the module's home page.
Or, if you want to do it the easy way, just install both Parse::RecDescent
and Text::Balanced by using ppm.
Cheers,
Rob
Re: Windows: Perl:Inline
am 08.07.2005 07:41:33 von Sankaran
Hello
I tried installing Text::Balanced and it gave no errors.
Also I installed Parse::RecDescent after installing Text::Balanced
(since installing Parse::RecDescent without installing Text::Balanced
gave me error).
Then I re installed Inline as follows
Extracted Inline-0.44.tar into a local folder
Perl Makefile.pl and getting the below output finally
___________________________________________________
Do you want to install Inline::C? [y] y
Writing Makefile for Inline::C
Writing Makefile for Inline
Fixing Makefile for MSWin32
------------------------------------------------------------ -----------------------------
Then nmake test and got the following (seems not OK)
____________________________________________________________ ________________________________________________
(F) An untrapped exception was raised while executing a CHECK,
INIT, or
END subroutine. Processing of the remainder of the queue of such
routines has been prematurely ended.
Uncaught exception from user code:
Uncaught exception from user code:
Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
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\PerlInline\NewInline\Inline-0.44\C\t\typemap -typemap
E:\Sankaran\Wo
rk\TP-TAImpacts-LM051049\PerlInline\NewInline\Inline-0.44\C\ t\typemap
_03typemap
_t_a52c.xs > _03typemap_t_a52c.xsc && D:\Perl\bin\Perl.exe
-ID:\Perl\lib -ID:\Pe
rl\lib -MExtUtils::Command -e mv _03typemap_t_a52c.xsc
_03typemap_t_a52c.c
cl -c
-IE:/Sankaran/Work/TP-TAImpacts-LM051049/PerlInline/NewInlin e/Inli
ne-0.44/C/t -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
-DHAVE_DES_FCRYPT -D
PERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX -O1 -MD
-DNDEBUG
-DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" -ID:\Perl\lib\CORE
_03typemap_
t_a52c.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for
80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
_03typemap_t_a52c.c
D:\Perl\lib\CORE\perl.h(426) : fatal error C1083: Cannot open include
file: 'sys
/types.h': No such file or directory
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
A problem was encountered while attempting to compile and install your
Inline
C code. The command that failed was:
nmake > out.make 2>&1
The build directory was:
E:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\NewInline\ Inline-0.44\C\_Inlin
e_test\build\_03typemap_t_a52c
To debug the problem, cd to the build directory, and inspect the output
files.
at t\03typemap.t line 0
Carp::croak('^JMicrosoft (R) Program Maintenance Utility
Version 6.00.
9782.0...') called at ..\blib\lib/Inline/C.pm line 743
Inline::C::system_call('Inline::C=HASH(0x1f66250)', 'nmake',
'out.make')
called at ..\blib\lib/Inline/C.pm line 709
Inline::C::make('Inline::C=HASH(0x1f66250)') called at
...\blib\lib/Inlin
e/C.pm line 280
Inline::C::call('Inline::C=HASH(0x1f66250)', 'make', '"make"',
2) called
at ..\blib\lib/Inline/C.pm line 690
Inline::C::compile('Inline::C=HASH(0x1f66250)') called at
...\blib\lib/In
line/C.pm line 280
Inline::C::call('Inline::C=HASH(0x1f66250)', 'compile', 'Build
Compile')
called at ..\blib\lib/Inline/C.pm line 265
Inline::C::build('Inline::C=HASH(0x1f66250)') called at
...\blib\lib/Inli
ne.pm line 267
Inline::glue('Inline::C=HASH(0x1f66250)') called at
...\blib\lib/Inline.p
m line 205
Inline::init called at (eval 2) line 5
Inline::INIT() called at t\03typemap.t line 0
eval {...} called at t\03typemap.t line 0
INIT failed--call queue aborted.
Uncaught exception from user code:
Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
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\PerlInline\NewInline\Inline-0.44\C\t\typemap
_04perlapi_t_3c76.xs >
_04perlapi_t_3c76.xsc && D:\Perl\bin\Perl.exe -ID:\Perl\lib
-ID:\Perl\lib -MExtU
tils::Command -e mv _04perlapi_t_3c76.xsc _04perlapi_t_3c76.c
cl -c
-IE:/Sankaran/Work/TP-TAImpacts-LM051049/PerlInline/NewInlin e/Inli
ne-0.44/C/t -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
-DHAVE_DES_FCRYPT -D
PERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX -O1 -MD
-DNDEBUG
-DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" -ID:\Perl\lib\CORE
_04perlapi_
t_3c76.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for
80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
_04perlapi_t_3c76.c
D:\Perl\lib\CORE\perl.h(426) : fatal error C1083: Cannot open include
file: 'sys
/types.h': No such file or directory
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
A problem was encountered while attempting to compile and install your
Inline
C code. The command that failed was:
nmake > out.make 2>&1
The build directory was:
E:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\NewInline\ Inline-0.44\C\_Inlin
e_test\build\_04perlapi_t_3c76
To debug the problem, cd to the build directory, and inspect the output
files.
at t\04perlapi.t line 0
Carp::croak('^JMicrosoft (R) Program Maintenance Utility
Version 6.00.
9782.0...') called at ..\blib\lib/Inline/C.pm line 743
Inline::C::system_call('Inline::C=HASH(0x1f661c0)', 'nmake',
'out.make')
called at ..\blib\lib/Inline/C.pm line 709
Inline::C::make('Inline::C=HASH(0x1f661c0)') called at
...\blib\lib/Inlin
e/C.pm line 280
Inline::C::call('Inline::C=HASH(0x1f661c0)', 'make', '"make"',
2) called
at ..\blib\lib/Inline/C.pm line 690
Inline::C::compile('Inline::C=HASH(0x1f661c0)') called at
...\blib\lib/In
line/C.pm line 280
Inline::C::call('Inline::C=HASH(0x1f661c0)', 'compile', 'Build
Compile')
called at ..\blib\lib/Inline/C.pm line 265
Inline::C::build('Inline::C=HASH(0x1f661c0)') called at
...\blib\lib/Inli
ne.pm line 267
Inline::glue('Inline::C=HASH(0x1f661c0)') called at
...\blib\lib/Inline.p
m line 205
Inline::init called at (eval 2) line 5
Inline::INIT() called at t\04perlapi.t line 0
eval {...} called at t\04perlapi.t line 0
INIT failed--call queue aborted (#1)
(F) An untrapped exception was raised while executing a CHECK,
INIT, or
END subroutine. Processing of the remainder of the queue of such
routines has been prematurely ended.
Uncaught exception from user code:
Uncaught exception from user code:
Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
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\PerlInline\NewInline\Inline-0.44\C\t\typemap
_04perlapi_t_3c76.xs >
_04perlapi_t_3c76.xsc && D:\Perl\bin\Perl.exe -ID:\Perl\lib
-ID:\Perl\lib -MExtU
tils::Command -e mv _04perlapi_t_3c76.xsc _04perlapi_t_3c76.c
cl -c
-IE:/Sankaran/Work/TP-TAImpacts-LM051049/PerlInline/NewInlin e/Inli
ne-0.44/C/t -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
-DHAVE_DES_FCRYPT -D
PERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX -O1 -MD
-DNDEBUG
-DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" -ID:\Perl\lib\CORE
_04perlapi_
t_3c76.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for
80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
_04perlapi_t_3c76.c
D:\Perl\lib\CORE\perl.h(426) : fatal error C1083: Cannot open include
file: 'sys
/types.h': No such file or directory
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
A problem was encountered while attempting to compile and install your
Inline
C code. The command that failed was:
nmake > out.make 2>&1
The build directory was:
E:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\NewInline\ Inline-0.44\C\_Inlin
e_test\build\_04perlapi_t_3c76
To debug the problem, cd to the build directory, and inspect the output
files.
at t\04perlapi.t line 0
Carp::croak('^JMicrosoft (R) Program Maintenance Utility
Version 6.00.
9782.0...') called at ..\blib\lib/Inline/C.pm line 743
Inline::C::system_call('Inline::C=HASH(0x1f661c0)', 'nmake',
'out.make')
called at ..\blib\lib/Inline/C.pm line 709
Inline::C::make('Inline::C=HASH(0x1f661c0)') called at
...\blib\lib/Inlin
e/C.pm line 280
Inline::C::call('Inline::C=HASH(0x1f661c0)', 'make', '"make"',
2) called
at ..\blib\lib/Inline/C.pm line 690
Inline::C::compile('Inline::C=HASH(0x1f661c0)') called at
...\blib\lib/In
line/C.pm line 280
Inline::C::call('Inline::C=HASH(0x1f661c0)', 'compile', 'Build
Compile')
called at ..\blib\lib/Inline/C.pm line 265
Inline::C::build('Inline::C=HASH(0x1f661c0)') called at
...\blib\lib/Inli
ne.pm line 267
Inline::glue('Inline::C=HASH(0x1f661c0)') called at
...\blib\lib/Inline.p
m line 205
Inline::init called at (eval 2) line 5
Inline::INIT() called at t\04perlapi.t line 0
eval {...} called at t\04perlapi.t line 0
INIT failed--call queue aborted.
Uncaught exception from user code:
Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
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\PerlInline\NewInline\Inline-0.44\C\t\typemap xsmode.xs >
xsmode.xsc
&& D:\Perl\bin\Perl.exe -ID:\Perl\lib -ID:\Perl\lib -MExtUtils::Command
-e mv xs
mode.xsc xsmode.c
Please specify prototyping behavior for xsmode.xs (see perlxs manual)
cl -c
-IE:/Sankaran/Work/TP-TAImpacts-LM051049/PerlInline/NewInlin e/Inli
ne-0.44/C/t -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
-DHAVE_DES_FCRYPT -D
PERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX -O1 -MD
-DNDEBUG
-DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" -ID:\Perl\lib\CORE
xsmode.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for
80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
xsmode.c
D:\Perl\lib\CORE\perl.h(426) : fatal error C1083: Cannot open include
file: 'sys
/types.h': No such file or directory
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
A problem was encountered while attempting to compile and install your
Inline
C code. The command that failed was:
nmake > out.make 2>&1
The build directory was:
E:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\NewInline\ Inline-0.44\C\_Inlin
e_test\build\xsmode
To debug the problem, cd to the build directory, and inspect the output
files.
at t\05xsmode.t line 0
Carp::croak('^JMicrosoft (R) Program Maintenance Utility
Version 6.00.
9782.0...') called at ..\blib\lib/Inline/C.pm line 743
Inline::C::system_call('Inline::C=HASH(0x1f661f0)', 'nmake',
'out.make')
called at ..\blib\lib/Inline/C.pm line 709
Inline::C::make('Inline::C=HASH(0x1f661f0)') called at
...\blib\lib/Inlin
e/C.pm line 280
Inline::C::call('Inline::C=HASH(0x1f661f0)', 'make', '"make"',
2) called
at ..\blib\lib/Inline/C.pm line 690
Inline::C::compile('Inline::C=HASH(0x1f661f0)') called at
...\blib\lib/In
line/C.pm line 280
Inline::C::call('Inline::C=HASH(0x1f661f0)', 'compile', 'Build
Compile')
called at ..\blib\lib/Inline/C.pm line 265
Inline::C::build('Inline::C=HASH(0x1f661f0)') called at
...\blib\lib/Inli
ne.pm line 267
Inline::glue('Inline::C=HASH(0x1f661f0)') called at
...\blib\lib/Inline.p
m line 205
Inline::init called at (eval 2) line 5
Inline::INIT() called at t\05xsmode.t line 0
eval {...} called at t\05xsmode.t line 0
INIT failed--call queue aborted (#1)
(F) An untrapped exception was raised while executing a CHECK,
INIT, or
END subroutine. Processing of the remainder of the queue of such
routines has been prematurely ended.
Uncaught exception from user code:
Uncaught exception from user code:
Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
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\PerlInline\NewInline\Inline-0.44\C\t\typemap xsmode.xs >
xsmode.xsc
&& D:\Perl\bin\Perl.exe -ID:\Perl\lib -ID:\Perl\lib -MExtUtils::Command
-e mv xs
mode.xsc xsmode.c
Please specify prototyping behavior for xsmode.xs (see perlxs manual)
cl -c
-IE:/Sankaran/Work/TP-TAImpacts-LM051049/PerlInline/NewInlin e/Inli
ne-0.44/C/t -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
-DHAVE_DES_FCRYPT -D
PERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX -O1 -MD
-DNDEBUG
-DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" -ID:\Perl\lib\CORE
xsmode.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for
80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
xsmode.c
D:\Perl\lib\CORE\perl.h(426) : fatal error C1083: Cannot open include
file: 'sys
/types.h': No such file or directory
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
A problem was encountered while attempting to compile and install your
Inline
C code. The command that failed was:
nmake > out.make 2>&1
The build directory was:
E:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\NewInline\ Inline-0.44\C\_Inlin
e_test\build\xsmode
To debug the problem, cd to the build directory, and inspect the output
files.
at t\05xsmode.t line 0
Carp::croak('^JMicrosoft (R) Program Maintenance Utility
Version 6.00.
9782.0...') called at ..\blib\lib/Inline/C.pm line 743
Inline::C::system_call('Inline::C=HASH(0x1f661f0)', 'nmake',
'out.make')
called at ..\blib\lib/Inline/C.pm line 709
Inline::C::make('Inline::C=HASH(0x1f661f0)') called at
...\blib\lib/Inlin
e/C.pm line 280
Inline::C::call('Inline::C=HASH(0x1f661f0)', 'make', '"make"',
2) called
at ..\blib\lib/Inline/C.pm line 690
Inline::C::compile('Inline::C=HASH(0x1f661f0)') called at
...\blib\lib/In
line/C.pm line 280
Inline::C::call('Inline::C=HASH(0x1f661f0)', 'compile', 'Build
Compile')
called at ..\blib\lib/Inline/C.pm line 265
Inline::C::build('Inline::C=HASH(0x1f661f0)') called at
...\blib\lib/Inli
ne.pm line 267
Inline::glue('Inline::C=HASH(0x1f661f0)') called at
...\blib\lib/Inline.p
m line 205
Inline::init called at (eval 2) line 5
Inline::INIT() called at t\05xsmode.t line 0
eval {...} called at t\05xsmode.t line 0
INIT failed--call queue aborted.
Failed 5/6 test scripts, 16.67% okay. 9/11 subtests failed, 18.18%
okay.
NMAKE : fatal error U1077: 'D:\Perl\bin\Perl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
____________________________________________________________ ________________________________________
then nmake install and I got the following out put
____________________________________________________________ _______________________________________
Skipping D:\Perl\site\lib\Inline-API.pod (unchanged)
Skipping D:\Perl\site\lib\Inline-FAQ.pod (unchanged)
Skipping D:\Perl\site\lib\Inline-Support.pod (unchanged)
Skipping D:\Perl\site\lib\Inline.pm (unchanged)
Skipping D:\Perl\site\lib\Inline.pod (unchanged)
Skipping D:\Perl\site\lib\Inline\C-Cookbook.pod (unchanged)
Skipping D:\Perl\site\lib\Inline\C.pm (unchanged)
Skipping D:\Perl\site\lib\Inline\C.pod (unchanged)
Skipping D:\Perl\site\lib\Inline\denter.pm (unchanged)
Skipping D:\Perl\site\lib\Inline\Foo.pm (unchanged)
Skipping D:\Perl\site\lib\Inline\MakeMaker.pm (unchanged)
Skipping D:\Perl\site\lib\Inline\MakeMaker\Changes (unchanged)
Skipping D:\Perl\site\lib\Inline\C\ParseRecDescent.pm (unchanged)
Skipping D:\Perl\site\lib\Inline\C\ParseRegExp.pm (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\autosplit.ix (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\check_config_file.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\check_module.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\clean_build.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\create_config_file.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\env_untaint.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\filter.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\find_temp_dir.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\install.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M01_usage_use.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M02_usage.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M03_usage_bind.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M04_error_nocode.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M05_error_eval.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M06_code_file_failed_open.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M07_code_file_does_not_exist.al
(unchanged
)
Skipping D:\Perl\site\lib\auto\Inline\M08_no_DATA_source_code.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M09_marker_mismatch.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M10_usage_WITH_USING.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M11_usage_DIRECTORY.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M12_usage_NAME.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M13_usage_VERSION.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M14_usage_Config.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M15_usage_install_directory.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M16_DIRECTORY_mkdir_failed.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M17_config_open_failed.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M18_error_old_version.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M19_usage_language.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M20_config_creation_failed.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M21_opendir_failed.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M22_usage_register.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M23_usage_alias_used.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M24_open_for_output_failed.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M25_no_WITH_support.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M26_error_version_without_name. al
(unchang
ed)
Skipping D:\Perl\site\lib\auto\Inline\M27_module_not_indexed.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M28_error_grokking_path.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M29_error_relative_path.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M30_error_no_obj.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M31_inline_open_failed.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M32_error_md5_validation.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M33_error_old_inline_version.al
(unchanged
)
Skipping D:\Perl\site\lib\auto\Inline\M34_error_incorrect_version.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M35_error_no_object_file.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M36_usage_install_main.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M37_usage_install_auto.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M38_usage_install_name.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M39_usage_install_version.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M40_usage_install_badname.al
(unchanged)
Skipping
D:\Perl\site\lib\auto\Inline\M41_usage_install_version_misma tch.al (unc
hanged)
Skipping D:\Perl\site\lib\auto\Inline\M42_usage_loader.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M43_error_bootstrap.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M45_usage_with.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M46_usage_with_bad.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M47_invalid_config_option.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M48_usage_shortcuts.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M49_usage_unsafe.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M51_unused_DATA.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M52_invalid_filter.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M53_mkdir_failed.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M54_rmdir_failed.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M55_unlink_failed.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M56_no_DIRECTORY_found.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M57_wrong_architecture.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M58_site_install.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M59_bad_inline_file.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M60_no_inline_files.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M61_not_parsed.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M62_invalid_config_file.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M63_no_source.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\M64_install_not_c.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\maker_utils.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\mkpath.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\obj_untaint.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\print_info.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\read_inline_file.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\receive_code.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\reportbug.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\rmpath.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\with_configs.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\write_inl_file.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\_mkdir.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\_rmtree.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\denter\autosplit.ix (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\denter\indent.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\denter\indent_array.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\denter\indent_data.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\denter\indent_hash.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\denter\indent_name.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\denter\indent_ref.al (unchanged)
Skipping D:\Perl\site\lib\auto\Inline\denter\indent_scalar.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\denter\indent_undef.al
(unchanged)
Skipping D:\Perl\site\lib\auto\Inline\denter\indent_value.al
(unchanged)
Skipping
D:\Perl\site\lib\auto\Inline\denter\M01_invalid_indent_width .al (unchan
ged)
Skipping D:\Perl\site\lib\auto\Inline\denter\M02_no_key_end_marker.al
(unchanged
)
Skipping D:\Perl\site\lib\auto\Inline\denter\M03_no_value_end_marker. al
(unchang
ed)
Skipping D:\Perl\site\lib\auto\Inline\denter\M04_mismatched_quotes.al
(unchanged
)
Skipping D:\Perl\site\lib\auto\Inline\denter\M05_invalid_key_value.al
(unchanged
)
Skipping
D:\Perl\site\lib\auto\Inline\denter\M06_invalid_indent_level .al (unchan
ged)
Skipping
D:\Perl\site\lib\auto\Inline\denter\M07_invalid_scalar_value .al (unchan
ged)
Skipping D:\Perl\site\lib\auto\Inline\denter\_print_ref.al (unchanged)
Writing D:\Perl\site\lib\auto\Inline\.packlist
Appending installation info to D:\Perl\lib/perllocal.pod
____________________________________________________________ ________________________________
I am really sorry for such a big mail, but without this I am unable to
communicate my problems with you. Do you have any idea what is
happening or atleast whether this is installed correctly or not, theny
why I am getting error while running my program.
Thanks
Sankaran
Re: Windows: Perl:Inline
am 08.07.2005 09:27:10 von Sisyphus
"Sankaran" wrote in message
news:1120801292.971181.104250@g49g2000cwa.googlegroups.com.. .
>
> I am really sorry for such a big mail, but without this I am unable to
> communicate my problems with you. Do you have any idea what is
> happening or atleast whether this is installed correctly or not, theny
> why I am getting error while running my program.
>
The tests should pass - something is still wrong.
Start again with the Inline installation by doing the following:
cd into the
E:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\NewInline\ Inline-0.44\
folder and run:
nmake clean
then run:
perl Makefile.PL
then (instead of 'nmake test') run:
nmake
That should produce output like:
E:\comp56\Inline-0.44>nmake
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
cp lib/Inline/Foo.pm blib\lib\Inline\Foo.pm
cp lib/Inline/MakeMaker/Changes blib\lib\Inline\MakeMaker\Changes
cp lib/Inline/MakeMaker.pm blib\lib\Inline\MakeMaker.pm
cp lib/Inline/denter.pm blib\lib\Inline\denter.pm
AutoSplitting blib\lib\Inline\denter.pm (blib\lib\auto\Inline\denter)
cp Inline.pod blib\lib\Inline.pod
cp Inline-API.pod blib\lib\Inline-API.pod
cp Inline-FAQ.pod blib\lib\Inline-FAQ.pod
cp Inline-Support.pod blib\lib\Inline-Support.pod
cp Inline.pm blib\lib\Inline.pm
AutoSplitting blib\lib\Inline.pm (blib\lib\auto\Inline)
cp C-Cookbook.pod ..\blib\lib\Inline\C-Cookbook.pod
cp lib/Inline/C/ParseRecDescent.pm ..\blib\lib\Inline\C\ParseRecDescent.pm
cp lib/Inline/C/ParseRegExp.pm ..\blib\lib\Inline\C\ParseRegExp.pm
cp C.pm ..\blib\lib\Inline\C.pm
cp C.pod ..\blib\lib\Inline\C.pod
Any errors yet ? If so what are they ? If not run:
nmake test
That should produce output like (takes a little time to run):
E:\comp56\Inline-0.44>nmake test
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
E:\Perl638\bin\perl.exe -Mblib -IE:\Perl638\lib -IE:\Perl638\lib -e
"use
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;"
t\00init.t t
\01usages.t t\02config.t t\03errors.t t\04create.t t\05files.t
Using E:/comp56/Inline-0.44/blib
t\00init......ok
t\01usages....ok
t\02config....ok
t\03errors....ok
t\04create....ok
t\05files.....skipped
all skipped: no reason given
All tests successful, 1 test skipped.
Files=6, Tests=14, 13 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU)
E:\Perl638\bin\perl.exe -Mblib -IE:\Perl638\lib -IE:\Perl638\lib -e
"use
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;"
t\00init.t t
\01syntax.t t\02config.t t\03typemap.t t\04perlapi.t t\05xsmode.t
Using E:/comp56/Inline-0.44/C/../blib
t\00init.......ok
t\01syntax.....ok
t\02config.....ok
t\03typemap....ok
t\04perlapi....ok
t\05xsmode.....ok
All tests successful.
Files=6, Tests=12, 44 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU)
Presumably, with 'nmake test', you get those same errors again. Could you
post the contents of one of the out.make files mentioned in the errors ?
Do you know why sys/types.h cannot be found ? types.h should exist in your
compiler's Include/sys/ folder. Does it ?
Something odd is happening and I can't yet see what, why, or how ......
Did Text::Balanced and Parse::RecDescent pass *all* tests when you ran
'nmake test'.
Cheers,
Rob
Re: Windows: Perl:Inline
am 09.07.2005 06:58:03 von Sankaran
Hello
TYPES.H is available in "C:\Program Files\Microsoft Visual
Studio\VC98\Include\SYS" in my machine. Also I can see another in
"C:\Program Files\Microsoft Visual Studio\VC98\CRT\SRC\SYS".
All tests are passed for "Parse-RecDescent-1.94" as well as
"Text::Balanced ", but still the same previous error is reporting to me
when I am trying to install Inline. Does it required Administrator
privilage to install, currently I dont have that.
out.mak file contains the following
____________________________________
Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
D:\Perl\bin\Perl.exe -ID:\Perl\lib -ID:\Perl\lib
D:\Perl\lib\ExtUtils/xsubpp -typemap D:\Perl\lib\ExtUtils\typemap
-typemap
E:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\Inline-0.4 4.tar\Inline-0.44\C\t\typemap
_01syntax_t_6b3a.xs > _01syntax_t_6b3a.xsc && D:\Perl\bin\Perl.exe
-ID:\Perl\lib -ID:\Perl\lib -MExtUtils::Command -e mv
_01syntax_t_6b3a.xsc _01syntax_t_6b3a.c
cl -c
-IE:/Sankaran/Work/TP-TAImpacts-LM051049/PerlInline/Inline-0 .44.tar/Inline-0.44/C/t
-O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT
-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX -O1
-MD -DNDEBUG -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\"
-ID:\Perl\lib\CORE _01syntax_t_6b3a.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for
80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
_01syntax_t_6b3a.c
D:\Perl\lib\CORE\perl.h(426) : fatal error C1083: Cannot open include
file: 'sys/types.h': No such file or directory
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
____________________________________________________________ ______________________________________________
Thanks,
Sankaran
Re: Windows: Perl:Inline
am 09.07.2005 10:05:14 von Sisyphus
"Sankaran" wrote in message
news:1120885083.370743.70530@g47g2000cwa.googlegroups.com...
> Hello
> TYPES.H is available in "C:\Program Files\Microsoft Visual
> Studio\VC98\Include\SYS" in my machine.
Yes - that's the one that needs to be included.
>
> All tests are passed for "Parse-RecDescent-1.94" as well as
> "Text::Balanced ", but still the same previous error is reporting to me
> when I am trying to install Inline. Does it required Administrator
> privilage to install, currently I dont have that.
>
If you were able to install Parse-RecDescent and Text-Balanced then you
should be able to install Inline.
Inline::C does require "write" permission to the build directory - which is
the directory that contains out.make. The fact that out.make exists would
surely indicate that Inline::C *does* have write access to that directory
(since out.make was written by Inline::C).
The problem seems to be that 'sys/types.h' can't be found - and I simply
don't know why that error is occurring.
I would think that 'sys/types.h' would also have needed to be found when you
built Parse-RecDescent. Apparently there was no problem then .... I can't
see why it should be a problem with Inline::C.
Try the inline mailing list if no-one else comes up with any suggestions -
someone there might be able to come up with the answer.
In the meantime .... I'll keep thinking about it.
Cheers,
Rob
Re: Windows: Perl:Inline
am 09.07.2005 11:40:56 von Sisyphus
"Sisyphus"
>
> The problem seems to be that 'sys/types.h' can't be found - and I simply
> don't know why that error is occurring.
Ok - I think there's something wrong with your environment variables. Did
you (before trying to build Inline::C) execute vcvars32.bat (which is found
in your C:\Program Files\Microsoft Visual Studio\VC98\bin\ folder) ? If you
didn't run that batch program, then try doing so and then see if Inline::C
will build and test ok.
If you have run that batch program and the problem about not being able to
find 'sys/types.h' still exists, then run:
set include
That should display a list of paths that includes the path:
C:\Program Files\Microsoft Visual Studio\VC98\include
Does it ? If not, that's the problem - but if that path is there, then
'sys/types.h' should be found.
>
> I would think that 'sys/types.h' would also have needed to be found when
you
> built Parse-RecDescent.
That's not correct. Parse-RecDescent is pure perl - so there will be *no*
attempt made to load sys/types.h'. (Might have saved some time if I had
checked on my assumption that Parse-RecDescent was an XS module. My fault,
not yours.)
Cheers,
Rob
Re: Windows: Perl:Inline
am 11.07.2005 06:40:13 von Sankaran
Hello,
Yes !!!! I think the problem was not running vcvars32 and now it seems
working.
Thank you a lot...soon I will join you with few more queries.
Thanks.
Sankaran
Re: Windows: Perl:Inline
am 11.07.2005 10:08:32 von Sankaran
Hello,
I have few more doubts on Inline.
I have one perl module called Install.pl and I have a DLL (Written in
MFC and C++) called RegistryWrapper.DLL.
My requirement is to call the exported functions of this
RegistryWrapper.DLL from Install.pl module. Is it possible to do the
same using installing Inline::C? Or should I go for Inline:CPP (if yes
from where can I download Inline:CPP).
>From where can I found documents describes or any kind of tutorial for
the above query ??
Regards,
Sankaran