Re: gnutar 1.19 - lib/getcwd algorithm does not work on VMS

2008-02-26 Thread Jim Meyering
John E. Malmberg [EMAIL PROTECTED] wrote: Hello again, The lib/getcwd replacement algorithm does not work on VMS. I am still trying to figure out exactly why it is failing. On VMS, the directory specification /foo/bar/baz can actually be multiple overlayed directory trees, such as

AIX 5.1 xlc va_copy (stdarg patch)

2008-02-26 Thread Peter O'Gorman
Hi, We could not build GnuTLS-2.2.2 on AIX-5.1 in 64 bit mode because va_copy requires -qlanglvl=extc99, however, with that flag compilation failed (and many warnings were issued). The warnings were like: 1506-784 (W) Decimal integer constant 18446744073709551615 is out of range for any use of

Re: AIX 5.1 xlc va_copy (stdarg patch)

2008-02-26 Thread Peter O'Gorman
On Tue, Feb 26, 2008 at 04:54:16PM -0600, Peter O'Gorman wrote: diff --git a/m4/stdarg.m4 b/m4/stdarg.m4 index e8e680a..36af1ad 100644 --- a/m4/stdarg.m4 +++ b/m4/stdarg.m4 --- a/modules/stdarg +++ b/modules/stdarg --- /dev/null Tue Feb 26 22:22:00 2008 +++ lib/stdarg.in.h Tue Feb 26

Re: AIX 5.1 xlc va_copy (stdarg patch)

2008-02-26 Thread Paul Eggert
Peter O'Gorman [EMAIL PROTECTED] writes: +#if ! @HAVE_VA_COPY@ +#define va_copy(a,b) ((a) = (b)) +#endif Wouldn't it be simpler to do this? #ifndef va_copy #define va_copy(a,b) ((a) = (b)) #endif After all, if there is already a va_copy, and it disagrees with our substitute, we're probably

Re: AIX 5.1 xlc va_copy (stdarg patch)

2008-02-26 Thread Peter O'Gorman
On Tue, Feb 26, 2008 at 03:46:15PM -0800, Paul Eggert wrote: Peter O'Gorman [EMAIL PROTECTED] writes: +#if ! @HAVE_VA_COPY@ +#define va_copy(a,b) ((a) = (b)) +#endif Wouldn't it be simpler to do this? #ifndef va_copy #define va_copy(a,b) ((a) = (b)) #endif After all, if there

Re: AIX 5.1 xlc va_copy (stdarg patch)

2008-02-26 Thread Peter O'Gorman
On Tue, Feb 26, 2008 at 06:06:06PM -0600, Peter O'Gorman wrote: After all, if there is already a va_copy, and it disagrees with our substitute, we're probably wrong. Doing this removes the need for generating or substituting HAVE_VA_COPY. va_copy is required to be a macro, so this should

Re: AIX 5.1 xlc va_copy (stdarg patch)

2008-02-26 Thread Bruno Haible
Peter O'Gorman wrote: It looks like gl_CHECK_NEXT_HEADERS fails for headers that do not declare any functions. stdarg.h only defines macros :( Yes. I think this is unavoidable. So, we cannot use gl_CHECK_NEXT_HEADERS for stdarg.h. Instead, how about generating the stdarg.h replacement only

Re: AIX 5.1 xlc va_copy (stdarg patch)

2008-02-26 Thread Peter O'Gorman
On Wed, Feb 27, 2008 at 05:03:01AM +0100, Bruno Haible wrote: Instead, how about generating the stdarg.h replacement only for defined _AIX !defined __GNUC__ and letting it look like this: #ifndef _GL_STDARG_H #include /usr/include/stdarg.h #ifndef va_copy #define va_copy(a,b) ((a) =