[BUG 1.7 getopt_long() and recv()] has problem for tftp-hpa-5.0 on cygwin-1.7/win2003

Xiaoqiang Zheng zh_xq@yahoo.com
Mon Jun 15 15:03:00 GMT 2009


All resolved now! 

* getopt_long():  "H. Peter Anvin" <hpa@zytor.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/



More information about the Cygwin mailing list