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_serve r.c -o mysql_ins_serve r -I /usr/local/mysql/include/
-L /usr/local/mysql/lib/ -lmysqlclient -lz
i get:
/usr/lib/libc_nonshared. a(elf-init.oS)(.gnu.l inkonce.t.__i68 6.get_pc_thunk. bx+0x0):
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.__i68 6.get_pc_thunk. bx+0x0):
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_fa il_local'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libz.a(inflate. o)(.text+0x1de1 ):
In function `.L553':
: undefined reference to `__stack_chk_fa il_local'
collect2: ld returned 1 exit status
/usr/lib/libc_nonshared. a(elf-init.oS)(.gnu.l inkonce.t.__i68 6.get_pc_thunk. bx+0x0):
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.__i68 6.get_pc_thunk. bx+0x0):
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_fa il_local'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libz.a(inflate. o)(.text+0x1de1 ):
In function `.L553':
: undefined reference to `__stack_chk_fa il_local'
collect2: ld returned 1 exit status
Does anyone have any clue? any help appreciated.
MySQL database.
when i execute in Linux Debian the follwoing :
gcc mysql_ins_serve r.c -o mysql_ins_serve r -I /usr/local/mysql/include/
-L /usr/local/mysql/lib/ -lmysqlclient -lz
i get:
/usr/lib/libc_nonshared. a(elf-init.oS)(.gnu.l inkonce.t.__i68 6.get_pc_thunk. bx+0x0):
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.__i68 6.get_pc_thunk. bx+0x0):
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_fa il_local'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libz.a(inflate. o)(.text+0x1de1 ):
In function `.L553':
: undefined reference to `__stack_chk_fa il_local'
collect2: ld returned 1 exit status
/usr/lib/libc_nonshared. a(elf-init.oS)(.gnu.l inkonce.t.__i68 6.get_pc_thunk. bx+0x0):
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.__i68 6.get_pc_thunk. bx+0x0):
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_fa il_local'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libz.a(inflate. o)(.text+0x1de1 ):
In function `.L553':
: undefined reference to `__stack_chk_fa il_local'
collect2: ld returned 1 exit status
Does anyone have any clue? any help appreciated.
Comment