Re: bug in getaddrinfo module

2005-09-22 Thread Paul Eggert
[EMAIL PROTECTED] (Eric Blake) writes: > gcc -DHAVE_CONFIG_H -I. -I../../lib -I.. -g -O2 -c ../../lib/getaddrinfo.c > ../../lib/getaddrinfo.c: In function `getaddrinfo': > ../../lib/getaddrinfo.c:112: error: invalid application of `sizeof' to > incomplete type `sockaddr_in' Thanks for repor

Re: Using regex on OS/X

2005-09-22 Thread Paul Eggert
James Gallagher <[EMAIL PROTECTED]> writes: > g++ -I./GNU -g -O2 -o getdap getdap.o -Wl,-bind_at_load > ./.libs/libdap.a -L/usr/local/lib /usr/local/lib/libcurl.dylib -lssl > -lcrypto /usr/local/lib/libxml2.dylib -ldl -lz /usr/lib/libiconv.dylib > -lm -lpthread > ld: warning multiple definitions o

Using regex on OS/X

2005-09-22 Thread James Gallagher
Hi, When I build on OS/X (either 10.3 or 10.4) I get the following warnings: g++ -I./GNU -g -O2 -o getdap getdap.o -Wl,-bind_at_load ./.libs/libdap.a -L/usr/local/lib /usr/local/lib/libcurl.dylib -lssl -lcrypto /usr/local/lib/libxml2.dylib -ldl -lz /usr/lib/libiconv.dylib -lm -lpthread ld:

openat changes imported from gnulib

2005-09-22 Thread Paul Eggert
I installed this: 2005-09-22 Paul Eggert <[EMAIL PROTECTED]> * modules/openat (Files): Add lib/openat-die.c. (Depends-on): Remove error, exitfail. Add dirname. 2005-09-22 Jim Meyering <[EMAIL PROTECTED]> * lib/openat.c (fdopendir): Be sure to close the suppli

bug in getaddrinfo module

2005-09-22 Thread Eric Blake
coreutils CVS head now fails to compile on cygwin due to a recent import of the latest gnulib getaddrinfo. Sure enough, running gnulib-tool --test getaddrinfo dies with the following: make[2]: Entering directory `/home/eblake/gnulib/testdir3556/build/lib' gcc -DHAVE_CONFIG_H -I. -I../../lib -I..

strftime patches from coreutils

2005-09-22 Thread Paul Eggert
I installed this. Part of it is to support a new fprintftime function, which acts like strftime except output goes to a FILE *; if there's interest in that we can add it to gnulib as well. 2005-09-22 Paul Eggert <[EMAIL PROTECTED]> * strftime.c (my_strftime): Rewrite the previous chang

mkdir-p patches from coreutils

2005-09-22 Thread Paul Eggert
I installed this: 2005-09-22 Paul Eggert <[EMAIL PROTECTED]> * mkdir-p.c (ENOSYS): Define to EEXIST if not defined. (make_dir_parents): Treat ENOSYS like EEXIST. Improve quality of diagnostics on restore_cwd failure. * mkdir-p.h (make_dir): Remove. All uses rep

getloadavg patches merged from coreutils

2005-09-22 Thread Paul Eggert
I installed this: 2005-09-22 Paul Eggert <[EMAIL PROTECTED]> * getloadavg.c: Include fcntl--.h rather than fcntl.h. Do not include unistd-safer.h. (getloadavg): Don't call fd_safer; no longer needed now that we include fcntl--.h. 2005-09-22 Jim Meyering <[EMAI

getdate patches from coreutils

2005-09-22 Thread Paul Eggert
I installed this patch, merged from coreutils: 2005-09-22 Paul Eggert <[EMAIL PROTECTED]> * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro. (gl_GETDATE): Use it. * lib/getdate.y (relative_time): New type. (RELATIVE_TIME_0): New constant. (parser_contr

new gnulib module "verify" for compile-time assertions

2005-09-22 Thread Paul Eggert
I'm starting to import gnulib changes from coreutils. The first step is to add a new module "verify", which defines macros verify(EXPR) and verify_expr(EXPR) that act like assert(EXPR) except they check EXPR at compile-time, not at run-time. verify(EXPR) is for declaration contexts, and verify_ex

Re: regex-0.12's regex.h seems to have a little bug

2005-09-22 Thread Paul Eggert
Stepan Kasal <[EMAIL PROTECTED]> writes: > I'm afraid we need a design document for the solution. Then we can implement > it. Have I missed it, or it is yet to be written? No, I don't think you've missed it; that work still needs to be done. ___ bug

Re: regex-0.12's regex.h seems to have a little bug

2005-09-22 Thread Stepan Kasal
Hello, On Thu, Sep 22, 2005 at 12:36:46PM +0200, Simon Josefsson wrote: > Stepan Kasal <[EMAIL PROTECTED]> writes: > > Later on, when it was realized that a fix is needed, it was decided to wait > > for Autoconf 2.60, instead of converting gnulib back to the old scheme and > > later again to the

Re: [bug-gnulib] mingw32 and sockets

2005-09-22 Thread Bruno Haible
Simon Josefsson wrote: > Would it be possible to create those three POSIX header files if they > don't exist on the system, and if winsock2.h do exist? The created > files would simply #include . Yes, that's the way I would go. > Creating them would be done > like getopt_.h and others. The comp

Re: regex-0.12's regex.h seems to have a little bug

2005-09-22 Thread Simon Josefsson
Stepan Kasal <[EMAIL PROTECTED]> writes: > Later on, when it was realized that a fix is needed, it was decided to wait > for Autoconf 2.60, instead of converting gnulib back to the old scheme and > later again to the new one. Right, sure. Btw, can I test this now? Is autoconf CVS HEAD sufficie

Re: mingw32 and sockets

2005-09-22 Thread Simon Josefsson
John Vandenberg <[EMAIL PROTECTED]> writes: > On 9/22/05, Simon Josefsson <[EMAIL PROTECTED]> wrote: >> Mingw32 doesn't have sys/types.h, arpa/inet.h or netinet/in.h. But if >> you include winsock2.h instead of those three header files, most (?) >> POSIX socket functions work. > > I doubt that an

Re: mingw32 and sockets

2005-09-22 Thread Simon Josefsson
Paul Eggert <[EMAIL PROTECTED]> writes: > Simon Josefsson <[EMAIL PROTECTED]> writes: > >> Mingw32 doesn't have sys/types.h, > > Ouch. Lots of gnulib code assumes that sys/types.h exists and works. > (The only exception is the socklen module itself.) Sorry, I meant sys/socket.h. __

Re: regex-0.12's regex.h seems to have a little bug

2005-09-22 Thread Stepan Kasal
Hello, On Wed, Sep 21, 2005 at 05:13:24PM +0200, Simon Josefsson wrote: > I think AC_LIBSOURCE probably is > the right solution, but it would have been nice to introduce it after > the autoconf/automake/libtool/m4 releases had happened. [...] > Requiring modern tools for gnulib users is probably >