BUG Report (tiny script/documentation bugs):
--------
I installed, successfully, OpenSSL into Windows 95, using
a ECGS gcc compiler.
Some problems occurred and they are mentioned here.
If you wish to report a bug then please include the following
information in
any bug report:
OpenSSL Details
The version commented about is "0.9.3 23 May 1999"
OpenSSL> version
OpenSSL 0.9.3 23 May 1999
Operating System Details
The operating ssytem is Windows 95 950a.
Cygnus Cygwin B20 textutils (only?) was installed and it
provided the unix commands (including many but not the gmkdir
fileutil command)
Compiler Details
Instructions followed, the compiler was the ECGS gcc compiler.
I was hoping to get SSLeay functionality in Perl in Windows 95.
(No seems to be sending helpful messages to Usenet.)
Report the bug to the OpenSSL project at:
[EMAIL PROTECTED]
I am using openSSL as it seemed to be the best chance of getting
SSL in Perl in Windows 95 in a way that was portable to unix/etc.
PROBLEM 1 -- Bad line in a Perl script.
---------
The Perl script "Configure" contains the line:
system "perl crypto/objects/obj_dat.pl <crypto/objects/objects.h
>crypto/objects/obj_dat.h";
A fix is to run the line by hand.
The Perl is GS Perl from CPAN:
=======================================================================
U:\openssl-0.9.3>perl -V
Summary of my perl5 (5.0 patchlevel 4 subversion 02) configuration:
Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32
uname=''
hint=recommended, useposix=true, d_sigaction=undef
bincompat3=undef useperlio=undef d_sfio=undef
Compiler:
cc='bcc32', optimize='-O', gccversion=
cppflags='-DWIN32'
ccflags ='-D_RTLDLL -DWIN32'
stdchar='unsigned char', d_stdstdio=define, usevfork=false
voidflags=15, castflags=0, d_casti32=define, d_castneg=define
intsize=4, alignbytes=8, usemymalloc=n, randbits=15
Linker and Libraries:
ld='tlink32', ldflags =''
libpth=c:\bc5\lib
libs=import32.lib cw32mti.lib odbc32.lib odbccp32.lib
libc=cw32mti.lib, so=dll
useshrplib=undef, libperl=undef
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags='', lddlflags='-Tpd'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING
Built under MSWin32
Compiled at Aug 9 1997 21:42:37
@INC:
H:\PERLGS\lib\site
H:\PERLGS\lib
c:\perl\lib
c:\perl\lib\site
c:\perl\lib\site
.
U:\openssl-0.9.3>perl -w crypto/objects/obj_dat.pl
<crypto\objects\objects.h >cr
ypto\objects\obj_dat.h
U:\openssl-0.9.3>perl -w crypto/objects/obj_dat.pl
<crypto/objects/objects.h >cr
ypto/objects/obj_dat.h
Access denied
Some of the forward slashes must be back slashes, so
change doublequote to single quote.
However, the ">" is also objected to.
=======================================================================
PROBLEM 2 -- Backslashes-bug? & FTP site for make was down
---------
The FTP directory was always closed.
I used instead the fastest that Fast FTP of Lycos knew of, which
was:
ftp://ftp.dl.ac.uk/ccp14/ftp-mirror/programming/mingw32/home/janjaap/mingw32/binaries/make-3.76.1.zip
That version of make has some serious bugs:
---------------------------------------------------------------------
...
U:\openssl-0.9.3>perl util\mkfiles.pl >MINFO
U:\openssl-0.9.3>perl util\mk1mf.pl Mingw32 >ms\mingw32.mak
U:\openssl-0.9.3>perl util\mk1mf.pl Mingw32-files >ms\mingw32f.mak
U:\openssl-0.9.3>perl util\mkdef.pl 32 libeay >ms\libeay32.def
U:\openssl-0.9.3>if errorlevel 1 goto end
U:\openssl-0.9.3>perl util\mkdef.pl 32 ssleay >ms\ssleay32.def
U:\openssl-0.9.3>if errorlevel 1 goto end
U:\openssl-0.9.3>
U:\openssl-0.9.3>make -f ms/mingw32f.mak
mkdir outinc\openssl
mkdir: cannot make directory `outincopenssl': File exists
U:\EGCS-1~1.2\BIN\MAKE.EXE: *** [outinc\openssl] Error 1
U:\openssl-0.9.3>echo You can ignore the error messages above
You can ignore the error messages above
U:\openssl-0.9.3>
U:\openssl-0.9.3>make -f ms/mingw32.mak
gmkdir outinc/openssl
process_begin: CreateProcess((null), gmkdir outinc/openssl, ...) failed.
make (e=2): The system cannot find the file specified.
U:\EGCS-1~1.2\BIN\MAKE.EXE: *** [outinc/openssl] Error 2
U:\openssl-0.9.3>if errorlevel 1 goto end
U:\openssl-0.9.3>
U:\openssl-0.9.3>
U:\openssl-0.9.3>make --version
GNU Make version 3.76.1, by Richard Stallman and Roland McGrath.
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
...
------------
The problem is described here:
http://x45.deja.com/=dnc/getdoc.xp?AN=345819204
"It seems that backslashes are not removed for internal
commands, but they are removed for external commands."
Backslashes seem to be a dead end.
PROBLEM 3 -- GMKDIR.EXE is needed.
---------
I got the make to succeed by renaming mkdir.exe in my CYGWIN B20
installation to gmkdir.exe. (I also have ecgs as instructed).
----------------------------------------------------------------------
---------------------------------------------------------------------
----------------------------------------------------------------------
PROBLEM 4 -- A Make script used MS-DOS 'del' to delete files
---------
After some compiling,it crashed here:
---------------------------------------------------------------------
gcc -o tmp/p12_utl.o -Ioutinc -Itmp -O3 -fomit-frame-pointer -c
./crypto/pkcs1
2/p12_utl.c
gcc -o tmp/pk12err.o -Ioutinc -Itmp -O3 -fomit-frame-pointer -c
./crypto/pkcs1
2/pk12err.c
gcc -o tmp/comp_lib.o -Ioutinc -Itmp -O3 -fomit-frame-pointer -c
./crypto/comp
/comp_lib.c
gcc -o tmp/c_rle.o -Ioutinc -Itmp -O3 -fomit-frame-pointer -c
./crypto/comp/c_
rle.c
gcc -o tmp/c_zlib.o -Ioutinc -Itmp -O3 -fomit-frame-pointer -c
./crypto/comp/c
_zlib.c
del out/libcrypto.a
process_begin: CreateProcess((null), del out/libcrypto.a, ...) failed.
make (e=2): The system cannot find the file specified.
U:\EGCS-1~1.2\BIN\MAKE.EXE: *** [out/libcrypto.a] Error 2
U:\openssl-0.9.3>if errorlevel 1 goto end
U:\openssl-0.9.3>
U:\openssl-0.9.3>
U:\openssl-0.9.3>
---------------------------------------------------------------------
There seems to be no "del" routine that is part of GNU's software:
http://www.gnu.org/software/software.html
It failed because there was an attempt to delete a file that
did not exist.
In one of the files there is a line saying:
$rm='del'; # use 'rm -f' if using GNU file utilities
That is not quite right, as 'del' isn't OK and if they 'rm' is
missing then it ought be obtained
There would have been more bug reports except that I had
Cygwin installed, i.e. oughtn't people be told to install
fileutils or textutils too.
---------------------------------------------------------------------
----------------------------------------------------------------------
I re-ran ms\mw.bat without deleting files and it finished OK.
I ran the test as instructed and got "passed all tests".
CONCL.
I don't suppose OpenSSL could get all the details worked
out for Perl users : Net::SSLeay, ... (no).
They have not been doing it.
The requirements Perl_https/etc+SSLeay/OpenSSL+Windows+
portable(win32-Unix) leave nothing helpful. It might be a
difficult enough problem to make it easier to switch to
developing under linux and come back to Windows maybe much
later. Or maybe it is easy, but not documented.
If Net::SSLeay runs with version 0.6.6b but not with a
later version then it may perhaps not run with OpenSSL.
Craig Carey
UTC 29 May 1999
http://home.clear.net.nz/pages/research/proxies.htm
--
Craig Carey
Auckland, New Zealand
e-mail: [EMAIL PROTECTED]
Snooz metasearch:
http://home.clear.net.nz/pages/research/info/snooz.htm
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]