Bug 165200 - linker error with glibc2.3.5
Summary: linker error with glibc2.3.5
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 4
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-08-05 10:59 UTC by Chandrashekhar Kumar
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-08-17 21:14:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Chandrashekhar Kumar 2005-08-05 10:59:43 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4

Description of problem:
** Linking i386-onyx/debug/devstore:
/usr/X11R6/lib/libX11.so: undefined reference to `__memcpy_chk.4'
/usr/X11R6/lib/libX11.so: undefined reference to `__strcpy_chk.4'
/usr/X11R6/lib/libX11.so: undefined reference to `__fprintf_chk.4'
/usr/X11R6/lib/libX11.so: undefined reference to `__strcat_chk.4'
/usr/X11R6/lib/libX11.so: undefined reference to `__strncpy_chk.4'
/usr/X11R6/lib/libX11.so: undefined reference to `__sprintf_chk.4'
collect2: ld returned 1 exit status
make: *** [i386-onyx/debug/devstore] Error 1


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.** Linking i386-onyx/debug/devstore:
/usr/X11R6/lib/libX11.so: undefined reference to `__memcpy_chk.4'
/usr/X11R6/lib/libX11.so: undefined reference to `__strcpy_chk.4'
/usr/X11R6/lib/libX11.so: undefined reference to `__fprintf_chk.4'
/usr/X11R6/lib/libX11.so: undefined reference to `__strcat_chk.4'
/usr/X11R6/lib/libX11.so: undefined reference to `__strncpy_chk.4'
/usr/X11R6/lib/libX11.so: undefined reference to `__sprintf_chk.4'
collect2: ld returned 1 exit status
make: *** [i386-onyx/debug/devstore] Error 1

2.
3.
  

Actual Results:  ** Linking i386-onyx/debug/devstore:
/usr/X11R6/lib/libX11.so: undefined reference to `__memcpy_chk.4'
/usr/X11R6/lib/libX11.so: undefined reference to `__strcpy_chk.4'
/usr/X11R6/lib/libX11.so: undefined reference to `__fprintf_chk.4'
/usr/X11R6/lib/libX11.so: undefined reference to `__strcat_chk.4'
/usr/X11R6/lib/libX11.so: undefined reference to `__strncpy_chk.4'
/usr/X11R6/lib/libX11.so: undefined reference to `__sprintf_chk.4'
collect2: ld returned 1 exit status
make: *** [i386-onyx/debug/devstore] Error 1


Additional info:

Comment 1 Ulrich Drepper 2005-08-05 19:33:43 UTC
That's a problem on your system.  You don't have the correct glibc installed or
don't use the correct version at runtime.  Add -Wl,-t to the compiler command
line and determine which libc binary is used.


Note You need to log in before you can comment on or make changes to this bug.