delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Date: | Tue, 5 Aug 2003 15:09:57 -0400 |
From: | Jason Tishler <jason AT tishler DOT net> |
To: | Cygwin <cygwin AT cygwin DOT com> |
Subject: | Cygwin 1.5.1 libc.a link problem |
Message-ID: | <20030805190957.GA2180@tishler.net> |
Mail-Followup-To: | Cygwin <cygwin AT cygwin DOT com> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.4i |
--6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline While attempting to rebuild procmail against Cygwin 1.5.1, I believe I have found a problem with libc.a that interferes with building 64-bit apps. If one builds the attached test program without -lc, we get the following: $ gcc -o stat stat.c $ objdump -p stat.exe | fgrep stat 6100 510 _stat64 But, if one builds it with -lc, we get the following: $ gcc -o stat stat.c -lc $ objdump -p stat.exe | fgrep stat 6130 945 stat Thanks, Jason -- PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="stat.c" #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> int main() { struct stat buf; int status = stat("foo", &buf); return 0; } --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ --6TrnltStXW4iwmi0--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |