This is a very brief guide to compile dce on NetBSD alpha and
i386 platforms. For most of the steps please read the linux
guide for the details. 


Choose context:
<context> = alpha_netbsd or i386_netbsd

and dce root directory:
<dce-root> = /project/dce/V1.2.2 for example

$ cd <dce-root>

unpack ode.tar.gz

patch ode

$ cd <dce-root>/ode/src

$ sh -x ode/setup/setup.sh alpha_netbsd

create file ~/.sandboxrc:

        # default sandbox
  #default dce
  default ode

        # base directories to sandboxes
  base * <dce-root>

  sb dce
  sb ode


$ export PATH=<dce-root>/ode/tools/<context>/bin:$PATH

$ cd <dce-root>/ode/src

$ build

Install ode:

$ mkdir <dce-root>/ode/install/<context>

$ export TOSTAGE=<dce-root>/ode/install/<context>

$ cd <dce-root>/ode/src

$ build install_all

$ unset TOSTAGE

$ cd  <dce-root>

unpack dce

patch dce


$ cd <dce-root>/dce/src/BSD44

$ cc -O -o gencat gencat.c

install new gencat to /usr/bin

change default in ~/.sandboxrc

        # default sandbox
  default dce
  #default ode


$ export PATH=<dce-root>/ode/install/<context>/bin:$PATH
$ export LD_LIBRARY_PATH=<dce-root>/export/<context>/usr/lib:$LD_LIBRARY_PATH
$ cd <dce-root>/dce/src

$ build setup_all

linking of idl will fail.
change file obj/i386_netbsd/rpc/idl/idl_compiler/lex_yy.c,
line 201

/* static */ YY_BUFFER_STATE yy_current_buffer = 0;

$ build setup_all

$ cd <dce-root>/dce/src/rpc/sys_idl

$ build dcerpcmsg.c
$ build dcerpcsvc.c

$ cd <dce-root>/dce/src

$ build export_all

for i386_netbsd: in <dce-root>/dce/export/i386_netbsd/usr/lib
     all shared libs <name>.so need symlink <name>.so.0.0


$ build

$ build install_all


to build the login program

$ cd  <dce-root>/dce/src/security/client/unix_utils/login

$ build

$ build install_all

you better do not replace /usr/bin/login without a password
override file for root. Should login try local authentication
from /etc/passwd?

On NetBSD i386 after dce_config install you have to add symlinks
for the shared libraries (<name>.so need symlink <name>.so.0.0 )
in /opt/dcelocal/lib.

