Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006450 [Resin] minor always 11-23-21 15:42 11-06-22 22:46
Reporter nam View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version 4.0.65
Summary 0006450: unable to compile on M1 Mac with missing jni_md.h include
Description (rep by L. Vivono)

The version that I’mm trying to compile is: 4.0.61

And this is the error:

make[1]: Entering directory '/resin-4.0.61/modules/c/src'
for dir in common resin_os ; do (cd $dir; make); done
make[2]: Entering directory '/resin-4.0.61/modules/c/src/common'
gcc -c -I/usr/include -g -O2 -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DPOLL -DHAS_JVMTI -fpic stream.c
stream.c: In function ‘select_host’:
stream.c:1595:40: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 1595 | srand(65521 * time(0) + getpid() + (int) cluster);
      | ^
gcc -c -I/usr/include -g -O2 -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DPOLL -DHAS_JVMTI -fpic config.c
gcc -c -I/usr/include -g -O2 -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DPOLL -DHAS_JVMTI -fpic memory.c
memory.c: In function ‘cse_free_pool’:
memory.c:126:5: warning: implicit declaration of function ‘cse_free’; did you mean ‘cse_write’? [-Wimplicit-function-declaration]
  126 | cse_free(ptr->buffer);
      | ^~~~~~~~
      | cse_write
/resin-4.0.61/libtool --silent --mode=compile gcc -o stream.lo -c -I/usr/include -g -O2 -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DPOLL -DHAS_JVMTI -fpic stream.c
stream.c: In function ‘select_host’:
stream.c:1595:40: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 1595 | srand(65521 * time(0) + getpid() + (int) cluster);
      | ^
/resin-4.0.61/libtool --silent --mode=compile gcc -o config.lo -c -I/usr/include -g -O2 -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DPOLL -DHAS_JVMTI -fpic config.c
/resin-4.0.61/libtool --silent --mode=compile gcc -o memory.lo -c -I/usr/include -g -O2 -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DPOLL -DHAS_JVMTI -fpic memory.c
memory.c: In function ‘cse_free_pool’:
memory.c:126:5: warning: implicit declaration of function ‘cse_free’; did you mean ‘cse_write’? [-Wimplicit-function-declaration]
  126 | cse_free(ptr->buffer);
      | ^~~~~~~~
      | cse_write
make[2]: Leaving directory '/resin-4.0.61/modules/c/src/common'
make[2]: Entering directory '/resin-4.0.61/modules/c/src/resin_os'
gcc -g -O2 -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DPOLL -DHAS_JVMTI -DRESIN_HOME=\"/usr/local/share/resin\" -I/usr/include -I/usr/local/openjdk-11/include -I../common -DCPU=\"arm\" -DOS= -c -o boot.o boot.c
In file included from boot.c:32:
/usr/local/openjdk-11/include/jni.h:45:10: fatal error: jni_md.h: No such file or directory
   45 | #include "jni_md.h"
      | ^~~~~~~~~~
compilation terminated.
make[2]: *** [<builtin>: boot.o] Error 1
make[2]: Leaving directory '/resin-4.0.61/modules/c/src/resin_os'
make[1]: *** [Makefile:9: plugins] Error 2
make[1]: Leaving directory '/resin-4.0.61/modules/c/src'
make: *** [Makefile:716: all] Error 2
Additional Information
Attached Files

- Relationships

- Notes
(0007118)
PhyllisWeiner
11-06-22 22:46

Enter the code as it is shown in the https://gas-stationsnearme.com/chevron/ [^] box on the right: On completion of this form and verification of your answers.
 

- Issue History
Date Modified Username Field Change
11-23-21 15:42 nam New Issue
11-06-22 22:46 PhyllisWeiner Note Added: 0007118


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker