Hi,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
#include <stdio.h> #include <getopt.h> int main (int argc, char *argv[]) { int c; while ((c = getopt(argc, argv, "a:b:")) != -1) { switch (c) { case 'a': printf ("a received with option %s\n",optarg); break; case 'b': printf ("b received with option %s\n",optarg); break; default: printf ("Invalid options\n"); break; } } return 0; } when I compile with gcc -o opt_test opt_test.c and type ./opt_test -a hello -b goodbye I see a received with option hello b received with option goodbye When I compile with gcc -o opt_test opt_test.c -liberty and type ./opt_test -a hello -b goodbye I see a received with option (null) b received with option (null)I notice this for 1.5.18 and the 20051215 snapshot. It did work in 1.3.22.
Peter
cygcheck.out
Description: Binary data
On Nov 30, 2005, at 9:11 AM, Corinna Vinschen wrote:
Since we're much too long on the way to the 1.5.19 release and there are already way too many changes since 1.5.18, we would again like to ask people for testing the latest snapshot, 2005-Nov-30, from http://www.cygwin.com/snapshots/ Please report back in this thread when you encounter a problem, which you can't reproduce with 1.5.18. We're interested in regressions in the first place.1.5.19 has also some new functionality over 1.5.18. If you have sources which take advantage of that stuff if present, we're also interested ingetting feeedback about those: - clock_getres, clock_setres. - fts(3) functions (BSD). - futimes. - getline, getdelim. - memmem. - mlock,munlock. - mmap(..., MAP_NORESERVE) for anonymous maps. - pread, pwrite. - readdir_r. - strptime's 'c and 'Z' formats. - timelocal, timegm. Keep in mind that we can easier find problems if you attach a brief, concise, selfcontained testcase, if possible in plain C, which allows easy reproducing. If nothing's overly badly broken, we're planning to release 1.5.19 within the next week. Keep your fingers crossed. Again, please report all problems as reply to this mail. Thanks in advance, Corinna --Corinna Vinschen Please, send mails regarding Cygwin toCygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat, Inc. -- 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/