Samba 3.0.22 Porting by Vidya Sagar

9
As a base for your porting efforts we strongly recommend that your build machine be running MPE/iX 6.5, 7.0 or 7.5
preferably with the POSIX shell version A.50.02. The POSIX shell and libraries are part of the MPE/iX Fundamental
Operating System (FOS) and are assumed to be available on any MPE/iX machine. Installation of MPE/iX OS FOS and
Subsystems is beyond the scope of this paper.
Next, configuration of a fresh build machine for any “Open Source” port typically requires the following four packages be
installed:
GNU gcc compiler and utilities
BSD libraries and headers
PERL
POSIX wrappers
Once these packages are in place application specific MPE/iX Directory and User changes will need to be made. After
account structure setup we discuss how you might customize your POSIX environment to make is appear more like those
you might be familiar with on Unix.
NOTE: You may be able to start from the “setting up the account structure” section, if you have already the required
packages installed on your build machine.
Installing essential tools and libraries
This section discusses how to install the essential four packages on your build machine.
2.A.1 GNU gcc compiler and utilities
Building any POSIX compliant application on MPE/iX requires use of the GNU gcc compiler and various other assorted
utilities available from
http://jazz.external.hp.com/src/gnu/gnuframe.html. Installation of gcc and GNU utilities is very
simple and just a three step process:
1) Download the GNU gcc compiler and other utilities package ported by Mark Klein to your windows machine.
Download the latest available version as many applications complain if the latest gcc is found absent on the host.
2) FTP the downloaded file(s) in binary mode to the /tmp directory of your build machine.
3) Install GNU gcc compiler and tools by following the
installation instruction
(
http://jazz.external.hp.com/src/gnu/install_nmstore.html) or
Enter into the MPE POSIX shell by issuing sh.hpbin.sys –L command at CI prompt and run the script
INSTALL.gcc.
Note: The script INSTALL.gcc is listed in
Appendix C, which can be copy/pasted into a new file INSTALL.gcc
on build machine in any directory and execute that by issuing command sh INSTALL.gcc at POSIX shell.
Ensure that the downloaded files are available in /tmp directory.
To know the current version of gcc installed issue the command gcc –v. The output should take one of two forms:
shell/iX> gcc -v
gcc: not found
Will be returned if gcc is not installed otherwise:
shell/iX> gcc -v
Reading specs from /usr/local/lib/gcc/hppa1.0-hp-mpeix/3.4.2/specs
Configured with: ../configure --with-gnu-as --disable-pic
Thread model: single
gcc version 3.4.2
Will show the version of gcc.
NOTE: gcc versions 3.4.2 and older have a potential bug of inconsistent handling of data type long long, which is already
discussed in
limitations section.