Re: new module 'stdalign'

2011-07-28 Thread Sam Steingold
Hi Bruno, On Thu, Jul 28, 2011 at 7:47 PM, Bruno Haible wrote: > For alignof, whether you want to use gnulib's depends on what you > need - the necessary alignment and the optimal alignment. so, what does clisp need? -- Sam Steingold

Re: regex.m4: how do I know that the included regex is used?

2011-07-28 Thread Paul Eggert
On 07/28/11 16:39, Bruno Haible wrote: > Always use >-I$(builddir)/gllib -I$(srcdir)/gllib > so that -I options that come before it take precedence, -I options that come > after have lower precedence, and files in $(builddir)/gllib hide possible > (accidentally leftover) files in $(srcdir)/glli

Re: new module 'stdalign'

2011-07-28 Thread Bruno Haible
Hi Sam, > 1. There is already alignof module - is this a replacement? It is not exactly a replacement, because there are two possible notions of alignof - the necessary alignment and the optimal alignment [1]-, and while alignof.h favors the optimal alignment, I think that favors the necessary a

Re: regex.m4: how do I know that the included regex is used?

2011-07-28 Thread Bruno Haible
Sam Steingold wrote: > If I prepend -I$(srcdir)/gllib to CPPFLAFS, then > > #include > > will read the gnulib header, not the system header. Yes. > How can you be sure that this will not lead to any problems given that > the libgnu.a does _not_ include regex.o? Because regex.m4 guarantees tha

Re: Plea for clarification on bz #12724

2011-07-28 Thread Csaba Henk
On Thu, Jul 28, 2011 at 7:46 PM, Eric Blake wrote: > On 07/28/2011 07:30 AM, Eric Blake wrote: > This topic came up again in today's Austin Group meeting, reaffirming that > Solaris behavior is correct and glibc 2.14 behavior, while fixing one aspect > of fclose, caused an an unintentional regress

how do I build libgnu.so?

2011-07-28 Thread Sam Steingold
Hi, Make in gllib creates libgnu.a but not libgnu.so (or libgnu.dll). How do I create the shared library? Thanks! -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031 http://mideasttruth.com http://thereligionofpeace.com http://pmw.org.il http://ffii.org http:/

Re: regex.m4: how do I know that the included regex is used?

2011-07-28 Thread Paolo Bonzini
On 07/28/2011 06:43 PM, Sam Steingold wrote: * Paolo Bonzini [2011-07-28 16:54:12 +0200]: The current situation is ugly---apart from the inconsistency in syntax definitions, there is no reason indeed why regex shouldn't use regex.in.h too, and no reason why it should require prepending -I$(srcd

Re: Plea for clarification on bz #12724

2011-07-28 Thread Eric Blake
On 07/28/2011 07:30 AM, Eric Blake wrote: f = fdopen (fd2, "w"); assert (f); + printf("%ld\n", ftell(f)); So far, so good. fdopen() is required to set the stream position to the same as the underlying fd position, so this should always print 1. assert(lseek(fd, 4, SEEK_SET) == 4); + printf("%

Re: regex.m4: how do I know that the included regex is used?

2011-07-28 Thread Sam Steingold
> * Paolo Bonzini [2011-07-28 16:54:12 +0200]: > > The current situation is ugly---apart from the inconsistency in syntax > definitions, there is no reason indeed why regex shouldn't use > regex.in.h too, and no reason why it should require prepending > -I$(srcdir)/gllib to CPPFLAGS. Is it going

Re: regex.m4: how do I know that the included regex is used?

2011-07-28 Thread Paolo Bonzini
On 07/28/2011 04:16 PM, Sam Steingold wrote: If course, you can claim that, if gnulib regex.h were incompatible with the system one, then configure would have detected that and included gnulib regex in libgnu.a. The gnulib regex.h is always a superset of the system one. ABI-wise, the only dif

Re: regex.m4: how do I know that the included regex is used?

2011-07-28 Thread Sam Steingold
> * Paolo Bonzini [2011-07-28 12:15:38 +0200]: > > On 07/27/2011 05:11 PM, Sam Steingold wrote: >> When the included regex is used I must prepend -I$(srcdir)/gllib to >> CPPFLAGS to ensure that the gnulib regex.h is included in the sources. >> (when this is not the case, I_must_ not do that!) >

Re: Plea for clarification on bz #12724

2011-07-28 Thread Eric Blake
On 07/28/2011 02:00 AM, Csaba Henk wrote: - However, it seems to me that the cited part of the standard is not sufficient to make a judgement regarding which of glibc 2.14 and Solaris is the standard compliant. There is a more fundamental semantic difference here. Let us modify the

Re: Plea for clarification on bz #12724

2011-07-28 Thread Csaba Henk
On Wed, Jul 27, 2011 at 02:58:08PM -0600, Eric Blake wrote: > > On 07/27/2011 09:31 AM, Csaba Henk wrote: [...] > | At page 805 line 26801 section fclose, change: > | > | the file offset of the underlying open file description shall be > | adjusted so that the next operation on the open f

Re: regex.m4: how do I know that the included regex is used?

2011-07-28 Thread Paolo Bonzini
On 07/27/2011 05:11 PM, Sam Steingold wrote: Hi, When the included regex is used I must prepend -I$(srcdir)/gllib to CPPFLAGS to ensure that the gnulib regex.h is included in the sources. (when this is not the case, I_must_ not do that!) ^^ Thi