git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 4/4] Don't link with libsocket in MINGW port

From
Johannes Sixt <j.sixt@eudaptics.com>
Date
May 30, 2007, 12:01 UTC
Message-ID
<465D6796.27B65043@eudaptics.com>
In-Reply-To
<1180492848275-git-send-email-pclouds@gmail.com>
"Nguyễn Thái Ngọc Duy" wrote:
Show 9 quoted lines
> 
> From: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
> 
> There is a check in configure.ac to determine if libc has function
> socket(). It is used to link with libsocket on SunOS.
> 
> On Windows, libc does not have socket() as well but it is provided
> by winsock, not libsocket. So don't link with libsocket if you are
> on Windows.
Show 5 quoted lines
>  ifdef NEEDS_SOCKET
> +ifndef MINGW
>         EXTLIBS += -lsocket
>  endif
> +endif

This looks wrong. NEEDS_SOCKET is set in the architecture sections of Makefile where necessary, but the MinGW section doesn't want it and doesn't set it. If ./configure sets it, then you should fix configure.ac, not work around in Makefile.

-- Hannes
PS: Appologies for the mangled name - this MUA is from the stone age.
Previous: Johannes SchindelinNext: Nguyen Thai Ngoc Duy
Message 3 of 5 in “Re: [PATCH 0/4] Make MINGW port cross-compilable from Linux”
  1. Johannes SixtMay 30, 2007
  2. Johannes SchindelinMay 30, 2007
  3. Johannes SixtMay 30, 2007
  4. Nguyen Thai Ngoc DuyMay 30, 2007
  5. Johannes SchindelinMay 30, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.