From: Date: May 13 2004 8:44am Subject: Re:Re: Problems compiling NDB-Cluster mysql-4.1.2 List-Archive: http://lists.mysql.com/mysql/165343 Message-Id: <001101c438b5$aeac9b00$e510b850@citycontor> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, thanks for your response. The zlib-Library was already installed on the machine.=20 The command "find / | grep zlib" showed my the file zlib.h at /usr/include/linux/zlib.h I've update from zlib 1.1.4-105 to 1.1.4-232 and installed the zlib-devel package too. I've tried to compile with different flags (CXX=3Dgcc and/or CC=3Dgcc) = and configured with the flag: --include-dir=3D/usr/include/linux Nothing worked, the error is still the same. Steffen Moelter -----Urspr=FCngliche Nachricht----- Von: Anders Karlsson [mailto:anders@stripped]=20 Gesendet: Montag, 10. Mai 2004 11:57 An: Tech@stripped Cc: mysql@stripped Betreff: Re: Problems compiling NDB-Cluster mysql-4.1.2 You have to have zlib installed. This seems to be a bug, which I have=20 just reported. The fix is simple: install zlib. You can check with a simple C-program like this: #include #include 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=20 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 > > > =20 > --=20 __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Anders Karlsson (anders@stripped) / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Sales Engineer /_/ /_/\_, /___/\___\_\___/ Stockholm <___/ www.mysql.com Cellphone: +46 708 608121 --=20 MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql?unsub=3DTech@stripped