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:
None 
Category:MySQL Server: Embedded Library ( libmysqld ) Severity:S3 (Non-critical)
Version:4.0.16 OS:Linux (Debian GNU/Linux)
Assigned to: Victor Vagin CPU Architecture:Any

[24 Oct 2003 16:15] Christian Hammers
Description:
According to the Debian Bug Report available at
http://bugs.debian.org/214636
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@"
 include="-I$pkgincludedir"
-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
ChangeSet
  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
    http://www.mysql.com/doc/en/Installing_source_tree.html
[16 Nov 2003 3:04] Victor Vagin
Thank you very much for your "suggested fix"

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.053 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.