X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=liLCFdf3P3IZ5JjYB8jSgejyD1n1L w61ABhDTMbRdi4dkO/hyWqP3I5rwCtGbTVujzfeDLODRhmXh0jATTeH+fCL/u4CV 2ijYORkdkyerc0ZppEYTItKIytggApIgzMCDbHXMfGLW7fT5aCkfjU9ZM78xA5mS a0tG3X2N+Rujb0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=npE9xV0ixmUwGDrfxidvSgFECFo=; b=r94 3N6SCzZsbcOBzWYAWvDGyUyQ/hcwsZyy3cdNkNxnol6zX7v6BxOZAW//7H/K+yJt I62L+wvBrt61+716/AN+fM/90nE3XhFkt6kuQaOVS5IDjWtQjC1YbsPSdNdtG+Ch nJHJJX0GPgHaT5BUswd7GOM3AHO9MIlidv0AgeOc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_20 autolearn=ham version=3.3.2 X-HELO: mail.sciencetools.com Date: Sat, 5 Apr 2014 09:51:56 -0700 (PDT) From: Richard To: cygwin AT cygwin DOT com Subject: relocation truncated to fit: R_X86_64_PC32 against undefined symbol `len' Message-ID: User-Agent: Alpine 2.03 (LFD 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-IsSubscribed: yes Hello Everyone, I recently (two weeks ago or so) upgraded the cygwin installation on an XP 64 bit (corp edition) box and in getting things running on it again I've been having various troubles, even though I was VERY careful to watch for any installation errors - none were noticed. Normally I don't do development on this box but copy over from other systems. I had at least one program that was not behaving correctly - it would apparently hide output sent to stdout among other mysteries. After fiddling with things I decided to just rebuild on that box from sources - it's almost all gnu c. (Note that this code needs to run unchanged on many different platforms.) At some point I get to the gcc call to bind together three object files into an executable - all the object files having just been built with zero errors - and I get this particular "undefined reference to `len'" error. Of course I went hunting for the use of 'len' - which is a pretty absurd effort as a simple grep matches on coutless noise such as 'filename' or 'strlen', etc. However, a thorough search revealed no uses of just 'len', yet I don't deny I could possibly have overlooked it. Even so, this directory was taken wholesale from a 64 bit system (Win 7) with an older cygwin installation where the code compiles and runs fine. So somehow I don't think it's actually in my code but rather a library reference problem somehow. The specific set of error output from make is: $ gcc -o ctjc.exe ctjc.o hashc.o sha1.o; ctjc.o:ctjc.c:(.text+0x2287): undefined reference to `len' ctjc.o:ctjc.c:(.text+0x2287): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `len' /usr/bin/ld: ctjc.o: bad reloc address 0x0 in section `.pdata' /usr/bin/ld: final link failed: Invalid operation collect2: error: ld returned 1 exit status Any assistance greatly appreciated. Richard -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple