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 10-30-23 02:27
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

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
11-23-21 15:42 nam New Issue
11-06-22 22:46 PhyllisWeiner Note Added: 0007118
12-16-22 00:26 otis jame Note Added: 0007130
04-13-23 01:25 cubero Note Added: 0007157
05-18-23 01:11 mike34 Note Added: 0007166
05-18-23 20:10 melonscost Note Added: 0007170
07-12-23 23:42 huntshaded Note Added: 0007200
08-23-23 03:07 celinedion Note Added: 0007236
08-23-23 19:29 annata20 Note Added: 0007237
08-30-23 20:00 walterwhite Note Added: 0007246
10-10-23 00:02 shari lamb Note Added: 0007276
10-30-23 02:27 michaelarrington Note Added: 0007301
11-14-23 17:20 ferg Note Deleted: 0007118
11-14-23 17:20 ferg Note Deleted: 0007276
11-14-23 17:20 ferg Note Deleted: 0007170
11-14-23 17:21 ferg Note Deleted: 0007130
11-14-23 17:21 ferg Note Deleted: 0007157
11-14-23 17:21 ferg Note Deleted: 0007166
11-14-23 17:21 ferg Note Deleted: 0007200
11-14-23 17:21 ferg Note Deleted: 0007236
11-14-23 17:21 ferg Note Deleted: 0007237
11-14-23 17:21 ferg Note Deleted: 0007246
11-14-23 17:21 ferg Note Deleted: 0007301


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