Samba 3.0.22 Porting by Vidya Sagar

Table of Contents
Revision History..............................................................................................................................................................iii
Executive Summary .......................................................................................................................................................1
Introduction .......................................................................................................................................................................1
1 Background on MPE/iX, POSIX compliance, and GNU Tools ..........................................................2
1.1 MPE/iX and POSIX compliance .................................................................................................................................................2
1.2 GNU tools/utilities.......................................................................................................................................................................3
1.3 MPE/iX header files and libraries..............................................................................................................................................5
1.3.1 MPE/iX Headers...............................................................................................................................................................5
1.3.2 MPE/iX Libraries...............................................................................................................................................................6
1.4 MPE/iX limitations and Major issues.........................................................................................................................................6
2 Build Machine Configuration...........................................................................................................................8
2.1 Installing essential tools and libraries ........................................................................................................................................9
2.1.1 GNU gcc compiler and utilities......................................................................................................................................9
2.1.2 BSD libraries and headers ............................................................................................................................................10
2.1.3 PERL..................................................................................................................................................................................10
2.1.4 POSIX wrappers .............................................................................................................................................................10
2.2 Setting up account structure......................................................................................................................................................10
2.2.1 Setting up the POSIX environment................................................................................................................................11
2.3 Build machine Summary/Conclusion.......................................................................................................................................12
3. Porting.....................................................................................................................................................................12
3.1 Analysis of application to identify the features that can be supported................................................................................13
3.2 Downloading the vanilla source code .....................................................................................................................................13
3.3 Unpacking the tarball ................................................................................................................................................................14
3.4 Applying source patches...........................................................................................................................................................15
3.5 Adjusting and Running configure script .............................................................................................................................16
3.6 Changing the source code for MPE/iX specific known issues/limitations ..........................................................................19
3.7 Build Prototypes..........................................................................................................................................................................20
3.8 Build (make and make install)...................................................................................................................................................21
3.9 Setting proper Capabilities and ownership ............................................................................................................................23
3.10 To check for the unresolved symbols......................................................................................................................................24
3.11Strategies to resolve unresolved symbols................................................................................................................................25
3.12Testing the features to be supported (make test)....................................................................................................................26
3.13Packaging...................................................................................................................................................................................26
3.14Documentation notes.................................................................................................................................................................26
3.15Performance Notes....................................................................................................................................................................27
4. Common problems and their resolutions................................................................................................27
4.1 Common Include File Problems.................................................................................................................................................27
4.2 Common Compile-Time Problems.............................................................................................................................................28
4.3 Common Run-Time Problems.....................................................................................................................................................29
5 References .............................................................................................................................................................30
6. Appendix ...................................................................................................................................................................31
A. Packaging and Patch Notes for Samba.........................................................................................................................31
ii