Bug #2217 cannot compile shared libraries
Submitted: 25 Dec 2003 20:40 Modified: 29 Mar 2004 23:06
Reporter: Vaclav Vobornik Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:4.1.1-alpha x 4.1.1 dev. OS:Linux (Linux 2.4.21)
Assigned to: Lenz Grimmer CPU Architecture:Any

[25 Dec 2003 20:40] Vaclav Vobornik
Description:
I am not able to compile shared libraries with mysql-4.1.1 from devel tree instead of version from mysql.com download page (mysql-4.1.1-alpha)

How to repeat:
root@linux:~# cd /usr/src/mysql-4.1.1-alpha  ## (downloaded from mysql.com)
root@linux:/usr/src/mysql-4.1.1-alpha# ./configure --enable-shared|grep share
checking whether the linker (/usr/i386-slackware-linux/bin/ld) supports shared libraries... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
^C

root@linux:/usr/src/mysql-4.1.1-alpha# cd ../mysql-4.1.1  ## obtained from devel tree
root@linux:/usr/src/mysql-4.1.1# ./configure --enable-shared|grep share
checking whether the linker (/usr/i386-slackware-linux/bin/ld) supports shared libraries... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
^C

root@linux:/usr/src/mysql-4.1.1#
[26 Dec 2003 8:04] Dean Ellis
Verified against 4.1.2 and 4.0.18.  configure/libtool are not recognizing the host/target system as one that supports shared libraries:

./configure reports:
checking host system type... i686-pc-linux

"./configure --host=i686-pc-linux-gnu" circumvents this.
[26 Dec 2003 9:15] Vaclav Vobornik
thank you Dean,
it helps
[29 Mar 2004 23:06] Michael Widenius
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem is not the result of a bug.
For a list of more appropriate places to ask for help using MySQL
products, please visit http://www.mysql.com/support/

Thank you for your interest in MySQL.

Additional info:

The problem is probably that the user doesn't have the right version of libtool installed (needed when using the development tree, not source distribution). MySQL needs at least libtool 1.5