Installation guide
Be aware that if you never used lint on your ULTRIX application, it
might give you quite a bit of information about your DIGITAL UNIX
application, some of which will not be pertinent to the problems with
porting your application.
For more information about using lint, see lint
(1).
7.6 Linking Your Program
Use the cc compiler to link your application. The linker reports errors
caused by routines that do not exist on a DIGITAL UNIX system or by
global symbols that are undefined. In some cases, these errors occur
because the DIGITAL UNIX system does not provide a routine or a global
symbol definition. In other cases, the name of the routine or global symbol
has changed.
To determine whether a routine exists, see the DIGITAL UNIX
documentation. Check the documentation carefully because the DIGITAL
UNIX system has some routines or symbols that use names different from
those on the ULTRIX system. If a DIGITAL UNIX routine or symbol exists
that performs the task that the ULTRIX routine or symbol performs,
modify your program. Replace each reference to the ULTRIX routine or
symbol name with the appropriate DIGITAL UNIX routine or symbol
name. As you make this change, check each call to ensure that it passes
the correct number of parameters in the correct order and that the
parameters have the appropriate data type.
If no routine exists on the DIGITAL UNIX system, remove the routine from
your application and make appropriate modifications to your applications.
Some ULTRIX libraries are unavailable on DIGITAL UNIX systems. In
some cases, the routines that are in the ULTRIX libraries are available in a
different DIGITAL UNIX library. In other cases, the ULTRIX library
routines are unavailable on the DIGITAL UNIX system. Section 7.6.1
describes ULTRIX libraries that are unavailable on DIGITAL UNIX
systems.
The DIGITAL UNIX system provides two libraries for compatibility with
ULTRIX systems:
• The libbsd.a library contains routines that are compatible with the
ULTRIX BSD programming environment. (Section 7.6.2 describes this
library.)
• The libsys5.a library contains routines that are compatible with the
ULTRIX System V programming environment and other System V
programming environments. (Section 7.6.3 describes this library.)
Migrating Your ULTRIX Application to a DIGITAL UNIX System 7–35