Micro Focus COBOL does not recognize elinks. Beginning with DG/UX
5.4R3.00, certain libraries in /usr/lib are elinks (for example,
libm.a). If you try to link one of these libraries into your
runtime system, you will receive an error. You must change these
links to symbolic links.
If you have trouble linking in any of the DG/UX libraries, first
check to see if an elink exists. If it does, replace it with a
symbolic link. For example, to replace the elink to libm.a,
become superuser and execute the following commands:
cd /usr/lib
mv libm.a libm.a.elink
ln -s /usr/sde/m88kdguxelf/usr/lib/libm.a libm.a
To restore the elink (which you must do if you want to run
non-Micro Focus COBOL applications in COFF mode), execute the
following commands:
rm libm.a
mv libm.a.elink libm.a
The following is a script to be used as an EXAMPLE only. Note
that your application may call other libraries not included in
this script. If you are running Micro Focus COBOL applications
on your system, and no other software products will be run in
a format other than ELF, then you may change the elinks to
symbolic links and leave them in this format.
EXAMPLE SCRIPT:
cd /usr/lib
mv libc.a libc.a.elink
ln -s /usr/sde/m88kdguxelf/usr/lib/libc.a libc.a
mv libc.so libc.so.elink
ln -s /usr/sde/m88kdguxelf/usr/lib/libc.so libc.so
mv libdgc.a libdgc.a.elink
ln -s /usr/sde/m88kdguxelf/usr/lib/libdgc.a libdgc.a
mv libdl.a libdl.a.elink
ln -s /usr/sde/m88kdguxelf/usr/lib/libdl.a libdl.a
mv libm.a libm.a.elink
ln -s /usr/sde/m88kdguxelf/usr/lib/libm.a libm.a
mv libnls.a libnls.a.elink
ln -s /usr/sde/m88kdguxelf/usr/lib/libnls.a libnls.a
mv libnsl.so libnsl.so.elink
ln -s /usr/sde/m88kdguxelf/usr/lib/libnsl.so libnsl.so
mv libsocket.a libsocket.a.elink
ln -s /usr/sde/m88kdguxelf/usr/lib/libsocket.a libsocket.a
mv libsocket.so libsocket.so.elink
ln -s /usr/sde/m88kdguxelf/usr/lib/libsocket.so libsocket.so
mv values-Xa.o values-Xa.o.elink
ln -s /usr/sde/m88kdguxelf/usr/lib/values-Xa.o values-Xa.o
mv values-Xc.o values-Xc.o.elink
ln -s /usr/sde/m88kdguxelf/usr/lib/values-Xc.o values-Xc.o
mv values-Xt.o values-Xt.o.elink
ln -s /usr/sde/m88kdguxelf/usr/lib/values-Xt.o values-Xt.o
cd /usr/lib/gcc
ln -s /usr/opt/sdk/sde/m88kbcs/usr/lib/gcc-2/libgcc.a gcc-gnulib
End of example script.
NOTE: A future revision of DG/UX will include changes to
address the issues of elinks. When the operating
system is modified to automatically change these elinks
to symbolic links, a weekly bulletin will be released
to notify Micro Focus COBOL customers.