bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: module gethostname


From: Sam Steingold
Subject: Re: module gethostname
Date: Thu, 16 Sep 2010 19:34:11 -0400

Bruno,

On Thu, Sep 16, 2010 at 5:13 PM, Bruno Haible <address@hidden> wrote:
>> now I get a linking error:
>>
>> Warning: resolving _gethostname by linking to address@hidden
>> Use --enable-stdcall-fixup to disable these warnings
>> Use --disable-stdcall-fixup to disable these fixups
>> libgnu_cl.a(sockets.o): In function `close_fd_maybe_socket':
>> /cygdrive/c/sds/dev/current/build-mingw-O-2/gllib/../../src/gllib/sockets.c:44:
>> undefined reference to address@hidden'
>> collect2: ld returned 1 exit status
>
> Looks like you need to link with $(LIBSOCKET). I mean, if you want to call
> address@hidden, you need to call gl_sockets_startup first, and this function
> sits in sockets.c and requires linking with $(LIBSOCKET).

LIBSOCKET is -lws2_32 and it is present in the command line generating
the above error.

>> curiously, this happens only when I link the base linking set; the boot 
>> linking
>> set is created just fine
>
> Hmm? clisp's socket.d also needs linking with -lws2_32 on mingw, no?

that's the conundrum...

-- 
Sam Steingold <http://sds.podval.org>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]