[Mono-bugs] [Bug 75490][Nor] New - Wrong libname in
DB2CLIWrapper.cs at IBM.Data.DB2 namespace.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Jul 6 07:34:30 EDT 2005
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by pcardona37 at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=75490
--- shadow/75490 2005-07-06 07:34:30.000000000 -0400
+++ shadow/75490.tmp.19553 2005-07-06 07:34:30.000000000 -0400
@@ -0,0 +1,74 @@
+Bug#: 75490
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details: Debian Sarge kernel 2.6.11
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Data
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: pcardona37 at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Summary: Wrong libname in DB2CLIWrapper.cs at IBM.Data.DB2 namespace.
+
+Description of Problem:
+
+The problem appears in the class StaticWrapper36 that is in the file
+DB2CLIWrapper.cs in the namespace IBM.Data.DB2.
+
+When installing db2 in linux the library of the db2 cli is called
+libdb2.so, but at the source code when using a unix system the name of the
+library is seted to libdb2_36.so.
+So, when trying to make any operation with a DB2 database the library is
+not found, and it's thrown a DLLNotFoundException.
+
+
+Steps to reproduce the problem:
+1. Install a db2 runtime client and link the libraries to /usr/lib/.
+2. Try to connect to a db2 database.
+3. The exception is thrown.
+
+Actual Results:
+
+Unhandled Exception: System.DllNotFoundException: db2_36
+in (wrapper managed-to-native) StaticWrapper36:SQLAllocHandle
+(int16,intptr,intptr&)
+in <0x00033> IBM.Data.DB2.DB2CLIWrapper:SQLAllocHandle (Int16 handleType,
+IntPtr inputHandle, System.IntPtr outputHandle)
+in <0x0005a> IBM.Data.DB2.DB2CLIWrapper:Initialize (System.IntPtr pEnvHandle)
+in <0x00054> IBM.Data.DB2.DB2Environment:.ctor ()
+in <0x0004c> IBM.Data.DB2.DB2Environment:get_Instance ()
+in <0x00008> IBM.Data.DB2.DB2ConnectionPool:FindConnectionPool
+(System.String connectionString)
+in <0x00015> IBM.Data.DB2.DB2ConnectionSettings:GetConnectionSettings
+(System.String connectionString)
+in <0x00020> IBM.Data.DB2.DB2Connection:SetConnectionString (System.String
+connectionString)
+in (wrapper remoting-invoke-with-check)
+IBM.Data.DB2.DB2Connection:SetConnectionString (string)
+in <0x00019> IBM.Data.DB2.DB2Connection:.ctor (System.String conString)
+in (wrapper remoting-invoke-with-check) IBM.Data.DB2.DB2Connection:.ctor
+(string)
+in <0x00052> MainClass:Main (System.String[] args)
+
+
+Expected Results:
+
+No exception thrown.
+
+How often does this happen?
+
+Every time you try to connect a db2 database.
+
+Additional Information:
+
+When using a Unix OS, the variable libname is setted to "db2_36", so the
+name of the library it uses is libdb2_36.so. When installing db2 the real
+name of the library is libdb2.so, so the variable libname should be "db2".
+
+This variable is declared at line 446 in the file DB2CLIWrapper in the
+namespace IBM.Data.DB2.
More information about the mono-bugs
mailing list