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 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 Content-Type: text/plain; charset=us-ascii 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 All resolved now! * getopt_long(): "H. Peter Anvin" 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/