Technical article 111092

Trying to compile Oracle 7.3.4 on OpenServer 5.0.5 fails with "/usr/ccs/lib/crt1.o fatal: cannot open ELF for input".

OpenServer 5.0.5

Written · Last revised

Problem

The installation of Oracle 7.3.4 on an SCO OpenServer Release 5.0.5 machine may fail due to an improperly configured compiler. After the Oracle software and the UnixWare/OpenServer Development Kit (UDK) are installed, the following command will fail. It may look different, depending on the version of Oracle:

# make -s ins_rdbms.mk procopt ioracle

This may fail with the following command:

/usr/ccs/lib/crt1.o fatal: cannot open ELF for input
and/or:
Make: *** [Oracle error 13]

Cause

This is caused by an improperly configured developed system; the UDK should not be used for compiling Oracle. Instead, the SCO OpenServer Development System must be installed in its place.

Solution

You must remove the entire UDK and install the SCO OpenServer Development System. After this, there may be some object files that were created by the UDK (for example, config.o) that have to be removed so that they can be rebuilt with the proper compiler.

In order to remove the UDK, all of the packages need to be removed.
Some of the packages are dependent upon one another, so when
prompted to remove them, do so.  The following commands should
be run as root:
# pkgrm baseupd
# pkgrm uccs
# pkgrm ucplus
# pkgrm ustdcomps
# pkgrm OSRcompat
# pkgrm unmsdk
# pkgrm xdevsys
# pkgrm mtfdev
# pkgrm BASEman
# pkgrm usoftint
# pkgrm jdk113
# pkgrm jdk113pls
# pkgrm js10
# pkgrm jws20
# pkgrm udkman
Next, to install the SCO OpenServer Development System, insert
the OpenServer 5.0.5 media.  From the GUI (Graphical User
Interface), run the Software Manager and choose:

Software -> Install new -> SCO OpenServer Development System

Or from the command line, type:
# custom
and choose:

Software -> Install new -> SCO OpenServer Development System

This will install the proper compiler that is required by Oracle. You can now try the make command again. If it returns another error, possibly something similar to:

config.o fatal: cannot open ELF for input

it means that there are still some object files (*.o) that were built with the UDK which cannot be linked into the final build.

The command:
# make clean

may fix this. If not, manually remove the *.o files generated by the make command.

The make command should now work:
# make -s ins_rdbms.mk procopt ioracle

If it still fails, consult Oracle for further advice.

See also

TA#125212 - "My application is failing to build on OpenServer 5.0.7 with undefined symbols _fini and _init"

From the Xinuos technical article database, record 111092. Reproduced with permission. The original is at www.sco.com/ta/111092, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.