Before i start , i have to mention I'm new in Linux

i have a problem when i try to compile a C program that connects wth a
MySQL database.

when i execute in Linux Debian the follwoing :
gcc mysql_ins_server.c -o mysql_ins_server -I /usr/local/mysql/include/
-L /usr/local/mysql/lib/ -lmysqlclient -lz

i get the follwoing which i have no idea what to do:

/usr/lib/libc_nonshared.a(elf-init.oS)(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x 0):
In function `__i686.get_pc_thunk.bx':
: multiple definition of `__i686.get_pc_thunk.bx'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libz.a(compress.o)(.text.__i686.get_pc_thunk.bx+0x 0):
first defined here
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libz.a(inflate.o)(.text+0x485):
In function `inflateSync':
: undefined reference to `__stack_chk_fail_local'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libz.a(inflate.o)(.text+0x1de1):
In function `.L553':
: undefined reference to `__stack_chk_fail_local'
collect2: ld returned 1 exit status
/usr/lib/libc_nonshared.a(elf-init.oS)(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x 0):
In function `__i686.get_pc_thunk.bx':
: multiple definition of `__i686.get_pc_thunk.bx'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libz.a(compress.o)(.text.__i686.get_pc_thunk.bx+0x 0):
first defined here
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libz.a(inflate.o)(.text+0x485):
In function `inflateSync':
: undefined reference to `__stack_chk_fail_local'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libz.a(inflate.o)(.text+0x1de1):
In function `.L553':
: undefined reference to `__stack_chk_fail_local'
collect2: ld returned 1 exit status

I have no idea on what to do.
Does anyone have any clue? any help appreciated.