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

Re: [PATCH 1/4] MSVC: Fix an "unresolved symbol" linker error on cygwin

From
Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Date
Nov 4, 2009, 19:19 UTC
Message-ID
<4AF1D3A7.2070407@ramsay1.demon.co.uk>
In-Reply-To
<4AEFD9E2.6060004@viscovery.net>
Johannes Sixt wrote:
Show 8 quoted lines
> Ramsay Jones schrieb:
>> When the NO_MMAP build variable is set, which is the case by
>> default on cygwin, the msvc linker complains:
>>
>>     error LNK2001: unresolved external symbol _getpagesize
> 
> Make up your mind: use the cygwin configuration or use the MSVC
> configuration. MSVC doesn't define NO_MMAP for a reason. Where is the problem?

Heh, well as I said elsewhere in this email, the "real problem" is that the MSVC and cygwin configuration sections are not mutually exclusive and that is fixed in patch #3. So, if you apply patch #3, this "problem" disappears.

However, ...
> I understand that you run into this error if you define NO_MMAP in your
> config.mak. I don't know whether we support NO_MMAP as a knob for to tweak
> the builds on all platforms. If this is the case (Junio?), then your
> justification must be updated.

AFAICT, the only build to not support NO_MMAP is MSVC (on cygwin *or* msysGit). The solution was obvious and low impact, so why not remove this anomaly?

(It may even prove to be a useful capability ;-)

ATB, Ramsay Jones

Previous: Junio C HamanoNext: Johannes Sixt
Message 7 of 8 in “MSVC: Fix an "unresolved symbol" linker error on cygwin”
  1. 1/4 MSVC: Fix an "unresolved symbol" linker error on cygwinRamsay Jones, Oct 27, 2009
  2. Johannes SixtNov 3, 2009
  3. Junio C HamanoNov 3, 2009
  4. Ramsay JonesNov 4, 2009
  5. Johannes SixtNov 5, 2009
  6. Junio C HamanoNov 5, 2009
  7. Ramsay JonesNov 4, 2009
  8. Johannes SixtNov 5, 2009

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.