|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
RE: I cannot reach libSQLDBC.so
From: Schroeder, Alexander (alexander.schroeder
sap.com)
Date: Thu Apr 29 2004 - 07:51:55 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]