X-Spam-Check-By: sourceware.org Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: <20051216234128.GB26243@trixie.casa.cgf.cx> References: <20051130171137 DOT GE2999 AT calimero DOT vinschen DOT de> <20051216234128 DOT GB26243 AT trixie DOT casa DOT cgf DOT cx> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <61A3944E-814C-459E-992C-6F6878A7EF83@rehley.net> Content-Transfer-Encoding: 7bit From: Peter Rehley Subject: Re: Call for testing Cygwin snapshot (getopt and -liberty don't mix..binutils issue) Date: Fri, 16 Dec 2005 17:50:01 -0800 To: cygwin AT cygwin DOT com X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 On Dec 16, 2005, at 3:41 PM, Christopher Faylor wrote: > On Fri, Dec 16, 2005 at 02:41:54PM -0800, Peter Rehley wrote: >> I just noticed something else that may or may not be a problem >> (noticed when working on tftpd). When I link with iberty (-liberty), >> the getopt function doesn't return the correct value for the option >> argument. Here is a sample program > > libiberty has its own implementation of getopt. This is not a cygwin > problem. hmmm, ok. it's binutils then. But when I do a build of cygwin using the snapshot, it builds libiberty.a. The libiberty directory in the snapshot source has a getopt.c file that is nearly identical to the binutils version. I've tried out the version of libiberty.a that cygwin builds (replaced the binutils version), and it has the same problem as the binutils version. Why does cygwin need to build it's own version of libiberty? and where does the libiberty in the cygwin source come from? I'll look at binutils at little closer to track the problem further. Peter > > cgf > > -- > 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/ > > -- 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/