dbTalk Databases Forums  

missing SONAME?

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


Discuss missing SONAME? in the mailing.database.mysql-plusplus forum.



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

Default missing SONAME? - 05-12-2006 , 02:00 AM






Hi,

With mysql++ 2.1.x, it looks like the Bakefile changes have dropped the
SONAME. I'm not sure how (or even if) Bakefile actually supports
SONAMEs, but it would be really nice to actually have them embedded in
the shared library itself (lots of tools use SONAME in the private
header; objdump -p libfoo.so |grep SONAME).

This could be as simple as adding -Wl,-soname,libmysql++.so.2 to
LDFLAGS, or whatever Bakefile's recommended method is (I'm not at all
familiar w/ the tool).


--
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   
AT
 
Posts: n/a

Default Re: missing SONAME? - 05-12-2006 , 02:05 AM






On Fri, 2006-05-12 at 02:59 -0400, Andres Salomon wrote:
[...]
Quote:
This could be as simple as adding -Wl,-soname,libmysql++.so.2 to
LDFLAGS, or whatever Bakefile's recommended method is (I'm not at all
familiar w/ the tool).
Sorry, that should be "-Wl,-soname -Wl,libmysqlpp.so.2".


--
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   
AT
 
Posts: n/a

Default Re: missing SONAME? - 05-12-2006 , 06:55 AM



Andres Salomon wrote:
Quote:
With mysql++ 2.1.x, it looks like the Bakefile changes have dropped the
SONAME.
We're no longer using libtool, and with that goes a lot of details like
this. This is simply because Bakefile does not support libtool. I
would think a better patch is to change Bakefile so it uses libtool for
autoconf-based projects, but that's just me.

Quote:
This could be as simple as adding -Wl,-soname,libmysql++.so.2 to
LDFLAGS,
That only works for GCC. The whole purpose of libtool is to wrap up
details like this that differ between build systems.

--
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
  #4  
Old   
AT
 
Posts: n/a

Default Re: missing SONAME? - 05-12-2006 , 12:08 PM



On Fri, 2006-05-12 at 05:54 -0600, Warren Young wrote:
Quote:
Andres Salomon wrote:

With mysql++ 2.1.x, it looks like the Bakefile changes have dropped the
SONAME.

We're no longer using libtool, and with that goes a lot of details like
this. This is simply because Bakefile does not support libtool. I
would think a better patch is to change Bakefile so it uses libtool for
autoconf-based projects, but that's just me.
That would work; alternatively, just adding the SONAME bits if gcc is
being used.



--
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
  #5  
Old   
AT
 
Posts: n/a

Default Re: missing SONAME? - 07-05-2006 , 04:02 PM



Andres Salomon wrote:
Quote:
On Fri, 2006-05-12 at 02:59 -0400, Andres Salomon wrote:
[...]
This could be as simple as adding -Wl,-soname,libmysql++.so.2 to
LDFLAGS, or whatever Bakefile's recommended method is (I'm not at all
familiar w/ the tool).

Sorry, that should be "-Wl,-soname -Wl,libmysqlpp.so.2".
I've gone ahead and done this, so it'll appear in the next version. I'm
betting that the number of people building MySQL++ with autoconf but not
GCC is near zero these days.

--
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.