Bug #200 Missing @WRABLIBS@ in libmysqld/examples/Makefile.am
Submitted: 27 Mar 2003 16:09 Modified: 31 Mar 2003 6:09
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.12 OS:Linux (Debian GNU/Linux)
Assigned to: Lenz Grimmer CPU Architecture:Any

[27 Mar 2003 16:09] Christian Hammers
Description:
The wrapper library is missing.

How to repeat:
libtoolize --force --copy && aclocal && autoheader && automake && autoconf

sh -c  'PATH=$${MYSQL_BUILD_PATH:-"/bin:/usr/bin"} \
                CC=$${MYSQL_BUILD_CC:-gcc} \
                CFLAGS=$${MYSQL_BUILD_CFLAGS:-"-O2 $(FOMIT_FRAME_POINTER) -g -include /usr/include/errno.h"} \
                CXX=$${MYSQL_BUILD_CXX:-g++} \
                CXXFLAGS=$${MYSQL_BUILD_CXXFLAGS:-"-O2 $(FOMIT_FRAME_POINTER) -g -include /usr/include/errno.h \
                  -felide-constructors $(FNO_EXCEPTIONS) -fno-rtti"} && set && \
            ./configure \
                --prefix=/usr \
                --exec-prefix=/usr \
                --libexecdir=/usr/sbin \
                --datadir=/usr/share \
                --sysconfdir=/etc/mysql \
                --localstatedir=/var/lib/mysql \
                --includedir=/usr/include \
                --infodir=/usr/share/info \
                --mandir=/usr/share/man \
                --enable-shared \
                --enable-static \
                --enable-thread-safe-client \
                $(USE_ASSEMBLER) \
                --enable-local-infile \
                --with-raid \
                --with-unix-socket-path=/var/run/mysqld/mysqld.sock \
                --with-mysqld-user=mysql \
                --with-libwrap \
                --with-client-ldflags=-lstdc++ \
                --with-embedded-server \
                --with-vio \
                --with-openssl \
                --without-docs \
                --without-bench \
                --without-readline \
                --with-extra-charsets=all \
                $(USE_BDB) \
                --with-innodb'
        #       --with-debug \

make 

Suggested fix:
--- libmysqld/examples/Makefile.am.orig 2003-03-28 00:42:54.000000000 +0100
+++ libmysqld/examples/Makefile.am      2003-03-28 00:43:06.000000000 +0100
@@ -10,7 +10,7 @@
 DEFS =                 -DEMBEDDED_LIBRARY
 INCLUDES =     @MT_INCLUDES@ -I$(top_srcdir)/include -I$(srcdir) \
                -I$(top_srcdir) -I$(top_srcdir)/client $(openssl_includes)
-LIBS =         @LIBS@
+LIBS =         @LIBS@ @WRAPLIBS@
 LDADD =                @CLIENT_EXTRA_LDFLAGS@ ../libmysqld.a @innodb_system_libs@ @LIBDL@ $(CXXLDFLAGS)
 
 mysqltest_SOURCES =    mysqltest.c
[31 Mar 2003 6:09] Lenz Grimmer
Thank you for your bug report. This issue has been fixed in the latest
development tree for that product. You can find more information about
accessing our development trees at 
    http://www.mysql.com/doc/en/Installing_source_tree.html

Thanks for the hint! Now fixed in the BK tree and for 4.0.13: 
 
ChangeSet@1.1426, 2003-03-31 14:50:29+02:00, lenz@mysql.com 
   - Fix for bug #200 (added missing @WRAPLIBS@ to LIBS in 
     libmysqld/examples/Makefile.am (thanks to Christian Hammers from 
     Debian for pointing this out)