Schroeder, Alexander wrote:
The static library that was distributed is apparantly shredded. So, you will
have no luck with that with either gcc version.
The dynamic version will only
work with 2.95 for 7.05.00, and with 3.x for the upcoming 7.06.00 release
(reference platform is SLES 9, which is similar to what you have).
Thank you very much for that information,
when will a proper version be available?
Greetings, Andre'
Regards
Alexander Schröder
SAP DB, SAP Labs Berlin
-----Original Message-----
From: Andre Reitz [mailto:reitz@xxxxxxxxxx]
Sent: Thursday, November 25, 2004 10:18 AM
To: Schroeder, Alexander
Cc: Maxdb
Subject: Re: How to compile SQLDBC program
Schroeder, Alexander wrote:
Hello André,
apparantly it seems as something went wrong with the
static archive we've distributed, we will investigate that.
GCC 3.x uses other demangling, and is not binary compatible with
previous GCC versions. Version of the database 7.6 will be compiled
with a newer GCC, we won't change/add compilers for 7.5.
ok, I see.
But the same Problem occurs with
gcc version 2.95.3 20010315 (SuSE) [SuSE7.3]
Greetings, Andre'
Regards
Alexander Schröder
SAP DB, SAP Labs Berlin
-----Original Message-----
From: Andre Reitz [mailto:reitz@xxxxxxxxxx]
Sent: Tuesday, November 23, 2004 7:36 PM
To: Andre Reitz
Cc: Schroeder, Alexander; Maxdb
Subject: Re: How to compile SQLDBC program
By the way, I get the errors below (with libSQLDBC.a) on
a SuSE 7.3 System. (Dynamic linking works)
SuSE 7.3: (gcc version 2.95.3 20010315 (SuSE))
---------
1. Works:
$ g++ test.cpp -I sqldbc/sdk/sqldbc/incl/ -L sqldbc/lib/ -lSQLDBC
2. Does not Work:
$ g++ test.cpp sqldbc/sdk/sqldbc/lib/libSQLDBC.a -I
sqldbc/sdk/sqldbc/incl/
....
libsqlthread.rel.o(.text+0x1576): undefined reference to
`sql57k_pfree'
sqldbc/sdk/sqldbc/lib/libSQLDBC.a(libsqlthread.rel.o): In
function `sqltimedwaitsem':
libsqlthread.rel.o(.text+0x1659): undefined reference to
`pthread_cond_timedwait'
collect2: ld returned 1 exit status
SuSE 9.2: (gcc version 3.3.4 (pre 3.3.5 20040809))
---------
3. Does not Work:
$ g++ test.cpp -I sqldbc/sdk/sqldbc/incl/ -L sqldbc/lib/ -lSQLDBC
.....
/tmp/ccJp25Re.o(.text+0x319): In function `main':
: undefined reference to
`SQLDBC::SQLDBC_Environment::~SQLDBC_Environment [in-charge]()'
/tmp/ccJp25Re.o(.text+0x34e): In function `main':
: undefined reference to
`SQLDBC::SQLDBC_Environment::~SQLDBC_Environment [in-charge]()'
/tmp/ccJp25Re.o(.text+0x378): In function `main':
: undefined reference to
`SQLDBC::SQLDBC_Environment::~SQLDBC_Environment [in-charge]()'
collect2: ld returned 1 exit status
4. Does not Work:
$ g++ test.cpp sqldbc/sdk/sqldbc/lib/libSQLDBC.a -I
sqldbc/sdk/sqldbc/incl/
.....
/tmp/ccwVwjvd.o(.text+0x319): In function `main':
: undefined reference to
`SQLDBC::SQLDBC_Environment::~SQLDBC_Environment [in-charge]()'
/tmp/ccwVwjvd.o(.text+0x34e): In function `main':
: undefined reference to
`SQLDBC::SQLDBC_Environment::~SQLDBC_Environment [in-charge]()'
/tmp/ccwVwjvd.o(.text+0x378): In function `main':
: undefined reference to
`SQLDBC::SQLDBC_Environment::~SQLDBC_Environment [in-charge]()'
collect2: ld returned 1 exit status
Where could the problem be?
Why does only 1. Work?
I also did a 'ranlib sqldbc/sdk/sqldbc/lib/libSQLDBC.a' on
both systems.
but it didn't help.
Greetings, and thank you very much in advance.
Andre'
Andre Reitz wrote:
I called:
$ ranlib sqldbc/sdk/sqldbc/lib/libSQLDBC.a
and then:
$ g++ -I sqldbc/sdk/sqldbc/incl/ test.cpp
sqldbc/sdk/sqldbc/lib/libSQLDBC.a
I got:
sqldbc/sdk/sqldbc/lib/libSQLDBC.a(SQLDBC.o): In function
`SQLDBC::SQLDBC_Environment::SQLDBC_Environment(SQLDBC_IRun
time *)':
SQLDBC.o(.text+0x228): undefined reference to
`IFR_Environment::IFR_Environment(SQLDBC_IRuntime *)'
sqldbc/sdk/sqldbc/lib/libSQLDBC.a(SQLDBC.o): In function
`SQLDBC::SQLDBC_Environment::createConnection(void) const':
SQLDBC.o(.text+0x2f2): undefined reference to
`IFR_Environment::getConnection(void)'
SQLDBC.o(.text+0x3fa): undefined reference to
`IFR_Environment::releaseConnection(IFR_Connection *)'
sqldbc/sdk/sqldbc/lib/libSQLDBC.a(SQLDBC.o): In function
`SQLDBC::SQLDBC_Environment::createConnection(SAPDBMem_IRawAll
ocator &)
const':
SQLDBC.o(.text+0x520): undefined reference to
`IFR_Environment::getConnection(SAPDBMem_IRawAllocator &)'
sqldbc/sdk/sqldbc/lib/libSQLDBC.a(SQLDBC.o): In function
`SQLDBC::SQLDBC_ConnectProperties::SQLDBC_ConnectProperties(void)':
SQLDBC.o(.text+0x5f3): undefined reference to
`RTEMem_RteAllocator::Instance(void)'
SQLDBC.o(.text+0x689): undefined reference to
`RTEMem_RteAllocator::Instance(void)'
SQLDBC.o(.text+0x690): undefined reference to
`IFR_ConnectProperties::IFR_ConnectProperties(SAPDBMem_IRawAll
ocator &,
bool &)'
SQLDBC.o(.text+0x6b2): undefined reference to
`RTEMem_RteAllocator::Instance(void)'
SQLDBC.o(.text+0x6e0): undefined reference to
`RTEMem_RteAllocator::Instance(void)'
sqldbc/sdk/sqldbc/lib/libSQLDBC.a(SQLDBC.o): In function
`SQLDBC::SQLDBC_Connection::close(void)':
SQLDBC.o(.text+0x771): undefined reference to
`IFR_ErrorHndl::setMemoryAllocationFailed(void)'
SQLDBC.o(.text+0x783): undefined reference to
`IFR_ErrorHndl::setMemoryAllocationFailed(void)'
SQLDBC.o(.text+0x798): undefined reference to
`IFR_ConnectionItem::clearError(void)'
SQLDBC.o(.text+0x7ad): undefined reference to
`IFR_Connection::close(bool, bool)'
sqldbc/sdk/sqldbc/lib/libSQLDBC.a(SQLDBC.o): In function
`SQLDBC::SQLDBC_Connection::commitWorkRelease(void)':
SQLDBC.o(.text+0x813): undefined reference to
`IFR_ErrorHndl::setMemoryAllocationFailed(void)'
SQLDBC.o(.text+0x825): undefined reference to
`IFR_ErrorHndl::setMemoryAllocationFailed(void)'
SQLDBC.o(.text+0x83a): undefined reference to
`IFR_ConnectionItem::clearError(void)'
SQLDBC.o(.text+0x84f): undefined reference to
`IFR_Connection::close(bool, bool)'
sqldbc/sdk/sqldbc/lib/libSQLDBC.a(SQLDBC.o): In function
`SQLDBC::SQLDBC_Connection::disconnect(void)':
SQLDBC.o(.text+0x8b7): undefined reference to
`IFR_ErrorHndl::setMemoryAllocationFailed(void)'
SQLDBC.o(.text+0x8c9): undefined reference to
`IFR_ErrorHndl::setMemoryAllocationFailed(void)'
SQLDBC.o(.text+0x8de): undefined reference to
`IFR_ConnectionItem::clearError(void)'
....
....
libsqlthread.rel.o(.text+0x1576): undefined reference to
`sql57k_pfree'
sqldbc/sdk/sqldbc/lib/libSQLDBC.a(libsqlthread.rel.o): In function
`sqltimedwaitsem':
libsqlthread.rel.o(.text+0x1659): undefined reference to
`pthread_cond_timedwait'
collect2: ld returned 1 exit status
Schroeder, Alexander wrote:
You wrote:
g++ sqldbc/sdk/sqldbc/lib/libSQLDBC.a test.cpp
I meant
g++ test.cpp sqldbc/sdk/sqldbc/lib/libSQLDBC.a
If that does not help, would you try to apply 'ranlib' on
the archive.
If that helps, please give me a note, because it means
something in
our make factory does not work as expected.
Regards
Alexander Schröder
SAP DB, SAP Labs Berlin
--
______________________________________________________________
____________
Als Technologieunternehmen konzipieren und entwickeln wir
maßgeschneiderte Feedback- und
Monitoring-Systeme - wie beispielsweise Lösungen für
Beschwerde- und Ideenmanagement.
Mit dem Inquery® Survey Server bieten wir eine der
leistungsfähigsten Standardlösungen für
Online-Umfragen mit dem Schwerpunkt auf der Messung von
Kundenzufriedenheit an.
______________________________________________________________
____________
Inworks GmbH
Andre Reitz, Leiter Entwicklung
Hörvelsinger Weg 39, 89081 Ulm, Germany
Tel +49 (0) 731 / 93807-21
Fax +49(0)731/93807-18
Internet: http://www.inworks.de
--
______________________________________________________________
____________
Als Technologieunternehmen konzipieren und entwickeln wir
maßgeschneiderte Feedback- und
Monitoring-Systeme - wie beispielsweise Lösungen für
Beschwerde- und Ideenmanagement.
Mit dem Inquery® Survey Server bieten wir eine der
leistungsfähigsten Standardlösungen für
Online-Umfragen mit dem Schwerpunkt auf der Messung von
Kundenzufriedenheit an.
______________________________________________________________
____________
Inworks GmbH
Andre Reitz, Leiter Entwicklung
Hörvelsinger Weg 39, 89081 Ulm, Germany
Tel +49 (0) 731 / 93807-21
Fax +49(0)731/93807-18
Internet: http://www.inworks.de
--
__________________________________________________________________________
Als Technologieunternehmen konzipieren und entwickeln wir maßgeschneiderte
Feedback- und
Monitoring-Systeme - wie beispielsweise Lösungen für Beschwerde- und
Ideenmanagement.
Mit dem Inquery® Survey Server bieten wir eine der leistungsfähigsten
Standardlösungen für
Online-Umfragen mit dem Schwerpunkt auf der Messung von Kundenzufriedenheit an.
__________________________________________________________________________
Inworks GmbH
Andre Reitz, Leiter Entwicklung
Hörvelsinger Weg 39, 89081 Ulm, Germany
Tel +49 (0) 731 / 93807-21
Fax +49(0)731/93807-18
Internet:
http://www.inworks.de
--
MaxDB Discussion Mailing List
For list archives:
http://lists.mysql.com/maxdb
To unsubscribe:
http://lists.mysql.com/maxdb?unsub=gcdm-maxdb@xxxxxxxxxxx
|