Re: module libposix (was: module gethostname)

2010-09-16 Thread Bruce Korb
Hi Bruno, On Wed, Sep 15, 2010 at 11:18 AM, Bruno Haible br...@clisp.org wrote: Have you tried to follow the approach of  http://www.gnu.org/software/gnulib/manual/html_node/POSIX-Substitutes-Library.html? I haven't, but I would like to hear about success or problems that you encounter. 1.

Re: module libposix (was: module gethostname)

2010-09-16 Thread Ralf Wildenhues
Hi Bruce, * Bruce Korb wrote on Thu, Sep 16, 2010 at 08:00:46PM CEST: 3. config.h needs to be installed. Now, where was that name munger for the config.h header Thinking of AX_PREFIX_CONFIG_H from the Autoconf Macro Archive? BTW, that currently has a PR (with patch) open against it,

Re: module gethostname

2010-09-16 Thread Sam Steingold
Bruno Haible wrote: I am now getting undefined reference to `_gethostname_used_without_requesting_gnulib_module_gethostname' This indicates that you have included gnulib unistd.h, are using gethostname(), and have not asked for the gnulib module 'gethostname'. - If you want to use a POSIX

module gethostname

2010-09-15 Thread Sam Steingold
The only problem which gethostname module fixes is: On mingw, this function has a prototype that differs from that specified by POSIX, and it is defined only in the ws2_32 library. why does it have such extensive dependencies? (sockets! errno!) I have to reiterate my complaint that the gnulib

Re: module gethostname

2010-09-15 Thread Bruce Korb
On Wed, Sep 15, 2010 at 9:34 AM, Paul Eggert egg...@cs.ucla.edu wrote: On 09/15/2010 08:41 AM, Sam Steingold wrote: I have to reiterate my complaint that the gnulib dependencies mean that one has to include (almost) the whole of gnulib if one includes (almost) any part thereof. I agree

Re: module gethostname

2010-09-15 Thread Ralf Wildenhues
Hi Bruce, * Bruce Korb wrote on Wed, Sep 15, 2010 at 07:01:11PM CEST: So, let's start that discussion again: let's make an installable gnulib that basically does all the configure tests for the current target and cover 99% of all configure runs. How about a config.site file? Cheers, Ralf

Re: module gethostname

2010-09-15 Thread Bruce Korb
On Wed, Sep 15, 2010 at 10:04 AM, Ralf Wildenhues ralf.wildenh...@gmx.de wrote: Hi Bruce, * Bruce Korb wrote on Wed, Sep 15, 2010 at 07:01:11PM CEST: So, let's start that discussion again:  let's make an installable gnulib that basically does all the configure tests for the current target

Re: module gethostname

2010-09-15 Thread Dustin J. Mitchell
On Wed, Sep 15, 2010 at 12:01 PM, Bruce Korb bk...@gnu.org wrote: So, let's start that discussion again:  let's make an installable gnulib that basically does all the configure tests for the current target and cover 99% of all configure runs.  If someone has a strange configuration with extra

Re: module gethostname

2010-09-15 Thread Bruno Haible
EWOULDBLOCK in errno.h. I am now getting undefined reference to `_gethostname_used_without_requesting_gnulib_module_gethostname' This indicates that you have included gnulib unistd.h, are using gethostname(), and have not asked for the gnulib module 'gethostname'. - If you want to use

Re: module gethostname

2010-09-15 Thread Bruno Haible
Bruce, Once upon a time, long ago and far away, I proposed a new library, libcompat that more-or-less would make all target platforms look pretty much identical. Lo and behold, over the past decade, gnulib has gradually grown up to provide all that infrastructure. The only problem with it

Re: module libposix (was: module gethostname)

2010-09-15 Thread Bruce Korb
Hi Bruno, On Wed, Sep 15, 2010 at 11:18 AM, Bruno Haible br...@clisp.org wrote: Have you tried to follow the approach of  http://www.gnu.org/software/gnulib/manual/html_node/POSIX-Substitutes-Library.html? I haven't, but I would like to hear about success or problems that you encounter.