delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/15/08:09:25

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_45
X-Spam-Check-By: sourceware.org
Message-ID: <508472.67807.qm@web110506.mail.gq1.yahoo.com>
Date: Mon, 15 Jun 2009 05:09:02 -0700 (PDT)
From: Xiaoqiang Zheng <zh_xq AT yahoo DOT com>
Subject: Re: [BUG 1.7 getopt_long() and recv()] has problem for tftp-hpa-5.0 on cygwin-1.7/win2003
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

All resolved now! 

* getopt_long():  "H. Peter Anvin" <hpa AT zytor DOT com> has provided Corrected patch (the first one won't work). and the getopt_log links to cygwin now and works well.

* recv(): the new snapshot has fixed the bug, and works fine.

now the tftp-hap-5.0 work well.


thank you all very much!



    -hpa



-----Inline Attachment Follows-----


diff --git a/configure.in b/configure.in
index ca21af7..ad00696 100644
--- a/configure.in
+++ b/configure.in
@@ -154,7 +154,7 @@ XTRA=false
PA_SEARCH_LIBS_AND_ADD(xmalloc, iberty)
PA_SEARCH_LIBS_AND_ADD(xstrdup, iberty)
PA_SEARCH_LIBS_AND_ADD(bsd_signal, bsd, bsdsignal)
-PA_SEARCH_LIBS_AND_ADD(getopt_long, getopt, getopt_long)
+PA_SEARCH_LIBS_AND_ADD(getopt_long, [getopt cygwin iberty], getopt_long)
PA_SEARCH_LIBS_AND_ADD(getaddrinfo, [nsl resolv])
if $pa_add_getaddrinfo
then
@@ -184,6 +184,11 @@ then
   XTRALIBS="$OBJROOT/lib/libxtra.a $XTRALIBS"
fi

+dnl Workaround for Cygwin: the version of getopt_long in libiberty causes
+dnl problems; we want the one in libcygwin, so if libcygwin exists,
+dnl we want to link to it
+AC_CHECK_LIB(cygwin, getopt_long)
+
dnl
dnl These libraries apply to the server only
dnl



      

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019