I have a proc installation.
On running the following 3 commands, I successfully get 3 C files.
proc char_map=string util.pc
proc char_map=string FDRFeedMain.pc
proc char_map=string NonMons.pc
This gives me util.c FDRFeedMain.c NonMons.c
Now when i try to compile the the above 3 files using xlc with the command below
util.c:
"util.c", line 217.45: 1506-449 (W) Missing return expression.
"util.c", line 233.12: 1506-449 (W) Missing return expression.
FDRFeedMain.c:
NonMons.c:
ld: 0711-317 ERROR: Undefined symbol: .sqlcxt
ld: 0711-317 ERROR: Undefined symbol: .sqlbuft
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
This stuff came up in my office for migrating some old application.
All help is appreciated.
Even if someone can tell me, the meaning of the missing return expression. !!!
The "missing return expression" is just a warning, probably some non-void function ending without a return.
The real problem is that the linker can't find the symbols '.sqlcxt' and '.sqlbuft' which it expects in one of the libraries. As per the error message, try running the compile with the '-bnoquiet' option added, maybe this can give you some hint on what to look for.
You may want to check your $ORACLE_HOME/precomp/admin/pcscfg.cfg file and check the path of the sys_include parameter and make sure it points to the correct libraries.