Hi,

I'm trying to use Inline.pm with the following
configuration and have had problems as described
below.

OS        : Microsoft Windows 2000 [Version 5.00.2195]
Perl      : ActiveState Perl version 5.6.1 Build 628
Inline.pm : version 0.43 got from CPAN. 
Inline.pm installed using 
 - perl Makefile.PL
 - nmake 
 - nmake test 
 - nmake install.

The first problem was when I ran "nmake test" for 
Inline.pm. This is what I got...
------- Begin Error Message ------------------------
t\00init............ok
t\01usages..........ok
t\02config..........ok
t\03errors..........ok
t\04create..........ok
t\05files...........skipped test on this platform
All tests successful, 1 test skipped.
Files=6, Tests=14,  3 wallclock secs ( 0.00 cusr + 
0.00 csys =  0.00 CPU)
        D:\ActivePerl\bin\Perl.exe -Mblib
-ID:\ActivePerl\lib -ID:\ActivePerl\li
b -e "use Test::Harness qw(&runtests $verbose);
$verbose=0; runtests @ARGV;" t\0
0init.t t\01syntax.t t\02config.t t\03typemap.t
t\04perlapi.t t\05xsmode.t
Using
D:/users/nagaraj/source/Inline0.43/Inline-0.43/C/../blib
t\00init............ok
t\01syntax..........Uncaught exception from user code:
        Uncaught exception from user code:

A problem was encountered while attempting to compile
and install your Inline
C code. The command that failed was:
  D:\ActivePerl\bin\perl.exe Makefile.PL >
out.Makefile_PL 2>&1

The build directory was:
D:/users/nagaraj/source/Inline0.43/Inline-0.43/C/_Inline_test/build/_01syntax_t_
6b3a
To debug the problem, cd to the build directory, and
inspect the output files.

 at t\01syntax.t line 27
        Carp::croak('^JA problem was encountered while
attempting to compile and
 insta...') called at ../blib/lib/Inline/C.pm line 675
       
Inline::C::compile('Inline::C=HASH(0x2a5424c)') called
at ../blib/lib/In
line/C.pm line 223
        Inline::C::build('Inline::C=HASH(0x2a5424c)')
called at ../blib/lib/Inli
ne.pm line 255
        Inline::glue('Inline::C=HASH(0x2a5424c)')
called at ../blib/lib/Inline.p
m line 133
        Inline::import('Inline', 'C', '^Jint add(int
x, int y) {^J    return x +
 y;^J}^J^Jint subtract(int x...') called at
t\01syntax.t line 27
        main::BEGIN() called at t\01syntax.t line 36
        eval {...} called at t\01syntax.t line 36
BEGIN failed--compilation aborted at t\01syntax.t line
36.
t\01syntax..........dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-5
------- End Error Message ------------------------


I went ahead and installed Inline.pm using 
nmake Install. Installation went through and then 
when I try to run a sample script like

--- Begin sample script ------
greet('Ingy');
greet(42);     

use Inline C => <<'END_OF_C_CODE';     

void greet(char* name) {
      printf("Hello %s!\n", name);
}     

END_OF_C_CODE
--- End sample script ------



I get the following error:
------- Begin Error Message ------------------------
D:\users\nagaraj\work\TestPrograms>perl Simple.pl

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:
D:/users/nagaraj/work/TestPrograms/_Inline/build/Simple_pl_1370

To debug the problem, cd to the build directory, 
and inspect the output files.

 at Simple.pl line 6
BEGIN failed--compilation aborted at Simple.pl 
line 12.
------- End Error Message ------------------------


On changing directory and running nmake this is 
what I got...
------- Begin Error Message ------------------------
D:\users\nagaraj\work\TestPrograms\_Inline\build\Simple_pl_1370>nmake

Microsoft (R) Program Maintenance Utility   
Version 6.00.8168.0 Copyright (C) Microsoft Corp 
1988-1998. All rights reserved.

        cl -c -ID:/users/nagaraj/work/TestPrograms
-nologo -O1 -MD -DNDEBUG -DWI
N32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT
-DPERL_IMPLICIT_CONTEXT -DPERL_IMPL
ICIT_SYS -DPERL_MSVCRT_READFIX -O1 -MD -DNDEBUG   
-DVERSION=\"0.00\"  -DXS_VERS
ION=\"0.00\"  -ID:\ActivePerl\lib\CORE 
Simple_pl_1370.c
Simple_pl_1370.c
D:\ActivePerl\lib\CORE\perl.h(435) : fatal error 
C1083: Cannot open include file : 'sys/types.h': No
such file or directory
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
------- End Error Message ------------------------


Why should the sys/types.h file be included for a
Win2K environment ??? Could somebody please help me?

Thanks and Regards,
- Nagaraj

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Reply via email to