rumpkernel / rumprun-packages

Ready-made packages of software for running on the Rumprun unikernel
Other
202 stars 80 forks source link

Error Compiling nginx (libressl): error: 'KERN_ARND' undeclared #150

Open elgcsw opened 5 years ago

elgcsw commented 5 years ago

I am on Ubuntu Linux 16.04.4, and have been trying to compile the nginx package on the Rumprun Kernel, but every attempt shows the same error:

admin@admin-VirtualBox:~/Documents/rumprun-packages/nginx$ make
make: x86_64-rumprun-netbsd-gcc: Command not found
make -C ../libressl
make[1]: Entering directory '/home/admin/Documents/rumprun-packages/libressl'
make[1]: x86_64-rumprun-netbsd-gcc: Command not found
make -C build
make[2]: Entering directory '/home/admin/Documents/rumprun-packages/libressl/build'
Making all in crypto
make[3]: Entering directory '/home/admin/Documents/rumprun-packages/libressl/build/crypto'
  CC       compat/getentropy_netbsd.lo
compat/getentropy_netbsd.c: In function 'getentropy_sysctl':
compat/getentropy_netbsd.c:39:11: error: 'KERN_ARND' undeclared (first use in this function)
  mib[1] = KERN_ARND;
           ^
compat/getentropy_netbsd.c:39:11: note: each undeclared identifier is reported only once for each function it appears in
Makefile:3615: recipe for target 'compat/getentropy_netbsd.lo' failed
make[3]: *** [compat/getentropy_netbsd.lo] Error 1
make[3]: Leaving directory '/home/admin/Documents/rumprun-packages/libressl/build/crypto'
Makefile:452: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/admin/Documents/rumprun-packages/libressl/build'
Makefile:9: recipe for target 'build/libressl' failed
make[1]: *** [build/libressl] Error 2
make[1]: Leaving directory '/home/admin/Documents/rumprun-packages/libressl'
../Makefile.deps:3: recipe for target '/home/admin/Documents/rumprun-packages/pkgs/lib/libssl.a' failed
make: *** [/home/admin/Documents/rumprun-packages/pkgs/lib/libssl.a] Error 2

I have attempted to fix the issue using the results of other bug reports (#149 and #109), but all attempts have failed. I have also tried compiling the python3 package and the same error was triggered. If anyone can figure out how to resolve this issue, your help would be appreciated.

kaveman- commented 5 years ago

is the cross-compiler x86_64-rumprun-netbsd-gcc in PATH?

elgcsw commented 5 years ago

The cross compiler was not in the PATH, but even after it was added to the path, the same error message was sent. However, it did remove the line "make: x86_64-rumprun-netbsd-gcc: Command not found" from the error messages. The main issue was not resolved though. Thank you for noticing the cross compiler issue.

Jksun88 commented 4 years ago

I got the same issue