On Fri, Aug 28, 2009 at 01:38:42PM +0100, Steve Hay wrote:
> Nicholas Clark wrote on 2009-08-28:

> > Does anyone have convenient access to Win32 to run this and display
> the
> > output?
> > 
> > Right now you might need to run it as (the Win32 transcription) of cd
> > ext/DynaLoader && ../../perl -I../../t -MTestInit=U2T,NC -T
> > t/DynaLoader.t
> > 
> > (or cd t && ./perl harness ../ext/DynaLoader/DynaLoader.t )
> > 
> 
> C:\gitclients\perl\t>..\perl .\harness -v
> ..\ext\DynaLoader\t\DynaLoader.t
> Not enough arguments for DynaLoader::dl_load_file at t/DynaLoader.t line
> 90, near "() "
> BEGIN not safe after errors--compilation aborted at t/DynaLoader.t line
> 94.
> ../ext/DynaLoader/t/DynaLoader.t .. No subtests run

Thanks. Why on earth is it unhappy? On Linux I see this

./perl -Ilib -MDynaLoader -lwe 'eval {DynaLoader::dl_load_file()}; print "The 
error was $@"'
The error was Usage: DynaLoader::dl_load_file(filename, flags=0) at -e line 1.

What is causing DynaLoader::dl_load_file() to have a prototype, all of a 
sudden? The line "MODULE = DynaLoader   PACKAGE = DynaLoader" in
win32/dl_win32.xs dates from 1997.

[Also, why is dl_win32.xs there, rather than in ext/DynaLoader?]

Nicholas Clark

Reply via email to