Unix Technical Forum

problem with gcc at Debian

This is a discussion on problem with gcc at Debian within the Linux Operating System forums, part of the Unix Operating Systems category; --> i've written a program in C that connects with a MySQL Database. When it compile : gcc mysql_ins_server.c -o ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 05:39 PM
alexkon
 
Posts: n/a
Default problem with gcc at Debian

i've written a program in C that connects with a MySQL Database.
When it compile : gcc mysql_ins_server.c -o mysql_ins_server -I
/usr/local/mysql/include/ -L /usr/local/mysql/lib/ -lmysqlclient -lz

i take the follwoing errors:
/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

because im' new to Linux i haven''t find out anything yet. Any help
appreciated.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 05:46 PM
danielsonchris@gmail.com
 
Posts: n/a
Default Re: problem with gcc at Debian

Make sure you have a recent version of GCC and binutils. I just ran
into the same problem with python 2.4.3. It had nothing to do with the
code base. The linker was broken and an update of my binutils fixed the
issue.
Kind regards,
Chris

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:49 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com