Bug #1650 mysql_config --libmysqld-libs misses libwrap
Submitted: 24 Oct 2003 16:15 Modified: 16 Nov 2003 3:04
Reporter: Christian Hammers (Silver Quality Contributor) (OCA) Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: Embedded Library ( libmysqld ) Severity:S3 (Non-critical)
Version:4.0.16 OS:Linux (Debian GNU/Linux)
Assigned to: Bugs System CPU Architecture:Any

[24 Oct 2003 16:15] Christian Hammers
According to the Debian Bug Report available at
the mysql_config program does not add "-lwrap" to the list of needed libraries
when called with --libmysqld-libs although there are a couple of unresolved symbols from this library in /usr/lib/libmysqld.a.

How to repeat:
see above mentioned bug report

Suggested fix:
--- ../mysql-4.0.16/scripts/mysql_config.sh     2003-10-17 07:29:18.000000000 +0200
+++ scripts/mysql_config.sh     2003-10-25 01:08:07.000000000 +0200
@@ -92,7 +92,7 @@
 libs_r=`echo "$libs_r" | sed -e 's;  \+; ;g' | sed -e 's;^ *;;' | sed -e 's; *\$;;'`
 cflags="-I$pkgincludedir @CFLAGS@"
-embedded_libs="$ldflags -L$pkglibdir -lmysqld @LIBS@ @innodb_system_libs@"
+embedded_libs="$ldflags -L$pkglibdir -lmysqld @LIBS@ @innodb_system_libs@ -lwrap"
 embedded_libs=`echo "$embedded_libs" | sed -e 's;  \+; ;g' | sed -e 's;^ *;;' | sed -e 's; *\$;;'`
 # Remove some options that a client doesn't have to care about
[3 Nov 2003 19:44] Dean Ellis
mysql_config.sh does not parse WRAPLIBS (populated if configuring --with-libwrap).

Thank you.
[15 Nov 2003 7:44] Victor Vagin
  1.1618 03/11/15 19:37:54 vva@eagle.mysql.r18.ru +2 -0
  fixed bug #1650 "mysql_config --libmysqd-libs misses libwrap"
[16 Nov 2003 3:02] Victor Vagin
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
[16 Nov 2003 3:04] Victor Vagin
Thank you very much for your "suggested fix"