dbTalk Databases Forums  

Solaris 10 exceptions problem.

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss Solaris 10 exceptions problem. in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Samuel Borgman
 
Posts: n/a

Default Solaris 10 exceptions problem. - 03-21-2006 , 04:53 AM






Hi,

I've been using mysql++ for years with all the disgusing patches, I've
finaly found a good time to upgrade to 2.x. But I'm having a major problem
with exceptions. It works perfectly on my workstation, a linux box. But on
the server a Solaris(SPARC64) 10 exceptions are not caught even in the
supplied examples.

I'm using mysql 5.19 binary downloaded for mysql.com. Mysql++ is the only
lib I'm having problems with. Any ideas?

Example the multiquery example fails with
terminate called after throwing an instance of 'mysqlpp::ConnectionFailed'
what(): Access denied for user 'samuel'@'localhost' (using password: NO)
zsh: IOT instruction (core dumped) ./multiquery

I'm using gcc 3.4.5.

Thanks,

/Samuel
---
Samuel Borgman
VP Development

NewsMachine Business Intelligence AB
Blekingegatan 42
116 62 STOCKHOLM
samuel.borgman (AT) newsmachine (DOT) se
www.newsmachine.se




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: Solaris 10 exceptions problem. - 03-21-2006 , 02:40 PM






Samuel Borgman wrote:
Quote:
I'm having a major problem with exceptions.
Exceptions seem to be a particular weakness of GCC on Solaris boxen.
Unfortunately, I don't have one here to play with, so all I'm going on
is anecdotal evidence I dig up on Google Groups and such.

If you're trying v2.0.x, install all the autotools and run the bootstrap
script to get fresh versions of all the scripts like libtool. If you're
trying v2.1.x, that shouldn't be necessary, but let me know if that's
the case.

Can you provide me with shell access to this Solaris box?

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
Samuel Borgman
 
Posts: n/a

Default Re: Solaris 10 exceptions problem. - 03-22-2006 , 03:49 AM



Thank you for taking the time, much appreciated!

I got it working with the bootstrap script. Now I know to try that in the
future.

It seems libtool(which has yet to prove it worth as more than something
only creating problems) left out alot of important options. (Just using
g++ -shared works perfectly)

One suggestion though is to include a check if the mysqlclient will be
statically or dynamically linked.

On Solaris you need to have all the code in a shared library compiled with
-fPIC (or atleast if some has been) for it to work. And since, for some
unknown to me and strange reason, mysql's binary tarballs only contain a
static client lib it fails. How ever moving -lmysqlclient(_r) to the
application link works.

Much apprecited.

/Samuel
---
Samuel Borgman
VP Development

NewsMachine Business Intelligence AB
Blekingegatan 42
116 62 STOCKHOLM
samuel.borgman (AT) newsmachine (DOT) se
www.newsmachine.se
switch: +46 8 442 03 31
cellphone: +46 708 64 32 72

Quote:
Samuel Borgman wrote:

I'm having a major problem with exceptions.

Exceptions seem to be a particular weakness of GCC on Solaris boxen.
Unfortunately, I don't have one here to play with, so all I'm going on
is anecdotal evidence I dig up on Google Groups and such.

If you're trying v2.0.x, install all the autotools and run the bootstrap
script to get fresh versions of all the scripts like libtool. If you're
trying v2.1.x, that shouldn't be necessary, but let me know if that's
the case.

Can you provide me with shell access to this Solaris box?

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...hine (DOT) com



--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.