"make check" fails when installing HDF5 - linux

I downloaded hdf5-1.8.15-patch1.tar.bz2, and tried to install it on my Ubuntu, with this command:
CC=mpicc ./configure --enable-parallel --enable-shared
make
make check
yet during make check, I got this error:
***** 1 FAILURE! *****
Command exited with non-zero status 1
0.78user 0.08system 0:00.86elapsed 100%CPU (0avgtext+0avgdata 10216maxresident)k
0inputs+1224outputs (0major+51752minor)pagefaults 0swaps
make[4]: *** [dt_arith.chkexe_] Error 1
make[4]: Leaving directory `/home/ubuntu/tools/hdf5-1.8.15-patch1/test'
make[3]: *** [build-check-s] Error 2
make[3]: Leaving directory `/home/ubuntu/tools/hdf5-1.8.15-patch1/test'
make[2]: *** [test] Error 2
make[2]: Leaving directory `/home/ubuntu/tools/hdf5-1.8.15-patch1/test'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/home/ubuntu/tools/hdf5-1.8.15-patch1/test'
make: *** [check-recursive] Error 1
this is my 'uname -a' and 'gcc -v':
uname -a
Linux ip-172-31-23-30 3.13.0-29-generic #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
gcc -v
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)

It seems worth trying with lower optimizations flags (-O1 or -O0) following previous issues:
https://support.hdfgroup.org/HDF5/release/known_problems/previssues.html

Related

undefined reference to `crypt' : apache2 manually install error on imx8mqevk

I am using an iMX8MQ EVK board with Linux. I want to install the apache2 server and MySQL database from the source. Started installing apache2 using this
Here is the Linux version:
root#imx8mqevk:~# cat /etc/os-release
ID=fsl-imx-wayland
NAME="NXP i.MX Release Distro"
VERSION="5.10-hardknott (hardknott)"
VERSION_ID=5.10-hardknott
PRETTY_NAME="NXP i.MX Release Distro 5.10-hardknott (hardknott)"
Here is the output of configure
Facing issue with make as crypto is not found. I am not able to resolve the issue.
I have tried installing glibc but the issue is not resolved.
make error
Making all in support
make[1]: Entering directory '/home/root/httpd-2.4.53/support'
make[2]: Entering directory '/home/root/httpd-2.4.53/support'
/usr/local/apr/build-1/libtool --silent --mode=link gcc -g -O2 -pthread -o htpasswd htpasswd.lo passwd_common.lo /usr/local/apr/lib/libaprutil-1.la -lexpat /usr/local/apr/lib/libapr-1.la -lrt -lpthread -ldl
/usr/lib/gcc/aarch64-poky-linux/10.2.0/../../../../aarch64-poky-linux/bin/ld: passwd_common.o: in function `mkhash':
/home/root/httpd-2.4.53/support/passwd_common.c:228: undefined reference to `crypt'
/usr/lib/gcc/aarch64-poky-linux/10.2.0/../../../../aarch64-poky-linux/bin/ld: /home/root/httpd-2.4.53/support/passwd_common.c:240: undefined reference to `crypt'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:48: htpasswd] Error 1
make[2]: Leaving directory '/home/root/httpd-2.4.53/support'
make[1]: *** [/home/root/httpd-2.4.53/build/rules.mk:75: all-recursive] Error 1
make[1]: Leaving directory '/home/root/httpd-2.4.53/support'
make: *** [/home/root/httpd-2.4.53/build/rules.mk:75: all-recursive] Error 1

Unable to build and install binutils in Kali linux

I was trying to install OS 161 KALI LINUX version 2020.3 64bit. The first step was to build and install binutils.
The procedure I followed is shown in this .
I configured the binutils and got this output https://pastebin.com/iXjFq3Zu but upon running i got the make command i got the following errors https://pastebin.com/DYSBdUqq .
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:2551: as-new] Error 1
make[4]: Leaving directory '/home/digzsudi/Downloads/binutils-2.17+os161-2.0.1/gas'
make[3]: *** [Makefile:2596: all-recursive] Error 1
make[3]: Leaving directory '/home/digzsudi/Downloads/binutils-2.17+os161-2.0.1/gas'
make[2]: *** [Makefile:2482: all] Error 2
make[2]: Leaving directory '/home/digzsudi/Downloads/binutils-2.17+os161-2.0.1/gas'
make[1]: *** [Makefile:4860: all-gas] Error 2
make[1]: Leaving directory '/home/digzsudi/Downloads/binutils-2.17+os161-2.0.1'
make: *** [Makefile:627: all] Error 2
root#kali:/home/digzsudi/Downloads/binutils-2.17+os161-2.0.1#

How to enable apache-http/2 in centos 7?

I have followed the below link for enabling http/2 in centos-7 apache.
https://www.tunetheweb.com/performance/http2/
My openssl version :
# openssl version
OpenSSL 1.1.0f 25 May 2017
While installing latest apr-util and apache(httpd-2.4.27)
below errors occurred on make command
Inside the apr-util folder :
# make
make[1]: Entering directory `/usr/local/src/apr-util-1.6.0'
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/local/src/apr-util-1.6.0/incl
ude -I/usr/local/src/apr-util-1.6.0/include/private -I/usr/local/apr/include/apr-1 -o xml/apr_xml.lo -c xml/apr_xml.c && touch xml/apr_xml.lo
xml/apr_xml.c:35:19: fatal error: expat.h: No such file or directory
#include <expat.h>
^
compilation terminated.
make[1]: *** [xml/apr_xml.lo] Error 1
make[1]: Leaving directory `/usr/local/src/apr-util-1.6.0'
make: *** [all-recursive] Error 1
Inside the httpd folder :
#make
Making all in srclib
make[1]: Entering directory `/usr/local/src/httpd-2.4.27/srclib'
Making all in apr
make[2]: Entering directory `/usr/local/src/httpd-2.4.27/srclib/apr'
make[3]: Entering directory `/usr/local/src/httpd-2.4.27/srclib/apr'
make[3]: Nothing to be done for `local-all'.
make[3]: Leaving directory `/usr/local/src/httpd-2.4.27/srclib/apr'
make[2]: Leaving directory `/usr/local/src/httpd-2.4.27/srclib/apr'
Making all in apr-util
make[2]: Entering directory `/usr/local/src/httpd-2.4.27/srclib/apr-util'
make[3]: Entering directory `/usr/local/src/httpd-2.4.27/srclib/apr-util'
/bin/sh /usr/local/src/httpd-2.4.27/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/local/src/htt
pd-2.4.27/srclib/apr-util/include -I/usr/local/src/httpd-2.4.27/srclib/apr-util/include/private -I/usr/local/src/httpd-2.4.27/srclib/apr/include -o xml/apr_xml.lo -c xml/a
pr_xml.c && touch xml/apr_xml.lo
xml/apr_xml.c:35:19: fatal error: expat.h: No such file or directory
#include <expat.h>
^
compilation terminated.
make[3]: *** [xml/apr_xml.lo] Error 1
make[3]: Leaving directory `/usr/local/src/httpd-2.4.27/srclib/apr-util'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/httpd-2.4.27/srclib/apr-util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/httpd-2.4.27/srclib'
make: *** [all-recursive] Error 1
I would suggest to install ready to use package from https://codeit.guru/en_US/2017/10/apache-httpd-2-4-28-built-against-openssl-1-0-2l-with-http2-for-red-hat-enterprise-linux-and-centos/
Alternatively, you can recompile it from SRPM provided by Fedora or CodeIT (the same one with changed defaults and openssl paths):
rpmbuild -ba ~/rpmbuild/SPECS/httpd.spec
#nos was correct and this needed yum install expat-devel and a few other dependencies I already had installed.
I've updated the blog post now to reflect this. Feel free to reach out to me if you've any other issues on this.
Now is available repo from codeit.guru for CentOS 7, it can be enabled:
cd /etc/yum.repos.d && wget https://repo.codeit.guru/codeit.el`rpm -q --qf "%{VERSION}" $(rpm -q --whatprovides redhat-release)`.repo
If apache is already installed, yum update will update apache, it even enables mod_http2.
Otherwise, fresh installation of apache can be done.
Put Protocols h2 http/1.1 within ssl.conf as Mozilla suggests
Restart apache, http/2 is ready.

Error when install GTK+ 3.0.5 on CentOS

Got below error when installing gtk+-3.0.5 from source code on CentOS Linux release 7.1.1503.
Error msg:
/usr/bin/ld: queryimmodules.o: undefined reference to symbol
'g_module_close' /usr/bin/ld: note: 'g_module_close' is defined in DSO
/lib64/libgmodule-2.0.so.0 so try adding it to the linker command line
/lib64/libgmodule-2.0.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
Environment:
[root#localhost gtk+-3.0.5]# cat /etc/*release CentOS Linux release
7.1.1503 (Core)
CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"
CentOS Linux release 7.1.1503 (Core) CentOS Linux release 7.1.1503
(Core)
[root#localhost gtk+-3.0.5]# uname -a Linux localhost.localdomain
3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
https://developer.gnome.org/gtk3/stable/gtk-building.html
./configure --prefix=/opt/gtk
GTK+ 3.0.5
GDK backends: x11 X11 extensions: XKB XI2 XFIXES DAMAGE
Print backends: file lpr Dynamic modules: yes Included
immodules: none PackageKit support: yes Introspection: no
Debugging: minimum Documentation: no
Make
... CCLD libgtk-3.la CC queryimmodules.o CCLD
gtk-query-immodules-3.0 /usr/bin/ld: queryimmodules.o: undefined
reference to symbol 'g_module_close' /usr/bin/ld: note:
'g_module_close' is defined in DSO /lib64/libgmodule-2.0.so.0 so try
adding it to the linker command line /lib64/libgmodule-2.0.so.0: could
not read symbols: Invalid operation collect2: error: ld returned 1
exit status make[4]: * [gtk-query-immodules-3.0] Error 1 make[4]:
Leaving directory /root/gtk/gtk+-3.0.5/gtk' make[3]: ***
[all-recursive] Error 1 make[3]: Leaving directory
/root/gtk/gtk+-3.0.5/gtk' make[2]: * [all] Error 2 make[2]: Leaving
directory /root/gtk/gtk+-3.0.5/gtk' make[1]: *** [all-recursive]
Error 1 make[1]: Leaving directory/root/gtk/gtk+-3.0.5' make: ***
[all] Error 2
# yum install gtk3-devel ... will provide version -3.8.8-10.el7
? Why do you want to use an old version ? Time stamp = 23 March 2011 !

erlang installation hipe issue on centos 6.7 - linux

I am trying to install ejabberd server. For that i am trying to install ERL depencies.
wget http://www.erlang.org/download/otp_src_18.1.tar.gz
tar -xzvf otp_src_18.1.tar.gz
cd otp_src_18.1
./configure
make
With above command give me below error in make i am not able to figured out how it would be solved. I have tried with ./configure --disabled-hipe also but still i am facing issue with it.
=== Entering application hipe
make[3]: Entering directory `/etc/ejabberd_downloads/otp_src_18.1/lib/hipe/misc'
ERLC ../ebin/hipe_consttab.beam
Crash dump is being written to: erl_crash.dump...done
Failed to create aux thread
/bin/sh: line 1: 6098 Aborted erlc -W +debug_info +warn_exported_vars +warn_missing_spec +warn_untyped_record -o../ebin hipe_consttab.erl
make[3]: *** [../ebin/hipe_consttab.beam] Error 134
make[3]: Leaving directory `/etc/ejabberd_downloads/otp_src_18.1/lib/hipe/misc'
make[2]: *** [opt] Error 2
make[2]: Leaving directory `/etc/ejabberd_downloads/otp_src_18.1/lib/hipe'
make[1]: *** [opt] Error 2
make[1]: Leaving directory `/etc/ejabberd_downloads/otp_src_18.1/lib'
make: *** [secondary_bootstrap_build] Error 2
erl_crash.dump top lines are as below:
=erl_crash_dump:0.3
Thu Nov 19 00:27:29 2015
Slogan: Failed to create aux thread
System version: Erlang/OTP 18 [erts-7.1] [source-2882b0c] [64-bit] [smp:53:24] [async-threads:10] [hipe] [kernel-poll:false]
Compiled: Wed Sep 23 15:34:00 2015
Taints:
Atoms: 2005
Calling Thread: beam.smp
=scheduler:1
I am newbie with this one. Please help me.

Resources