📄 install.nw
字号:
INSTALLATION ON THE NETWARE PLATFORM------------------------------------Notes about building OpenSSL for NetWare.BUILD PLATFORM:---------------The build scripts (batch files, perl scripts, etc) have been developed andtested on W2K. The scripts should run fine on other Windowsplatforms (NT, Win9x, WinXP) but they haven't been tested. They may require some modifications.Supported NetWare Platforms - NetWare 5.x, NetWare 6.x:------------------------------------------OpenSSL uses the WinSock interfaces introduced in NetWare 5. Therefore,previous versions of NetWare, 4.x and 3.x, are not supported.On NetWare there are two c-runtime libraries. There is the legacy CLIB interfaces and the newer LibC interfaces. Being ANSI-C libraries, the functionality in CLIB and LibC is similar but the LibC interfaces are built using Novell Kernal Services (NKS) which is designed to leverage multi-processor environments.The NetWare port of OpenSSL can configured to build using CLIB or LibC. The CLIB build was developed and tested using NetWare 5.0 sp6.0a. The LibC build was developed and tested using the NetWare 6.0 FCS. The necessary LibC functionality ships with NetWare 6. However, earlier NetWare 5.x versions will require updates in order to run the OpenSSL LibCbuild.As of June 2005, the LibC build can be configured to use BSD sockets insteadof WinSock sockets. Call Configure (usually through netware\build.bat) usinga target of "netware-libc-bsdsock" instead of "netware-libc".REQUIRED TOOLS:---------------Based upon the configuration and build options used, some or all of thefollowing tools may be required:* Perl for Win32 - required (http://www.activestate.com/ActivePerl) Used to run the various perl scripts on the build platform.* Perl 5.8.0 for NetWare v3.20 (or later) - required (http://developer.novell.com) Used to run the test script on NetWare after building.* Metrowerks CodeWarrior PDK 2.1 (or later) for NetWare - required: Provides command line tools used for building. Tools: mwccnlm.exe - C/C++ Compiler for NetWare mwldnlm.exe - Linker for NetWare mwasmnlm.exe - x86 assembler for NetWare (if using assembly option)* Assemblers - optional: If you intend to build using the assembly options you will need an assembler. Work has been completed to support two assemblers, Metrowerks and NASM. However, during development, a bug was found in the Metrowerks assembler which generates incorrect code. Until this problem is fixed, the Metrowerks assembler cannot be used. mwasmnlm.exe - Metrowerks x86 assembler - part of CodeWarrior tools. (version 2.2 Built Aug 23, 1999 - not useable due to code generation bug) nasmw.exe - Netwide Assembler NASM version 0.98 was used in development and testing* Make Tool - required: In order to build you will need a make tool. Two make tools are supported, GNU make (gmake.exe) or Microsoft nmake.exe. gmake.exe - GNU make for Windows (version 3.75 used for development) http://www.gnu.org/software/make/make.html nmake.exe - Microsoft make (Version 6.00.8168.0 used for development)* Novell Developer Kit (NDK) - required: (http://developer.novell.com) CLIB - BUILDS: WinSock2 Developer Components for NetWare: For initial development, the October 27, 2000 version was used. However, future versions should also work. NOTE: The WinSock2 components include headers & import files for NetWare, but you will also need the winsock2.h and supporting headers (pshpack4.h, poppack.h, qos.h) delivered in the Microsoft SDK. Note: The winsock2.h support headers may change with various versions of winsock2.h. Check the dependencies section on the NDK WinSock2 download page for the latest information on dependencies. These components are unsupported by Novell. They are provided as a courtesy, but it is strongly suggested that all development be done using LIBC, not CLIB. As of June 2005, the WinSock2 components are available at: http://forgeftp.novell.com//ws2comp/ NLM and NetWare libraries for C (including CLIB and XPlat): If you are going to build a CLIB version of OpenSSL, you will need the CLIB headers and imports. The March, 2001 NDK release or later is recommended. Earlier versions should work but haven't been tested. In recent versions the import files have been consolidated and function names moved. This means you may run into link problems (undefined symbols) when using earlier versions. The functions are available in earlier versions, but you will have to modifiy the make files to include additional import files (see openssl\util\pl\netware.pl). LIBC - BUILDS: Libraries for C (LibC) - LibC headers and import files If you are going to build a LibC version of OpenSSL, you will need the LibC headers and imports. The March 14, 2002 NDK release or later is required. NOTE: The LibC SDK includes the necessary WinSock2 support. It It is not necessary to download the WinSock2 Developer when building for LibC. The LibC SDK also includes the appropriate BSD socket support if configuring to use BSD sockets.BUILDING:---------Before building, you will need to set a few environment variables. You canset them manually or you can modify the "netware\set_env.bat" file.The set_env.bat file is a template you can use to set up the pathand environment variables you will need to build. Modify thevarious lines to point to YOUR tools and run set_env.bat. netware\set_env.bat [target] target - "netware-clib" - CLib NetWare build - "netware-libc" - LibC NetWare buildIf you don't use set_env.bat, you will need to set up the followingenvironment variables: path - Set path to point to the tools you will use. MWCIncludes - The location of the NDK include files. CLIB ex: set MWCIncludes=c:\ndk\nwsdk\include\nlm LibC ex: set MWCIncludes=c:\ndk\libc\include PRELUDE - The absolute path of the prelude object to link with. For a CLIB build it is recommended you use the "clibpre.o" files shipped with the Metrowerks PDK for NetWare. For a LibC build you should use the "libcpre.o" file delivered with the LibC NDK components. CLIB ex: set PRELUDE=c:\ndk\nwsdk\imports\clibpre.o LibC ex: set PRELUDE=c:\ndk\libc\imports\libcpre.o IMPORTS - The locaton of the NDK import files. CLIB ex: set IMPORTS=c:\ndk\nwsdk\imports LibC ex: set IMPORTS=c:\ndk\libc\importsIn order to build, you need to run the Perl scripts to configure the buildprocess and generate a make file. There is a batch file,"netware\build.bat", to automate the process.Build.bat runs the build configuration scripts and generates a make file.If an assembly option is specified, it also runs the scripts to generate the assembly code. Always run build.bat from the "openssl" directory. netware\build [target] [debug opts] [assembly opts] [configure opts] target - "netware-clib" - CLib NetWare build (WinSock Sockets) - "netware-libc" - LibC NetWare build (WinSock Sockets) - "netware-libc-bsdsock" - LibC NetWare build (BSD Sockets) debug opts - "debug" - build debug assembly opts - "nw-mwasm" - use Metrowerks assembler "nw-nasm" - use NASM assembler "no-asm" - don't use assembly configure opts- all unrecognized arguments are passed to the perl configure script examples: CLIB build, debug, without assembly: netware\build.bat netware-clib debug no-asm LibC build, non-debug, using NASM assembly: netware\build.bat netware-libc nw-nasm LibC build, BSD sockets, non-debug, without assembly: netware\build.bat netware-libc-bsdsock no-asmRunning build.bat generates a make file to be processed by your make tool (gmake or nmake): CLIB ex: gmake -f netware\nlm_clib_dbg.mak LibC ex: gmake -f netware\nlm_libc.mak LibC ex: gmake -f netware\nlm_libc_bsdsock.mak You can also run the build scripts manually if you do not want to use thebuild.bat file. Run the following scripts in the "\openssl"subdirectory (in the order listed below): perl configure no-asm [other config opts] [netware-clib|netware-libc|netware-libc-bsdsock] configures no assembly build for specified netware environment (CLIB or LibC).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -