List:Bugs« Previous MessageNext Message »
From:Tonu Samuel Date:March 1 2000 8:46pm
Subject:Re: Compression option not correctly 'config'ed to build
View as plain text  
Nem W Schlecht wrote:
> 
> >Description:
> 
> Compression isn't being built in correctly.  config.h.in doesn't contain a
> line for HAVE_COMPRESS, although this is #ifdef()ed in the library and
> server code.  Also, 'configure.in' (autoconf) does not contain an entry for
> defining HAVE_COMPRESS if zlib is found.
> 
> >How-To-Repeat:
> 
> Run configure, make sure that is finds your libz '-lz', then grep
> 'config.h' for COMPRESS.  It won't be there, but it should. ;-)
> 
> >Fix:
> 
> The following patches to config.h.in and configure.in will make the
> HAVE_COMPRESS define appear in config.h.  I'm missing something, though.
> If a do a clean untar, apply the patch, run autoconf, then run configure
> like I usually do, it doesn't work right.  If I do a 'make clean', then
> 'make' it builds correctly, though.  Mabye autoconf is mucking something
> up?
> 
> *** configure.in-old    Wed Feb 16 10:42:52 2000
> --- configure.in        Thu Feb 24 22:45:00 2000
> ***************
> *** 503,509 ****
>   # For crypt() on Linux
>   AC_CHECK_LIB(crypt,crypt)
>   # For compress in zlib
> ! AC_CHECK_LIB($with_named_zlib,compress)
> 
>   # Check for gtty if termio.h doesn't exists
>   if test "$ac_cv_header_termio_h" = "no" -a "$ac_cv_header_termios_h" = "no"
> --- 503,510 ----
>   # For crypt() on Linux
>   AC_CHECK_LIB(crypt,crypt)
>   # For compress in zlib
> ! AC_CHECK_LIB($with_named_zlib,compress,
> !       [AC_DEFINE(HAVE_COMPRESS)] )
> 
>   # Check for gtty if termio.h doesn't exists
>   if test "$ac_cv_header_termio_h" = "no" -a "$ac_cv_header_termios_h" = "no"
> 
> *** config.h.in-old     Thu Feb 24 22:42:06 2000
> --- config.h.in Thu Feb 24 22:47:26 2000
> ***************
> *** 257,262 ****
> --- 257,265 ----
>   /* Define if you have the crypt function.  */
>   #undef HAVE_CRYPT
> 
> + /* Define if you have the compress function (in zlib).  */
> + #undef HAVE_COMPRESS
> +
>   /* Define if you have the cuserid function.  */
>   #undef HAVE_CUSERID
> 
> >Submitter-Id:  <submitter ID>
> >Originator:
> >Organization:
>   North Dakato State University Libraries
> >MySQL support: none
> >Synopsis:      Compression code not getting included
> >Severity:      serious
> >Priority:      medium
> >Category:      mysql
> >Class:         sw-bug
> >Release:       mysql-3.23.11-alpha (Source distribution)
> >Server: /local/mysql/bin/mysqladmin  Ver 7.14 Distrib 3.23.8-alpha, for
> pc-solaris2.7 on i386
> TCX Datakonsult AB, by Monty
> 
> Server version          3.23.8-alpha
> Protocol version        10
> Connection              Localhost via UNIX socket
> UNIX socket             /tmp/mysql.sock
> Uptime:                 3 days 6 hours 49 min 40 sec
> 
> Threads: 1  Questions: 1514  Slow queries: 0  Opens: 52  Flush tables: 1  Open
> tables: 20
> >Environment:
> 
> System: SunOS empyrean 5.7 Generic_106542-08 i86pc i386 i86pc
> Architecture: i86pc
> 
> Some paths:  /local/bin/perl /local/bin/make /local/bin/gmake /local/bin/gcc
> /local/bin/cc
> GCC: Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.7/2.8.1/specs
> gcc version 2.8.1
> Compilation info: CC='cc'  CFLAGS='-O3'  CXX='c++'  CXXFLAGS=''  LDFLAGS=''
> LIBC:
> -rw-r--r--   1 bin      bin       1564612 Oct 14 04:39 /lib/libc.a
> lrwxrwxrwx   1 root     root           11 Apr  8  1999 /lib/libc.so ->
> ./libc.so.1
> -rwxr-xr-x   1 bin      bin        954804 Oct 14 04:39 /lib/libc.so.1
> -rw-r--r--   1 bin      bin       1564612 Oct 14 04:39 /usr/lib/libc.a
> lrwxrwxrwx   1 root     root           11 Apr  8  1999 /usr/lib/libc.so ->
> ./libc.so.1
> -rwxr-xr-x   1 bin      bin        954804 Oct 14 04:39 /usr/lib/libc.so.1
> Configure command: ./configure  --prefix=/local/mysql --enable-shared --without-debug
> --without-perl --without-readline --without-bench --enable-thread-safe-client
> '--with-libwrap=-L/local/lib -lwrap -lnsl -lsocket'
> Perl: This is perl, version 5.005_03 built for i86pc-thread
> 
> --
> ---------------------------------------------------------------------
> Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
> posting. To request this thread, e-mail mysql-thread29000@stripped
> 
> To unsubscribe, send a message to:
>     <mysql-unsubscribe-tonu=mysql.com@stripped>

-- 
+----------------------------------------------------------------+
| TcX  ____  __     _____   _____  ___                           |
|     /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|     Tõnu Samuel           |
|    /*/ /*/ /*/   \*\_   |*|   |*||*|     tonu@stripped        |
|   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|     Tallinn, Estonia      |
|  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|____                       |
|  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^                      |
|             /*/             \*\                Developers Team |
+----------------------------------------------------------------+
Thread
Compression option not correctly 'config'ed to buildThimble Smith25 Feb
Re: Compression option not correctly 'config'ed to buildTonu Samuel1 Mar