#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 _______________________________________________ tor-bugs mailing list tor-bugs@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs