Re: Use $(MKDIR_P) instead of @MKDIR_P@

2009-09-26 Thread Ralf Wildenhues
Hi Bruno, * Bruno Haible wrote on Tue, Sep 01, 2009 at 10:37:49AM CEST: I can see that in rare, rare cases, since MKDIR_P is a command, people may want to use different versions of it. But for things like @LIBINTL@ and @LIBSOCKET@, it is still better to write them as @LIBINTL@, not

Re: Use $(MKDIR_P) instead of @MKDIR_P@

2009-09-26 Thread Ralf Wildenhues
* Paolo Bonzini wrote on Thu, Sep 24, 2009 at 09:52:58AM CEST: On 09/24/2009 08:42 AM, Jim Meyering wrote: Would anyone object to increasing the minimum to automake-1.10? Fine. After 1.7 the backwards compatibility of automake has improved greatly. However, even though GCC and GDB are

more cygwin 1.7 docs

2009-09-26 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Cygwin 1.7 now provides canonicalize_file_name and euidaccess. I'm also documenting some bugs in cygwin 1.5 which have been fixed for cygwin 1.7. - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net

Re: Use $(MKDIR_P) instead of @MKDIR_P@

2009-09-26 Thread Paolo Bonzini
On Sat, Sep 26, 2009 at 12:46, Ralf Wildenhues ralf.wildenh...@gmx.de wrote: * Paolo Bonzini wrote on Thu, Sep 24, 2009 at 09:52:58AM CEST: On 09/24/2009 08:42 AM, Jim Meyering wrote: Would anyone object to increasing the minimum to automake-1.10? Fine.  After 1.7 the backwards compatibility

getopt broken

2009-09-26 Thread Sergey Poznyakoff
Hello, The latest changes to getopt (commit 6471b462, getopt: fix inclusion guards for cygwin) break compilation of getopt1.c on GNU/Linux: GENconfigmake.h CC getopt1.o getopt1.c:42: error: syntax error before '*' token getopt1.c: In function `getopt_long': getopt1.c:44: error: number of

Re: getopt broken

2009-09-26 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Sergey Poznyakoff on 9/26/2009 3:24 PM: The reason is that the declarations of getopt_long and getopt_long_r both use __getopt_argv_const, which is normally defined in getopt.h. However, if the system already has getopt.h, it gets

Re: getopt broken

2009-09-26 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Sergey Poznyakoff on 9/26/2009 3:24 PM: Hello, The latest changes to getopt (commit 6471b462, getopt: fix inclusion guards for cygwin) break compilation of getopt1.c on GNU/Linux: GENconfigmake.h CC getopt1.o Why is

Re: getopt broken

2009-09-26 Thread Sergey Poznyakoff
Eric Blake e...@byu.net ha escrit: Oh, I see. getopt in isolation passes, but getopt in combination with argp causes the failure you are seeing. I guess it's because the argp module wants to use lower-level hooks from getopt1.c than what getopt.h normally exposes. Yes, that's it. Argp uses

Re: getopt broken

2009-09-26 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Sergey Poznyakoff on 9/26/2009 3:52 PM: Eric Blake e...@byu.net ha escrit: Oh, I see. getopt in isolation passes, but getopt in combination with argp causes the failure you are seeing. I guess it's because the argp module wants to

Re: getopt broken

2009-09-26 Thread Sergey Poznyakoff
Eric Blake e...@byu.net ha escrit: Maybe the trick is to check whether _getopt_long_only_r is present to the linker, in which case we can provide our own declaration of it Yes, but we cannot guarantee our declaration matches the actual function definition. Regards, Sergey

Re: getopt broken

2009-09-26 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Sergey Poznyakoff on 9/26/2009 4:04 PM: Eric Blake e...@byu.net ha escrit: Maybe the trick is to check whether _getopt_long_only_r is present to the linker, in which case we can provide our own declaration of it Yes, but we cannot

Re: getopt broken

2009-09-26 Thread Sergey Poznyakoff
Eric Blake e...@byu.net ha escrit: But I doubt that interface has ever changed signature in glibc, and is not available anywhere else. There are too many possibilities here. E.g. the function takes as its last argument a struct _getopt_data, which is declared in getopt_int.h This structure in

Re: getopt broken

2009-09-26 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Eric Blake on 9/26/2009 3:30 PM: Any ideas how to fix it? Sounds like we need to follow the pattern of other replacement headers, and use #if @REPLACE_GETOPT@ rather than #ifdef __GETOPT_PREFIX everywhere. I'll see what I can do.

Re: argp warnings

2009-09-26 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bruno Haible on 5/8/2009 4:28 PM: Eric Blake wrote: *** argp.11760 Fri May 8 08:56:27 2009 --- -Fri May 8 08:56:27 2009 *** *** 1,4 Usage: test-argp [-tvCSOlp?V] [-f FILE] [-o[ARG]] [--test]