[tor-bugs] #20530 [Core Tor/Tor]: undefined reference to 'munmap' and 'mmap' building tor on Windows
Tor Bug Tracker & Wiki
blackhole at torproject.org
Wed Nov 2 11:47:44 UTC 2016
#20530: undefined reference to 'munmap' and 'mmap' building tor on Windows
----------------------------+---------------------
Reporter: ice | Owner:
Type: defect | Status: new
Priority: Medium | Milestone:
Component: Core Tor/Tor | Version:
Severity: Normal | Resolution:
Keywords: windows, mingw | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
----------------------------+---------------------
Comment (by teor):
Ok, your configure output says:
{{{
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
}}}
https://trac.torproject.org/projects/tor/attachment/ticket/20530
/configure-output.txt#L264
This is why HAVE_SYS_MMAN_H gets redefined in orconfig.h every time you
run configure.
(If the header did not exist, tor would not try to use the functions in
it.)
If you want to try rebuilding without HAVE_SYS_MMAN_H:
Disable it in orconfig.h and then '''do not run configure,''' just run
make.
If this works, we can fix the order of the alternatives in compat.c so
that we check for WIN32 first, then HAVE_SYS_MMAN_H.
If you want to try rebuilding with HAVE_SYS_MMAN_H:
What are the contents of sys/mman.h on your machine?
Does it contain mmap, munmap, or getpagesize?
If you want to try building with dlmalloc, that could be a bit harder.
Do you have dlmalloc installed? dlmalloc.c or dlmalloc.h?
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/20530#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list