User manual
Building VAX MP
81
dos2unix d2u.sh
chmod a+x d2u.sh
./d2u.sh
Newer versions of GCC version support compilation option -Wno-unused-but-set-
variable
. This option suppresses some false warning messages emitted by GCC when building
VAX MP. This option is present in GCC 4.6.3 onward but absent in GCC 4.4/4.5. When compiled
with versions of GCC that do not have this option, build process will not produce false warning
messages. When compiled with versions of GCC that do have this option, build will produce false
warning messages unless the mentioned option is enabled in
Makefile2.
Makefile2 as currently distributed does not set this option for Linux.
If you are using version of GCC that does have this option, such as GCC 4.6.3 or higher, edit your
your local copy of
Makefile2 in VAX MP build tree to change fragment
ifneq (,$(findstring darwin,$(OSTYPE)))
CFLAGS_W += -Wno-unused-but-set-variable
endif
to
# ifneq (,$(findstring darwin,$(OSTYPE)))
CFLAGS_W += -Wno-unused-but-set-variable
# endif
To build VAX MP, execute in the project’s directory:
chmod a+x *.sh
export OSTYPE
./mk.sh {x86|x64} {dbg|rel} {net|shr|nonet} [tap] [vde] rebuild
For example:
./mk.sh x86 rel shr tap rebuild
Options meaning is as follows:
x86|x64 selects target processor architecture
dbg|rel selects debug or release build
net selects network support using statically linked libpcap.a
shr selects network support using dynamically linked libpcap.so
nonet selects no network support
tap selects support for TAP/TUN virtual network devices
vde selects support for VDE virtual network devices (VDE package must be
installed both on build and target machines)