You need to include libz.
add -lz to your library list in your cc command
Maurizio wrote:
>
> Description:
> upgrading my old MySql version to the new one, all my C code doesn't compile
> returning an ld error in resolving my_compress() and my_uncompress()
> finctions.
> I forced compilation coping the old libraries and include files from previus
> version of MySql.
>
> Server version 3.23.33
> Protocol version 10
> Connection Localhost via UNIX socket
> UNIX socket /tmp/mysql.sock
> Uptime: 22 hours 50 min 21 sec
>
> Threads: 1 Questions: 57864 Slow queries: 0 Opens: 68 Flush tables: 1
> Open tables: 59 Queries per second avg: 0.704
> >Environment:
> <machine, os, target, libraries (multiple lines)>
> System: Linux mediadata.windpress.it 2.2.16-22smp #1 SMP Tue Aug 22 16:39:21
> EDT 2000 i686 unknown
> Architecture: i686
>
> Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc
> /usr/bin/cc
> GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
> gcc version 2.96 20000731 (Red Hat Linux 7.0)
> Compilation info: CC='gcc' CFLAGS='-O6 -mpentium ' CXX='gcc' CXXFLAGS='-O6
> -mpentium -felide-constructors' LDFLAGS='-static'
> LIBC:
> lrwxrwxrwx 1 root root 14 Dec 14 11:26 /lib/libc.so.6 ->
> libc-2.1.92.so
> -rwxr-xr-x 1 root root 4776568 Aug 30 2000 /lib/libc-2.1.92.so
> -rw-r--r-- 1 root root 22607104 Aug 30 2000 /usr/lib/libc.a
> -rw-r--r-- 1 root root 178 Aug 30 2000 /usr/lib/libc.so
> Configure command: ./configure --prefix=/usr/local/mysql
> '--with-comment=Official MySQL binary' --with-extra-charsets=complex
> --enable-assembler --with-mysqld-ldflags=-all-static
> --with-client-ldflags=-all-static --disable-shared
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
><[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php