libFileGDBApi.so contains many pe_* symbols which are also found in libpe.so (ArcSDE)
libFileGDBApi.so contains many symbols from zlib (ie: gzopen) (which are also found in libsde.so, another ArcSDE library)
These symbol name conflicts can result in undefined behavior when both .so's are loaded by the same process.
I recommend using the gcc flag -fvisibility=hidden to hide symbols by default.
Linking dynamically against zlib would also be preferred, as it will allow security updates through the normal package manager mechanism.