Technical article 109945

I get "Error UX: ld: Error: 'objectfile'.o: fatal error: cannot link OpenServer object into Intel iABI target" when trying to compile with C++ binary.

OpenServer 5.0.4OpenServer 5.0.5

Written · Last revised

Problem

The following error message appears when trying to compile binary objects [that is, object files (.o), archives (.a), or dynamic libraries (.so)] on OpenServer 5.0.4 or 5.0.5 with the UDK:

Error: UX: ld: Error: "objectfile"."o": fatal error: cannot link OpenServer object into Intel iABI target

Cause

This is caused by mixing and matching of C++ binary objects
[(that is, object files  (.o), archives (.a), or dynamic libraries
(.so)] between OpenServer's C++ compiler (DevSys) and the UDK. This
is due to ANSI/ISO language standardization changes to improve the
application binary interfaces (ABI) and give the compiler new
language features. This not only applies to the SCO C++ compilers,
but all other C++ compilers.

Solution

For existing OpenServer C++ code, there is a CC -Xo compatibility option that provides source compatibility. However, this also enables bug tolerance, ancient anachronisms, and other compiler defects. This is only intended as a transitional tool to convert existing code in stages to the modern dialect of C++ that will be accepted by the UDK C++ compiler.

For situations where the above compatibility option can't be used,
or a more permanent solution is required, use the C++ OpenServer
compiler found in the SCO OpenServer Development System product
instead of the UDK.  The SCO OpenServer Development System can be
installed from the SCO OpenServer installation CD using the
scoadmin software manager.

See also

"White Paper on UDK C++ Compatibility Issues" by Jonathan Schilling (July 7, 1997) - available from SCO's web site at:

http://www.sco.com

From the Xinuos technical article database, record 109945. Reproduced with permission. The original is at www.sco.com/ta/109945, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

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.