New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assertion failure using LDAP #41
Comments
I do have some backtrace information on this, specifically:
That ldap_first_entry() seems to be the libldap coming from the GNU system though I think oranumber_util.c is supposed to use the one from Instant Client? |
I was able to work around this by loading 'oci8' before 'pg' as Ubuntu's standard libpg is linked against libldap which has the conflicting symbol name. Is it possible for ruby-oci8 to explicitly use the functions in Oracle Instant Client's libclntsh.so to avoid this workaround? |
Impossible. I think that Oracle Corporation can fix the symbol conflict issue if Oracle Instant Client libclntsh.so is linked with the following version scripts not to export LDAP functions.
|
My development machine uses ruby-oci8 against the Oracle Instant Client (OS X) just fine. When I move to production (Ubuntu 64-bit), I encounter some errors.
ruby-oci8 actually continues to work fine under a simple 'irb' but when I switch to using 'bundle exec rake my_oracle_task', the OCI8.new line fails with the following:
From reading around the Internet, it appears this problem may be related to another library using the system LDAP (openldap?) instead of the Oracle functions. I have no idea what that other library would be.
I think this is related: http://stackoverflow.com/a/15322554/98647
Do you have any idea what's going on here and how I can go about debugging? I've wasted a few hours trying various things like following his suggestions in modifying ruby-oci8 to adjusting the order of gems loaded in Bundler, etc.
The text was updated successfully, but these errors were encountered: