FixBrowser

Forum: General Discussion: Build fails in OpenBSD

Alex
2024/12/25 12:32
fixscript.c:19451:70: error: 'MREMAP_MAYMOVE' undeclared (first use in this function)
new_code = mremap(heap->jit_code, heap->jit_code_cap, new_cap, MREMAP_MAYMOVE);
jezek2
2024/12/26 15:16
It appears that you're trying to compile it with JIT enabled (it is not currently used in FixBrowser as it has only very little benefits while eating unnecessary extra RAM).

Make sure to include the -DFIXSCRIPT_NO_JIT parameter to gcc/clang. The provided compile.sh script should already include it.

Of course it's possible that you'll run into other issues, I haven't tested it on BSD yet.
Alex
2024/12/27 12:17
Thanks, I was able to get past that error by editing the build script like this:

gcc -DFIXSCRIPT_NO_JIT -Wall -O3 -o fixembed fixembed.c -lm

Unfortunately later this happens:

fixio.c: In function 'native_process_create':
fixio.c:8494:10: error: 'environ' undeclared (first use in this function)
environ = NULL;
^~~~~~~


Reply

Name:
Content:
Confirmation code:
 
  (type the letters shown in the picture)
 

The website was designed for modern browsers and IE4+.