[prev in list] [next in list] [prev in thread] [next in thread]
List: sapdb-general
Subject: R: I cannot reach libSQLDBC.so
From: "Alexio Cassani" <cassani () webscience ! it>
Date: 2004-04-29 16:41:21
Message-ID: 40318639007BAD36 () ms007msg ! mail ! fw (added by postmaster () fastwebnet ! it)
[Download RAW message or body]
Hi Alexander,
I've tried with the static lib but I'm getting the same error...
Any other suggestion?
Hi Alexander,
I've re-builded my sourcecode with the following command:
gcc -shared -o libMyLib.so -I/home/myUser/sapdb-linux/incl -I/usr/lib/j2sd
k1.4.2/include -I/usr/lib/j2sdk1.4.2/include/linux
/home/myUser/sapdb-linux/lib/libSQLDBC.a MyApp.cpp
But I got the same error... maybe the static library presents the same
problem of the dynamic one?
TIA
Alexio
> -----Messaggio originale-----
> Da: Schroeder, Alexander [mailto:alexander.schroeder@sap.com]
> Inviato: giovedì 29 aprile 2004 14.52
> A: 'Alexio Cassani'; maxdb@lists.mysql.com
> Oggetto: RE: I cannot reach libSQLDBC.so
>
> 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=cassani@webscience.it
>
>
--
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