Kbase 20715: ld: Unknown input file type - linking on HP-UX 11 64 bit
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  08/02/2008 |
|
Status: Unverified
FACT(s) (Environment):
Progress 9.x
Progress 64 bit
HP-UX 11 32-bit
HP-UX 11 64-bit
SYMPTOM(s):
ld: Unknown input file type : <file-name>
The following error is encountered when linking an executable in Progress 64 bit with HLC objects
The following error is encountered when creating an executable with objects compiled using different PA-RISC codes
For the 32-bit versions of Progress, the script generated by PROBUILD sets PA-RISC to 1.1
For the 64-bit versions of Progress, the script generated by the PROBUILD sets PA-RISC to 2.0W (64-bits code).
CAUSE:
The C compiler generates object code for a particular version of the PA-RISC architecture (1.0, 1.1, or 2.0). The default object code generated by HP compilers is determined automatically on the machine where the compile is done. It can be changed by the compiler parameter +DA. +DA parameters set the PA-RISC architecture.
Linking fails when an executable is linked using Progress 32-bit with non-PA-RISC 1.1 objects (1.0 or 2.0) or when Progress 64-bit is used with non-PA-RISC 2.0 objects (1.0, 1.1).
FIX:
On HP-UX 11 64-bit, inorder to correct this problem, do the following:
1. Set the compiler parameter, +DA2.0W
OR
2. Set CFLAGS=+DA2.0W before running $DLC/probuild/hlc/c.
User may need to add the CFLAGS within the $DLC/probuild/eucapp/buildenv script.