Kbase P106576: Bulding HLC application fails with undefined symbols on SCO
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  20/07/2005 |
|
Status: Unverified
FACT(s) (Environment):
Progress 9.1E
SCO OpenServer 5.0.7
SYMPTOM(s):
Building HLC application fails with undefined symbols
Undefined symbols napms stdscr wgetch when probuilding
UX:ld: ERROR: Symbol referencing errors. No output written to /home/dlc91e/probuild/eucapp/_progres
Unable to probuild _progres on SCO
All compatibility packages have been installed on the machine
The .o files get created (compiled) successfully
CAUSE:
Insufficient compiling and linking switches have been using during compilation of the .o files and when running ldpro
FIX:
In order to fix the issue:
1) compile the c-code(s) using -D_M_TERMINFO switch, this will fix the missing references (functions) as they are defined as extern int in tinfo.h (which is normally included if _M_TERMCAP has been defined)
2) open the "ldpro" script and add the -lcurses switch when you call the link edit phase at the following place
....
$SOCKLIB \
-lm \
-lcurses \ <-- here
$PROLOAD/4gl/libavcall.a \
....
3) re-run the "ldpro" again.