[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 13:21:16 UTC 2016


#20530: undefined reference to 'munmap' and 'mmap' building tor on Windows
--------------------------------------+------------------------------------
 Reporter:  ice                       |          Owner:
     Type:  defect                    |         Status:  new
 Priority:  Medium                    |      Milestone:  Tor: 0.3.0.x-final
Component:  Core Tor/Tor              |        Version:
 Severity:  Normal                    |     Resolution:
 Keywords:  windows, mingw, backport  |  Actual Points:
Parent ID:                            |         Points:
 Reviewer:                            |        Sponsor:
--------------------------------------+------------------------------------

Comment (by ice):

 My bad. I don't know why I was looking for mmap.h in the configure output.
 Also HAVE_SYS_MMAN_H was not (re)defined in orconfig.h; when you suggested
 I disable it, I understood it to mean undefine it as it was not defined
 there.

 At any rate that mman.h is indeed on my system, but I think it is an
 artifact from the person (or build system) that build the compiler. There
 is no libmman.a on my system and that file must have come from this
 repository: https://github.com/witwall/mman-win32.

 I downloaded it and built the libmman.a and installed it. Edited Makefile
 to link with that libary and then issued "make". And success: building tor
 went without problems.

 Issuing make test however, resulted in 3 fails and 6 skipped tests. I am
 attaching the make test output for reference. If the fails are expected
 then maybe we document all this somewhere. If the fails are a sign of a
 more serious problem, I am open for suggestions.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/20530#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list