Comments (3)
I removed the description of LD_PRELOAD in README and created a new wiki page for Ubuntu users.
I will fix this issue in the future.
from open-cobol-esql.
It seems difficult to solve this issue.
I added note to README.
from open-cobol-esql.
LD_PRELOAD is a quite bad hack, with that README note people will likely export
it which commonly breaks something and tells the dynamic link loader to do this for every executable. The issue is that libcob does not find the module, very likely because the actual CALL is a dynamic one and/or the dynamic linker removed the "unused" library.
To work around this each of the following solutions should work;
- let ocesql generate the
CALL
s asCALL STATIC 'OCESQLConnect' ...
(cobc will directly insert the library call, the dynamic linker will resolve that from libocesql - let cobc generate all calls to literals as static itself - same effect
cobc -static -m ...
- tell the linker to not drop the "unused" library, by passing
-Wl,--no-as-needed
(depending on the cobc used that can be passed via-Q
or by overriding cobc's linker call via environment variables)
... or: use COB_PRE_LOAD
to load the library, or relink libcob/cobcrun to have the library linked with the -Wl,--no-as-needed
option.
from open-cobol-esql.
Related Issues (20)
- add "quiet" mode to ocesql (to not output "LIST OF CALLED DB Library API")
- Test ocesql's output HOT 1
- Does not compile with GCC 10+
- Issue compiling with MinGW because of argument named `errno`
- Another MinGW compilation issue : missing function `_dupenv_s`
- trouble installing ocesql 1.2 with postgresql 11 on Ubuntu 22.04 HOT 3
- What about the issue of execution result on ubuntu22.04 that the result of execution is Cannot find module 'OCESQLConnect'? HOT 2
- Support multiple platforms
- include error message in CONNECT errors
- Update CI actions
- missing COPYING.LIB HOT 1
- performance issue - and easy fix
- "configure" fails on Ubuntu 22.04 LTS (WSL2) HOT 2
- mutli-row fetch (oracle) [generating bad COBOL]
- Support for VARCHAR DB data type HOT 1
- FR: allow multple include paths and `-I` short option
- FR: Support for ANSI Dynamic SQL
- last input line is included multiple times in the output file HOT 1
- bug: missing error (return code) for unknown fields
- replace "int type" and magic number defines with an enum type
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-cobol-esql.