Bug 165200

Summary: linker error with glibc2.3.5
Product: [Fedora] Fedora Reporter: Chandrashekhar Kumar <chandrashekhar.kumar>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED WORKSFORME QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: drepper
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-08-17 21:14:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.