Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-23 Thread Niels Möller
Dagobert Michelsen writes: > Sorry for the delay, I got distracted. I just tested the latest stdint.in.h > from gnulib > master and gnutls 3.0.19 passes this stage now. Thanks. > However, I didn't change anything on the nettle includes and now get > lots of warnings. Are these warnings harmle

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-22 Thread Dagobert Michelsen
Hi, Am 08.05.2012 um 23:17 schrieb Paul Eggert: > On 05/08/2012 01:05 PM, Niels Möller wrote: >> I think it should work fine to just get the gnutls release and apply >> Paul's patch to the file gnutls-3.0.9/gl/stdint.in.h before running the >> configure script. > > Yes, that's the idea. Thanks.

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-08 Thread Paul Eggert
On 05/08/2012 01:05 PM, Niels Möller wrote: > I think it should work fine to just get the gnutls release and apply > Paul's patch to the file gnutls-3.0.9/gl/stdint.in.h before running the > configure script. Yes, that's the idea. Thanks.

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-08 Thread Niels Möller
Dagobert Michelsen writes: > If Paul or you could provide a bootstrapped tarball I'll be happy to test it > as > I am not really familiar with gnulib bootstrapping. I'm also not very familiar with gnulib. But I think it should work fine to just get the gnutls release and apply Paul's patch to

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-08 Thread Dagobert Michelsen
Hi Niels, Am 08.05.2012 um 10:55 schrieb Niels Möller: > Paul Eggert writes: >> Thanks. This seems to be a win regardless of whether it >> fixes the nettle problems, > > Dago, can you test if it solves the SunOS-5.9 problem for you? I.e., > apply Paul's patch to gnutls/gnulib, then *unapply* th

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-08 Thread Niels Möller
Paul Eggert writes: > Such usage violates the C standard: even if one compiler > is not picky about it, your're likely to run into another that > does. So a better solution is needed. I've committed a workaround to nettle-types.h. It now does /* Pretend these types always exists. Nettle does

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-08 Thread Paul Eggert
On 05/08/2012 01:55 AM, Niels Möller wrote: > I'm not sure how picky the compiler is about multiple but equivalent > typedefs of the same name. Such usage violates the C standard: even if one compiler is not picky about it, your're likely to run into another that does. So a better solution is ne

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-08 Thread Niels Möller
Paul Eggert writes: > Thanks. This seems to be a win regardless of whether it > fixes the nettle problems, Dago, can you test if it solves the SunOS-5.9 problem for you? I.e., apply Paul's patch to gnutls/gnulib, then *unapply* the nettle workaround I comitted yesterday, and see if you still ge

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-07 Thread Paul Eggert
On 05/07/2012 01:43 PM, Bruno Haible wrote: Looks good to me. Thanks. This seems to be a win regardless of whether it fixes the nettle problems, so I've pushed it into gnulib master. We can look into further fixes later as needed.

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-07 Thread Bruno Haible
Paul Eggert wrote: > + stdint: be more consistent with glibc, SunOS libc > + * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t) > + (gl_int_fast16_t, gl_uint_fast16_t) > + (gl_int_fast32_t, gl_uint_fast32_t) > + (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX) > + (INT_FAST16

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-07 Thread Paul Eggert
On 05/07/2012 10:13 AM, Niels Möller wrote: > I thought the point of gnulib was to do those annoying things to keep > the maintanance in one place. True. Very true. OK, how about the following patch to gnulib's lib/stdint.in.h? Does it fix the problem? And if not, could you please explain what

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-07 Thread Niels Möller
Paul Eggert writes: > Hmm, well, the latter point is dubious. SunOS 5.10 standard headers do not > mention int_fast*_t, except in stdint.h where C requires their definition. I'd consider that definition to be authoritative... > Presumably this is for the same reason that Gnulib avoids these ty

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-06 Thread Paul Eggert
On 05/06/2012 12:38 PM, Niels Möller wrote: But in the particular case of SunOS, the types are defined by system headers in release 5.10 (and presumably nailed down by the ABI spec), Hmm, well, the latter point is dubious. SunOS 5.10 standard headers do not mention int_fast*_t, except in stdi

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-06 Thread Niels Möller
Paul Eggert writes: > Intuitively, it's because the int_fast* types are so fragile: they > depend so much on choice of compiler and compiler option. Short version: I think gnulib should either make an effort to define int_fast*_t in the common way on each system (always doing the same as gcc wou

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-06 Thread Paul Eggert
On 05/06/2012 12:13 AM, Niels Möller wrote: Paul Eggert writes: > Generally speaking, it's unwise to use > the int_fast*_t types in a public header file. Why (feel free to point to the relevant section of gnulib docs, if it's explained well there)? Intuitively, it's because the int_fast*

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-06 Thread Niels Möller
Bruno Haible writes: > It doesn't exist so far. But it is feasible. - On the other hand, it > looks like nettle-stdint.h can already be easily trimmed in this way, > by undefining _STDINT_NEED_INT_LEAST_T and _STDINT_NEED_INT_FAST_T ? I think that makes sense. I just need someone (Dagobert Miche

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-06 Thread Bruno Haible
Nikos Mavrogiannopoulos wrote: > > libunistring installs a trimmed-down version of > > gnulib's stdint.h, that defines only the int{8,16,32}_t types and not > > all the rest (int64_t, int_least*_t, int_fast*_t, etc.). [1] > > Is there a gnulib module that only provides the basic types? It doesn't

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-06 Thread Nikos Mavrogiannopoulos
On 05/06/2012 12:34 PM, Bruno Haible wrote: > Niels Möller wrote: >> One possibility might be to not define the types at all, unless the >> gnulib application explicitly asks for them. Lots of applications want >> uint32_t, and I imagine a lot fewer have any need for int_fast*_t. > Yes. For this r

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-06 Thread Bruno Haible
Niels Möller wrote: > One possibility might be to not define the types at all, unless the > gnulib application explicitly asks for them. Lots of applications want > uint32_t, and I imagine a lot fewer have any need for int_fast*_t. Yes. For this reason, libunistring installs a trimmed-down version

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-06 Thread Dagobert Michelsen
Hi Niels, Am 06.05.2012 um 07:02 schrieb Paul Eggert: > On 05/05/2012 12:19 PM, Niels Möller wrote: >> So code which uses the int_fast*_t types and relies on gnulib will get a >> slightly different ABI > > Generally speaking, it's unwise to use > the int_fast*_t types in a public header file. > T

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-06 Thread Niels Möller
Paul Eggert writes: > Generally speaking, it's unwise to use > the int_fast*_t types in a public header file. Why (feel free to point to the relevant section of gnulib docs, if it's explained well there)? Maybe nobody uses these types so it's an academic issue, but if these types are used in th

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-05 Thread Paul Eggert
On 05/05/2012 12:19 PM, Niels Möller wrote: So code which uses the int_fast*_t types and relies on gnulib will get a slightly different ABI Generally speaking, it's unwise to use the int_fast*_t types in a public header file. This is a documented issue in Gnulib. It's hard to imagine a general

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-05 Thread Niels Möller
Dagobert Michelsen writes: > I see different possibilities on how this can be resolved: > > 1. nettle uses the gnulib definitions I currently have no plans to switch to using gnulib. As far as I'm aware, there's no problem with the types which nettle actually uses. So it would be a reasonable w

Re: Problem with int types persists on nettle 2.4 and gnutls 3.0.19 on Solaris 9 Sparc

2012-05-05 Thread Dagobert Michelsen
Hi Niels, (adding bug-gnulib@) Am 27.04.2012 um 17:24 schrieb Niels Möller: > Simon Josefsson writes: >> Yes. Understanding what the differences is, and which one is right, >> seems useful first though. If the problem is in gnulib, we can fix >> that and GnuTLS will have the new variant soon. >