Samba 3.0.22 Porting by Vidya Sagar

22
If you see both the “linking libmsrpc” and “nnn OBJECT FILES HAVE BEEN ADDED” then the Samba application
has been built successfully and is ready to be installed. The moment make encounters any error it stops there
with error message on the STDOUT. If you see any error while building, just look into the corresponding file and
do the necessary modification. Refer the section
common problems and their resolutions for more information.
After doing the appropriate changes make starts building from the last successfully built point.
It is always a good idea to maintain a log file of make output for future references or to resolve compilation errors.
I recommend you use the shell command tee to redirect display into a file as well as to the standard output. For
example:
shell/iX> make | tee ./make.log
Now that you have successfully built the application, it’s time to install them into the test directory. Hopefully you
remember that the –-prefix option of script configure sets the install directory as discussed in the
adjusting
and running configure section. So in order to complete the test install on build machine all we need to do is to
issue command make install at POSIX shell:
shell/iX> pwd
/SAMBA/SMB3022/src/samba-3.0.22-mpe/source
shell/iX> make install
Using FLAGS = -O -D_SAMBA_BUILD_ -I./popt -Iinclude -I/SAMBA/SMB3022/src/samba-
3.0.22-mpe/source/include -I/SAMBA/SMB3022/src/samba-3.0.22-mpe/source/ubiqx -I/
SAMBA/SMB3022/src/samba-3.0.22-mpe/source/tdb -I. -Dmpeix -D_POSIX_SOURCE -D_SO
CKET_SOURCE -D_INCLUDE_MPEXL_SOURCE -I/SYSLOG/PUB -I/usr/contrib/include -DLDAP_
DEPRECATED -I/SAMBA/SMB3022/src/samba-3.0.22-mpe/source -D_SAMBA_BUILD_
LIBS = -lposix60 -lunix -lsyslog -lsocket -lsvipc -lcurses
LDSHFLAGS = -shared -L/POSIXC60/lib -L/SYSLOG/PUB -Xlinker -WL,xl='/SAMBA
/SMB3022/LIBCPXL'
LDFLAGS = -L/POSIXC60/lib -L/SYSLOG/PUB -Xlinker -WL,xl='/SAMBA/SMB3022/LI
BCPXL'
PIE_CFLAGS =
PIE_LDFLAGS =
Installing bin/smbd as /SAMBA/SMB3022/sbin/smbd
Installing bin/nmbd as /SAMBA/SMB3022/sbin/nmbd
Installing bin/swat as /SAMBA/SMB3022/sbin/swat
======================================================================
The binaries are installed. You may restore the old binaries (if there
were any) using the command "make revert". You may uninstall the binaries
using the command "make uninstallbin" or "make uninstall" to uninstall
binaries, man pages and shell scripts.
======================================================================
Installing bin/smbclient as /SAMBA/SMB3022/bin/smbclient
Installing bin/net as /SAMBA/SMB3022/bin/net
Installing bin/smbspool as /SAMBA/SMB3022/bin/smbspool
Installing bin/testparm as /SAMBA/SMB3022/bin/testparm
Installing bin/smbstatus as /SAMBA/SMB3022/bin/smbstatus
.
.
.
/usr/local/bin/install -c bin/libmsrpc.so /SAMBA/SMB3022/lib
/usr/local/bin/install -c bin/libmsrpc.a /SAMBA/SMB3022/lib
/usr/local/bin/install -c /SAMBA/SMB3022/src/samba-3.0.22-
mpe/source/include/libmsrpc.h /SAMBA/SMB3022/include
The binaries, libraries and documentation including manpages are installed in the install directory. Some binaries
require special capabilities to run properly on MPE/iX. The next subsection describes how to assign the essential
capabilities to a binary.