bug-gnulib
[Top][All Lists]
Advanced

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

Re: module gethostname


From: Bruno Haible
Subject: Re: module gethostname
Date: Thu, 16 Sep 2010 23:13:52 +0200
User-agent: KMail/1.9.9

Sam,

> 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).

> 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?

Bruno



reply via email to

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