[Net-ssleay-devel] Testers for svn trunk, please.

Mike McCauley mikem at open.com.au
Wed Jul 26 00:00:11 UTC 2006


Hello Florian,

OK, more progress, then problems on Windows:

1. Need to manually install Test::Exception on Windows else get (skippable) 
problems during perl Makefile.PL

2. There is a syntax error on Windows in ssleay_verify_callback_invoke:
The declaration 

dSP;

needs to appear _not_ embedded in the code, but up with the other function 
level declarations:
ssleay_verify_callback_invoke (int ok, X509_STORE_CTX* x509_store) {
	SSL* ssl;
	SV* key;
	char* key_str;
	STRLEN key_len;
	SV** callback;
	int count, res;
	dSP;                     <- MOVE To HERE

(some Windows C compilers dont permit inline variable declarations).

3. The link phase of the ssleay.dll fails, because the necessary switches set 
by  ssleay_get_build_opts (lib_paths and lib_links) dont end up on the link 
command line. The resulting link command line is:

        link -out:blib\arch\auto\Net\SSLeay\SSLeay.dll -dll -nologo 
-nodefaultli
b -debug -opt:ref,icf  -libpath:"C:\Perl\lib\CORE"  -machine:x86 SSLeay.obj   
C:
\Perl\lib\CORE\perl58.lib "C:\Program Files\Microsoft Visual 
Studio\VC98\lib\old
names.lib" "C:\Program Files\Microsoft SDK\Lib\.\kernel32.lib" "C:\Program 
Files
\Microsoft SDK\Lib\.\user32.lib" "C:\Program Files\Microsoft SDK\Lib\.
\gdi32.lib
" "C:\Program Files\Microsoft SDK\Lib\.\winspool.lib" "C:\Program 
Files\Microsof
t SDK\Lib\.\comdlg32.lib" "C:\Program Files\Microsoft SDK\Lib\.\advapi32.lib" 
"C
:\Program Files\Microsoft SDK\Lib\.\shell32.lib" "C:\Program Files\Microsoft 
SDK
\Lib\.\ole32.lib" "C:\Program Files\Microsoft SDK\Lib\.\oleaut32.lib" "C:
\Progra
m Files\Microsoft SDK\Lib\.\netapi32.lib" "C:\Program Files\Microsoft 
SDK\Lib\.\
uuid.lib" "C:\Program Files\Microsoft SDK\Lib\.\ws2_32.lib" "C:\Program 
Files\Mi
crosoft SDK\Lib\.\mpr.lib" "C:\Program Files\Microsoft SDK\Lib\.\winmm.lib" 
"C:\
Program Files\Microsoft SDK\Lib\.\version.lib" "C:\Program Files\Microsoft 
SDK\L
ib\.\odbc32.lib" "C:\Program Files\Microsoft SDK\Lib\.\odbccp32.lib" "C:
\Program
 Files\Microsoft Visual Studio\VC98\lib\msvcrt.lib" -def:SSLeay.def

Also, some Unixish command line options make it onto the Windows compiler 
command lines (such as -g)
Im note sure if this is because Module::Build also needs to make it into the 
dist? Or does Module::Install really support Windows properly?
Any ideas?

Cheers.



On Tuesday 25 July 2006 22:21, Florian Ragwitz wrote:
> On Tue, Jul 25, 2006 at 10:06:49PM +1000, Mike McCauley wrote:
> > Checked on Windows Server 2003 with active Perl 5.8.8:
> >
> > perl Makefile.PL complains with
> >
> > bareword "auto_include" not allowed while "strict subs" in use at
> > Makefile.PL line 32.
> > bareword "auto_install" not allowed while "strict subs" in use at
> > Makefile.PL line 33.
> >
> > where are those supposed to come from? I have installed Module::Install
> > and YAML::Syck using PPM.
>
> Those come from Module::Install::AutoInstall and
> Module::Install::Include, which are parts of Module::Install. Probably
> your ppm of M::I is to old. I suggest doing the following which is the
> same that will be done for a cpan release:
>
> - On a box with recent M:::I, preferably the linux box which already
>   worked before, run perl Makefile.PL.
> - Run 'make manifest' to add the contents of inc/ to MANIFEST.
> - Run 'make dist' to generate a distribution tarball, including the inc/
>   directory with the recent M::I.
> - Get that dist to the win 32 box, unpack and build as usual. It'll now
>   use M::I from inc/, which should have auto_{install,include}.
>
>
> PS: You don't need to Cc me on replies to the list. I read the list as
>     well.
>
> -Flo

-- 
Mike McCauley                               mikem at open.com.au
Open System Consultants Pty. Ltd            Unix, Perl, Motif, C++, WWW
9 Bulbul Place Currumbin Waters QLD 4223 Australia   http://www.open.com.au
Phone +61 7 5598-7474                       Fax   +61 7 5598-7070

Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS, 
TTLS, PEAP etc on Unix, Windows, MacOS, NetWare etc.



More information about the Net-ssleay-devel mailing list