Issue Information
| Issue Number | 701393a |
| Issue | When a COBOL program built with tbpcbc is executed using a linker with the --as-needed option applied, the "libcob: error: module 'SQLADR' not found" error occurs. |
| Cause | Because the linker's default options vary depending on the Linux distribution, the related library is excluded from the dependencies during the linking stage, so the corresponding symbol cannot be found at runtime. |
| Solutions | When calling cobc, specify SQLADR, SQLMSK, and esql_do_cobol as static CALLs so that references are generated at link time. If the relevant option is not supported, such as in versions earlier than GnuCOBOL 2.0, linking is performed as before, and warning messages about the resolution and workaround are displayed. |
| Occurrence Date | 26.09.14. |
| Versions Requiring the Patch | 6FS07PS 7FS02PS |
Patch Information
| Patch Name | FS02PS_701393a |
| Major Version | 7 |
| Minor Version | FS02PS |
| Version Title | Fix for an issue where SQLADR cannot be found when building with tbpcbc |
| Available for Deployment | 26.09.17. |
| Platform | Linux-x86 |
| Compatibility | • TAC rolling patch: Yes • TSC rolling patch: Yes • Backup data compatibility: Yes • Protocol compatibility: Yes • Data format compatibility: Yes |
| Application Impact | • Plan changes: No • Result value changes: No • SQL syntax changes: No • System object changes: No • Existing functionality changes: No |
| Parameters | - |
| Workaround | - |