debian wheeze nginx compile error - ruby-on-rails

I am using rvm in debian wheeze, i want to run rails with passenger, and i get error on nginx standalone core compile. I am using ruby 1.9.2 and i have install in my system the proper libs.
src/core/ngx_resolver.c: In function ‘ngx_resolver_process_ptr’:
src/core/ngx_resolver.c:1425:43: error: variable ‘qclass’ set but not used [- Werror=unused-but-set-variable]
src/core/ngx_resolver.c:1425:36: error: variable ‘qtype’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[1]: *** [objs/src/core/ngx_resolver.o] Error 1
make[1]: Leaving directory `/tmp/miza-passenger-standalone-1133/nginx-1.0.0'
make: *** [build] Error 2

Related

SWUpdate building error in yocto. make[1]: *** [swupdate_unstripped] Error 1 , make: *** [sub-make] Error 2

I am building custom image in yocto and I want to include SWUpdate in my image but while building the image I am getting a build error of make[1]: *** [swupdate_unstripped] Error 1 and make: *** [sub-make] Error 2 below are the log messages
/swupdate/2021.04-r0/recipe-sysroot/usr/lib/liblua5.1.a(loadlib.o): undefined reference to symbol 'dlsym##GLIBC_2.17'
/swupdate/2021.04-r0/recipe-sysroot/lib/libdl.so.2: error adding symbols: DSO missing from command line
/swupdate/2021.04-r0/git/Makefile:421: recipe for target 'swupdate_unstripped' failed
I searched the internet about the error I am getting, and according to it if u-boot version and swupdate version are not compatible then the following error occures. But in my case both the swupdate is at its latest verson and even u-boot is at latest version.
I added meta-swupdate in bblayers.config and added swupdate, swupdate-www in IMAGE_INSTALL to add the swupdate in image.

Install Erlang with asdf on Mac M1 monterrey fails

I tried to install Erlang 25.0.3 with asdf on a Monterrey mac M1, with the following command:
KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix openssl#1.1)" asdf install erlang latest
It fails with the following error message:
Build failed.
=== Leaving application mnesia
=== Entering application crypto
make[3]: Nothing to be done for `opt'.
MAKE opt
make[4]: aarch64-apple-darwin21.2.0/Makefile: No such file or directory
make[4]: *** No rule to make target `aarch64-apple-darwin21.2.0/Makefile'. Stop.
make[3]: *** [opt] Error 2
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [libs] Error 2
Is there a specific configuration to adapt to mac M1 ?
I finally got it working. I booted my M1 with a time machine backup from a macbook pro intel and you need to reinstall homebrew. I followed these instructions on Github and it worked:
https://github.com/asdf-vm/asdf-erlang/issues/207#issuecomment-883216342
I had to run directly
KERL_CONFIGURE_OPTIONS="--with-ssl=`brew --prefix openssl` --without-javac --disable-debug" asdf install erlang 25.0.3
instead of putting it in the .zshrc

ACE Library in Ubuntu 20.04

I am trying to build ACE 6.4.8 under Ubuntu 20.04.
I get the following message
/ACE_wrappers/ace/os_include/os_stropts.h:56:17: fatal error: stropts.h: No such file or directory
56 | # include /**/ <stropts.h>
| ^~~~~~~~~~~
compilation terminated.
make[1]: *** [/home/ap1/Projects/ACE_wrappers/include/makeinclude/rules.local.GNU:189: .shobj/ACE.o] Error 1
make[1]: Leaving directory '/home/ap1/Projects/ACE_wrappers_6_4_8/ace'
make: *** [GNUmakefile:777: ACE] Error 2
My understanding is stropts.h header file are part of the posix C lbrary and have been removed from glibc.
Is there any work around here to compile ACE properly?
This is due to changes in Ubuntu 20.04 which is recent, the ACE version you are using is old. Please upgrade to ACE 6.5.9 which you can download from github, that includes the necessary fix.

Failed OpenCV install unable to uninstall

While installing opencv_contrib (during make -j5 step), my laptop went to sleep and gave errors on the install, failing with a fatal error.
Retrying make -j5 gave the same error again. trying to uninstall opencv completely using make uninstall also completely fails with a fatal error.
How do I do a fresh install of OpenCV from here?
Error on running make uninstall:
-- Uninstalling "/usr/local/include/opencv2/cvconfig.h"
CMake Error at cmake_uninstall.cmake:20 (MESSAGE):
Problem when removing "/usr/local/include/opencv2/cvconfig.h"
CMakeFiles/uninstall.dir/build.make:57: recipe for target
'CMakeFiles/uninstall' failed
make[3]: *** [CMakeFiles/uninstall] Error 1
CMakeFiles/Makefile2:296: recipe for target
'CMakeFiles/uninstall.dir/all' failed
make[2]: *** [CMakeFiles/uninstall.dir/all] Error 2
CMakeFiles/Makefile2:303: recipe for target
'CMakeFiles/uninstall.dir/rule' failed
make[1]: *** [CMakeFiles/uninstall.dir/rule] Error 2
Makefile:234: recipe for target 'uninstall' failed
make: *** [uninstall] Error 2
You should try make clean and try to uninstall again. Also you should restart from previous steps for opencv installing
You can't directly delete files from usr/local/...etc so you try giving sudo make uninstall it will work fine!

Compiling Fsharp with Mono Amazon EC2

When I try to compile F# in a standard way :
./autogen.sh --prefix=/opt/mono && make && make install
it fails with:
ilwrite: TIME 35.286 (total) 0.000 (delta) - Build String/Blob Address Tables
make[3]: *** [.libs/proto//4.0/FSharp.Compiler-proto.dll] Killed
make[3]: *** Deleting file .libs/proto//4.0/FSharp.Compiler-proto.dll
make[3]: Leaving directory /src/fsharp/src/fsharp/FSharp.Compiler-proto
make[2]: *** [do-proto] Error 2
make[2]: Leaving directory /src/fsharp/src/fsharp
make[1]: *** [all] Error 2
make[1]: Leaving directory /src/fsharp/src/fsharp
make: *** [all] Error 2
I have mono 3.11 from git master installed on my EC2 instance.
Thank you!
I've successfully compiled F# with m1.small instance and switched back to t1.micro in order to to do this you should:
1 upgrade your currently running instance with larger RAM
1.1 login to aws console
1.1.0 navigate to EC2 service
1.1.1 choose instances
1.1.1 check instance you want fsharp to be compiled on
1.1.2 click actions
1.1.3 stop instance
1.2 change instance type ( m1.small instance with 1.7 GB is enough )
1.3 boot your pumped instance (do not forget to reassign elastic IP when instance booted)
2 compile and install F# with $ ./autogen.sh --prefix=<YOUR_PREFIX> && make && as sudo make install

Resources