Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: How to compile SQLDBC program: msg#00235

db.maxdb

Subject: RE: How to compile SQLDBC program

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.

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_IRuntime *)':
> > 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
>
>
>

--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe: http://lists.mysql.com/maxdb?unsub=gcdm-maxdb@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo