Creating and Using Custom SAFs
120
Netscape Enterprise Server NSAPI Programmer’s Guide • November 2001
Compiling 3.x Plugins on AIX
For AIX only, plugins built for 3.x versions of the server must be relinked to work
with 4.x and 6.x versions. The files you need, which are in the
server_root
/plugins/nsapi/examples/
directory, are as follows:
•
The
Makefile
file has the
-G
option instead of the old
-bM:SRE -berok -brtl
-bnoentry
options.
•
A script,
relink_36plugin
, modifies a plugin built for 3.x versions of the
server to work with 4.x and 6.x versions. The script’s comments explain its use.
Enterprise Server 4.x and 6.x versions are built on AIX 4.2, which natively supports
runtime-linking. Because of this, NSAPI plugins, which reference symbols in the
ns-httpd
main executable, must be built with the
-G
option, which specifies that
symbols must be resolved at runtime.
Previous versions of Enterprise Server, however, were built on AIX 4.1, which did
not support native runtime-linking. Enterprise Server had specific additional
software (provided by IBM AIX development to Netscape) to enable plugins. No
special runtime-linking directives were required to build plugins. Because of this,
plugins that have been built for previous server versions on AIX will not work with
Enterprise Server 4.x and 6.x versions as they are.
However, they can easily be relinked to work with Enterprise Server 4.x and 6.x
versions. The relink_36plugin script relinks existing plugins. Only the existing
plugin itself is required for the script; original source and .o files are not needed.
More specific comments are in the script itself. Since all AIX versions from 4.2
onward natively support runtime-linking, no plugins for Enterprise Server
versions 4.x and later will need to be relinked.
Load and Initialize the SAF
For each shared library (plugin) containing custom SAFs to be loaded into the
Enterprise Server, add an
Init
directive that invokes the
load-modules
SAF to
magnus.conf
.
The syntax for a directive that calls
load-modules
is:
Init fn=load-modules shlib=
[path]sharedlibname
funcs="
SAF1,...,SAFn"
•
shlib
is the local file system path to the shared library (plugin).
Summary of Contents for ENTERPRISE SERVER 6.0
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 0 November 2001...
Page 134: ...CGI to NSAPI Conversion 134 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 306: ...cinfo 306 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 312: ...Sample MIME Types File 312 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 324: ...Buffered Streams 324 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 332: ...332 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 340: ...340 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 346: ...346 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 352: ...352 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...