Apache OpenOffice (AOO) Bugzilla – Issue 14940
libodbc.so filename problem on Linux
Last modified: 2006-05-31 14:29:06 UTC
Please see Issue 10789 for the same problem which was encountered with libsane. Usually Linux distros do not include libodbc.so in their library package and programs are expected to load the library based on its major name, libodbc.so.1. libodbc.so is only installed as part of the development package for this library. This allows several library versions to coexist and is common practice for shared libraries. Is it actually necessary to load the development libarary name on some platforms? If so I guess we need a fallback mechanism to look for both names. The names in question are: connectivity/source/drivers/odbc/OFunctions.cxx: _rPath = ::rtl::OUString::createFromAscii("libodbc.so"); dbaccess/source/ui/dlg/odbcconfig.cxx:#define ODBC_LIBRARY "libodbc.so" dbaccess/source/ui/dlg/odbcconfig.cxx:#define ODBC_UI_LIBRARY "libodbcinst.so"
Steps to reproduce: - Create a new document - Click Tools->Data Sources - Set Database type = ODBC - Click on Data source URL '...' button Error popup text: Could not load the program library libodbc.so or it is corrupted. The ODBC data source selection is not available. Setting taget to 1.1RC
Chris, thanks for this suggestion - sounds pretty reasonable :) accepting target (was about to set it myself after discussing this with Ocke :) assigning
Fixed. Patch file attached.
Created attachment 6466 [details] fix for this issue
fs->clu: please verify in dba07
CLU->MSC: rather your area
set to fixed
verified in dba07
I close this bug, because it's fixed in the OOo 1.1 RC, which will be available soon. Bye Marc
*** Issue 11883 has been marked as a duplicate of this issue. ***
change subcomponent to 'none'
Created attachment 14452 [details] see this issue again in 1.1.2
hmm, i got that file already: sun:/usr/lib# ls libodbcinst* libodbcinst.so.1 libodbcinst.so.1.0.0