This is the case.
Made two dynamic library, one is the operation of SQLite, one is the operation of PostgreSQL. These two dynamic library interfaces are the same.
Then make a php extension module, call the SQLite dynamic Library or PostgreSQL dynamic library.
Windows is normal, when the link will find the corresponding LIB, call SQLite or PostgreSQL line.
But Linux, when compiling PHP extension module, only your change files, not to find the dynamic library. The compilation was passed, but it went wrong when it was run. How to settle down.
Reply to discussion (solution)
First LDD See if your extension has found a dynamic library.
If you can search for a path by adding a dynamic library in ld.so.conf
Find a way,
Modify CONFIG.M4
Php_add_library_with_path (DBSL,/lib64, Assetsctl_shared_libadd)
First LDD See if your extension has found a dynamic library.
If you can search for a path by adding a dynamic library in ld.so.conf
How did you change it, please? I have also encountered this mistake!