----- Original Message ----- 
>
> ok, that fixes the test error, but its still not working.  Heres what Im
doing:
>
> perl Makefile.PL
>     writes the Makefile
>
> make
>     seems to work okay, except for the warnings that i noted above.
>
> make test
>     now it passes both tests, after modifying test.t as you suggested.
>     BUT, it does not print $lpbuffer, even though i put a line to do so.
>     my entire line (print "lpbuffer: $lpbuffer\n";) is just ignored (?!)
>

Aaah, yes - it happens like that with 'make test'. One way to fix: remove
your print
statement and change the last line of the test script so it reads:

print "".(($lpbuffer !~ /TEMP/i)?"$lpbuffer not ": "$lpbuffer ") . "ok 3\n";

That should make it visible. (Sorry, I shoulder been more explicit.)


> make install
>     appears to install correctly.
>
> Installing /usr/lib/perl5/site_perl/5.8/cygwin/auto/Win32/API/API.dll
> Installing /usr/lib/perl5/site_perl/5.8/cygwin/auto/Win32/API/libAPI.dll.a
> Files found in blib/arch: installing files in blib/lib into architecture
> dependent library tree
> Writing /usr/lib/perl5/site_perl/5.8/cygwin/auto/Win32/API/.packlist
> Appending installation info to /usr/lib/perl5/5.8/cygwin/perllocal.pod
>

I don't see any mention of  API.pm having been installed ? I'm not really
sure about Cygwin's perl directory structure - I think you should at least
have the file X/Win32/API.pm where 'X' denotes one of the @INC directories
(probably '/usr/lib/perl5/site_perl/5.8/cygwin/').

> now when i run your simple test script, it still returns
>     Sementation Fault.  core dumped
>
> and when i attempt to run the test.t in perl:
>     $ perl t/test.t
>     1..2
>     Segmentation fault (core dumped)
>

Instead of running:
$ perl t/test.t
try:
$ perl -Mblib t/test.t

That will use the Win32::API that you have just built - if it works ok (and
it should) then we know for sure you have built a functional Win32::API, and
it just remains to get that properly built module, properly installed.

It seems inconsistent that 'make test' doesn't segfault, but everything else
does ...

Cheers,
Rob

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to