Issue 14940 - libodbc.so filename problem on Linux
Summary: libodbc.so filename problem on Linux
Status: CLOSED FIXED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 Beta2
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 1.1 RC
Assignee: marc.neumann
QA Contact: issues@dba
URL:
Keywords:
: 11883 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-05-27 09:29 UTC by chris
Modified: 2006-05-31 14:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
fix for this issue (3.97 KB, patch)
2003-05-27 10:02 UTC, ocke.janssen
no flags Details | Diff
see this issue again in 1.1.2 (75.36 KB, image/png)
2004-04-10 11:04 UTC, sparcmoz
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description chris 2003-05-27 09:29:32 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"
Comment 1 chris 2003-05-27 09:34:36 UTC
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
Comment 2 Frank Schönheit 2003-05-27 09:37:21 UTC
Chris, thanks for this suggestion - sounds pretty reasonable :)

accepting target (was about to set it myself after discussing this
with Ocke :)
assigning
Comment 3 ocke.janssen 2003-05-27 10:01:34 UTC
Fixed. Patch file attached.
Comment 4 ocke.janssen 2003-05-27 10:02:14 UTC
Created attachment 6466 [details]
fix for this issue
Comment 5 Frank Schönheit 2003-06-02 12:43:44 UTC
fs->clu: please verify in dba07
Comment 6 christoph.lukasiak 2003-06-03 13:18:50 UTC
CLU->MSC: rather your area
Comment 7 marc.neumann 2003-06-05 12:16:11 UTC
set to fixed
Comment 8 marc.neumann 2003-06-05 12:16:43 UTC
verified in dba07
Comment 9 marc.neumann 2003-06-10 09:19:01 UTC
I close this bug, because it's fixed in the OOo 1.1 RC, which will be
available soon.

Bye Marc
Comment 10 Rainer Bielefeld 2003-11-04 19:08:28 UTC
*** Issue 11883 has been marked as a duplicate of this issue. ***
Comment 11 hans_werner67 2004-02-02 13:00:51 UTC
change subcomponent to 'none'
Comment 12 sparcmoz 2004-04-10 11:04:44 UTC
Created attachment 14452 [details]
see this issue again in 1.1.2
Comment 13 sparcmoz 2004-04-10 11:14:58 UTC
hmm, i got that file already:
sun:/usr/lib# ls libodbcinst*
libodbcinst.so.1  libodbcinst.so.1.0.0