zsign icon indicating copy to clipboard operation
zsign copied to clipboard

Build instructions for windows fail to include headers

Open s-glatshtein opened this issue 2 years ago • 5 comments

Hello! I am following the build instructions for windows (trying on an Ubuntu 20 machine). I've prepared side-by-side folders of mman-win32, OpenSSL and zsign, and followed the instructions to make them all as stated in readme. When i run the last command to build zsign itself, it fails with these errors:

In file included from archo.cpp:1:
common/common.h:7:10: fatal error: sys/mman.h: No such file or directory
    7 | #include <sys/mman.h>
      |          ^~~~~~~~~~~~
compilation terminated.
In file included from bundle.h:2,
                 from bundle.cpp:1:
common/common.h:7:10: fatal error: sys/mman.h: No such file or directory
    7 | #include <sys/mman.h>
      |          ^~~~~~~~~~~~
compilation terminated.
In file included from macho.cpp:1:
common/common.h:7:10: fatal error: sys/mman.h: No such file or directory
    7 | #include <sys/mman.h>
      |          ^~~~~~~~~~~~
compilation terminated.
In file included from openssl.cpp:1:
common/common.h:7:10: fatal error: sys/mman.h: No such file or directory
    7 | #include <sys/mman.h>
      |          ^~~~~~~~~~~~
compilation terminated.
In file included from signing.cpp:1:
common/common.h:7:10: fatal error: sys/mman.h: No such file or directory
    7 | #include <sys/mman.h>
      |          ^~~~~~~~~~~~
compilation terminated.
In file included from zsign.cpp:1:
common/common.h:7:10: fatal error: sys/mman.h: No such file or directory
    7 | #include <sys/mman.h>
      |          ^~~~~~~~~~~~
compilation terminated.
In file included from common/common.cpp:1:
common/common.h:7:10: fatal error: sys/mman.h: No such file or directory
    7 | #include <sys/mman.h>
      |          ^~~~~~~~~~~~
compilation terminated.

Please help me understand what i'm doing wrong! I copied the command from the readme as-is

s-glatshtein avatar Mar 31 '22 07:03 s-glatshtein

issue #158 might help you with the error above. but i am not sure.

gyke69 avatar Apr 02 '22 12:04 gyke69

Hello. I've managed to compile zsign for windows based on your guide, but running it fails. Checking the even viewer i get this error:

Faulting application name: zsign.exe, version: 0.0.0.0, time stamp: 0x60f69831
Faulting module name: msvcrt.dll, version: 7.0.18362.1, time stamp: 0xf5bdefd7
Exception code: 0xc0000005
Fault offset: 0x000000000005d3ea
Faulting process id: 0x11e8
Faulting application start time: 0x01d84aab7c38d22d
Faulting application path: C:\Folder\zsign.exe
Faulting module path: C:\Windows\System32\msvcrt.dll
Report Id: b7f54893-9450-4074-b913-641cb30703d5
Faulting package full name: 
Faulting package-relative application ID: 

s-glatshtein avatar Apr 07 '22 18:04 s-glatshtein

Hello. I've managed to compile zsign for windows based on your guide, but running it fails.

Checking the even viewer i get this error:


Faulting application name: zsign.exe, version: 0.0.0.0, time stamp: 0x60f69831

Faulting module name: msvcrt.dll, version: 7.0.18362.1, time stamp: 0xf5bdefd7

Exception code: 0xc0000005

Fault offset: 0x000000000005d3ea

Faulting process id: 0x11e8

Faulting application start time: 0x01d84aab7c38d22d

Faulting application path: C:\Folder\zsign.exe

Faulting module path: C:\Windows\System32\msvcrt.dll

Report Id: b7f54893-9450-4074-b913-641cb30703d5

Faulting package full name: 

Faulting package-relative application ID: 

Sorry! i do not know a fix for this one.

gyke69 avatar Apr 10 '22 09:04 gyke69

@s-glatshtein have a look at #250 which is supposed to resolve this crash.

mstrelex avatar Apr 21 '22 19:04 mstrelex

@s-glatshtein a specific issue #251 has been created regarding this crash caused by Segmentation Fault exception. Solution seems to at #250 as @mstrelex has already mentioned above.

mforys avatar Apr 21 '22 22:04 mforys