List:General Discussion« Previous MessageNext Message »
From:Anders Karlsson Date:May 10 2004 11:57am
Subject:Re: Problems compiling NDB-Cluster mysql-4.1.2
View as plain text  
You have to have zlib installed. This seems to be a bug, which I have 
just reported. The fix is
simple: install zlib.
You can check with a simple C-program like this:

#include <zlib.h>
#include <stdio.h>

int main(int argc, char *argv[])
   {
   printf("Hello, World\n");
   return 0;
   }

If this refuses to compile (missing includefile) you are
missing zlib includes at least. You might want to link with -lz to check
that the library is there too, or even call one one the functions in 
zlib (compress
for example).
Install zlib and make sure this little program compiles, if it does, you
should be OK.

/Karlsson
Tech@stripped wrote:

>Hello all,
>
>i want to compile the development tree source from
>bk://mysql.bkbits.net/mysql-4.1 on SuSE 8.2 Linux. The compiling of the
>mysql-4.1 without the ndb-cluster works fine.
>
>When set the configuration-option --with-ndbcluster, the compilation
>fails with the error:
>
>ha_ndbcluster.o(.text+0x3b5c): In function `packfrm(void const*,
>unsigned, void const**, unsigned*)':
>: undefined reference to `my_compress'
>ha_ndbcluster.o(.text+0x3c34): In function `unpackfrm(void const**,
>unsigned*, void const*)':
>: undefined reference to `my_uncompress'
>collect2: ld returned 1 exit status
>make[4]: *** [mysqld] Error 1
>make[4]: Leaving directory `/home/Steffen/mysql-4.1/sql'
>
>I've tried to set the CXX and/or CC environment-variable to gcc, but the
>compilation fails with the same error.
>
>Installed Software Versions:
>Kernel: 2.4.22-33
>gcc/cpp : 3.3-23
>bison: 1.875
>autoconf: 2.53
>automake: 1.5
>libtool: 1.5
>
>Thanks
>Steffen
>
>
>  
>

-- 
    __  ___     ___ ____  __
   /  |/  /_ __/ __/ __ \/ /  Anders Karlsson (anders@stripped)
  / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Sales Engineer
 /_/  /_/\_, /___/\___\_\___/ Stockholm
        <___/   www.mysql.com Cellphone: +46 708 608121

Thread
Problems compiling NDB-Cluster mysql-4.1.2Tech5 May
  • Re: Problems compiling NDB-Cluster mysql-4.1.2Anders Karlsson10 May
    • Re:Re: Problems compiling NDB-Cluster mysql-4.1.2Steffen Moelter13 May