[prev in list] [next in list] [prev in thread] [next in thread]
List: sapdb-general
Subject: RE: I cannot reach libSQLDBC.so
From: "Schroeder, Alexander" <alexander.schroeder () sap ! com>
Date: 2004-04-29 12:51:55
Message-ID: 821039C4C1647A4D9CFEF51CE9B9AC181E2673 () dewdfe23 ! wdf ! sap ! corp
[Download RAW message or body]
Hello Alexio,
A look into that SQLDBC package did show me that the linux shared library is missing some
essential symbols (and thus will not work).
Until we make a more recent SQLDBC package available, your only chance is in using the static
library that's also in the package, and apparantly contains all objects.
So change in your compilation
-L/home/myUser/sapdb-linux/lib -lSQLDBC
to
/home/myUser/sapdb-linux/lib/libSQLDBC.a
Sorry for any inconvenience caused
Alexander Schröder
SAP DB, SAP Labs Berlin
> -----Original Message-----
> From: Alexio Cassani [mailto:cassani@webscience.it]
> Sent: Wednesday, April 28, 2004 4:07 PM
> To: maxdb@lists.mysql.com
> Subject: I cannot reach libSQLDBC.so
>
>
> Hi,
> I'me developing a C++ library .so that will be installed on a
> Linux box.
>
> The step I've followed are:
>
> 1) Wrote a C++ code
> 2) Copied the libSQLDBC.o and libSQLDBC.a in /lib and /usr/lib
> 3) Compiled my code with the following command:
> gcc -shared -o libMyLib.so -I/home/myUser/sapdb-linux/incl
> -I/usr/lib/j2sdk1.4.2/include -I/usr/lib/j2sdk1.4.2/include/linux
> -L/home/myUser/sapdb-linux/lib -lSQLDBC myLibSourceCode.cpp
> 4) As my library is accessed through a Java Native Interface
> the running
> command is the following:
> java -cp myJavaApp.jar:junit.jar myJavaAppTest
> (it's junit class test)
> The output is the following:
>
> testMethod(myJavaAppTest)java.lang.UnsatisfiedLinkError:
> /home/myUser/libMyLib.so: /home/myUser/libMyLib.so: undefined symbol:
> _ZN6SQLDBC16GetClientRuntimeEPci
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1456)
> at java.lang.Runtime.load0(Runtime.java:737)
> at java.lang.System.load(System.java:811)
> ...
> ...
>
> I've tried to compile and execute the HelloWorld application
> I've found in
> the sapdb-sqldbc-linux-32bit-i386-7_4_4_3beta.tgz archive
> (the libSQLDBC.so
> and .a I'm using are in this tgz) and the error is similar.
> Moreover the
> original version of this code was developed under Windows
> (instead of a .so
> there is, obviously, a dll) and it works fine.
> The system on which I'm developing/testing is a Debian and
> the SapDB which I
> should connect to is a 7.4.03
>
> Any suggestion?
>
> TIA
> Alexio
>
>
> --
> MaxDB Discussion Mailing List
> For list archives: http://lists.mysql.com/maxdb
> To unsubscribe:
http://lists.mysql.com/maxdb?unsub=alexander.schroeder@sap.com
--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe: http://lists.mysql.com/maxdb?unsub=sapdb-general@progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic