Error when install GTK+ 3.0.5 on CentOS - linux

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 !

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 install gobject-introspection - symbol lookup error: and undefined symbol: g_unicode_type_get_type

Unable to install gobject-introspection - symbol lookup error: and undefined symbol: g_unicode_type_get_type
I tried to compile Gtk4, and download gobject-introspection 1.30, 1.40, 1.50, 1.64.1. All failed with the same exact error except the last one that produced another error.
Errors for gobject-introspection 1.30, 1.40, 1.50,
CCLD _giscanner.la
ar: `u' modifier ignored since `D' is the default (see `U')
CC g_ir_compiler-compiler.o
CCLD g-ir-compiler
CC g_ir_generate-generate.o
CCLD g-ir-generate
CC g_ir_inspect-g-ir-inspect.o
CCLD g-ir-inspect
CC gi_dump_types-gdump.o
CC gi_dump_types-gi-dump-types.o
CCLD gi-dump-types
CC glib_print-glib-print.o
CCLD glib-print
GEN g-ir-scanner
GEN g-ir-annotation-tool
GEN g-ir-doc-tool
GISCAN GLib-2.0.gir
g-ir-scanner: GLib: warning: 736 warnings suppressed (use --warn-all to see them)
GISCAN GObject-2.0.gir
/home/elias/Downloads/gobject-introspection-1.50.0/tmp-introspectCppLzz/GObject-2.0: symbol lookup error: /home/elias/Downloads/gobject-introspection-1.50.0/tmp-introspectCppLzz/GObject-2.0: undefined symbol: g_unicode_type_get_type
Command '[u'/home/elias/Downloads/gobject-introspection-1.50.0/tmp-introspectCppLzz/GObject-2.0', u'--introspect-dump=/home/elias/Downloads/gobject-introspection-1.50.0/tmp-introspectCppLzz/functions.txt,/home/elias/Downloads/gobject-introspection-1.50.0/tmp-introspectCppLzz/dump.xml']' returned non-zero exit status 127
Makefile:3520: recipe for target 'GObject-2.0.gir' failed
make[2]: *** [GObject-2.0.gir] Error 1
make[2]: Leaving directory '/home/elias/Downloads/gobject-introspection-1.50.0'
Makefile:2810: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/elias/Downloads/gobject-introspection-1.50.0'
Makefile:1570: recipe for target 'all' failed
make: *** [all] Error 2
I solved that problem finding the solution here:
You're probably missing the development package. The package name
varies by distribution, but it's the one containing
/usr/lib/pkgconfig/gobject-introspection-1.0.pc (or
/usr/lib64/pkgconfig/gobject-introspection-1.0.pc for some 64-bit
distros):
Fedora, CentOS, RHEL, etc.: gobject-introspection-devel
Debian,Ubuntu, Mint, etc.: libgirepository1.0-dev Arch: gobject-introspection
FreeBSD: gobject-introspection
Cygwin: libgirepository1.0-devel msys2:
mingw-w64-x86_64-gobject-introspection and/or mingw-w64-i686-gobject-introspection

"make check" fails when installing HDF5

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

How can I solve the error while compiling the linux kernel 2.6.32.8

while I was compiling the 2.6.32.8 linux kernel,I got the error message like this:
In file included from drivers/net/igbvf/ethtool.c:36:0:
drivers/net/igbvf/igbvf.h: At top level:
drivers/net/igbvf/igbvf.h:128:15: error: duplicate member ‘page’
make[3]: *** [drivers/net/igbvf/ethtool.o] Error 1
make[2]: *** [drivers/net/igbvf] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
My version of gcc is 4.6.3 and I am using Ubuntu linux (the kernel I am using is 3.2.0.30).I've tried for times but failed,please help!
I've got it done ... or to be exact,I avoided it.
I changed the kernel to be compiled and I changed the version of ubuntu.the kernel 2.6.38.4 can be compiled under ubuntu 10.04 with the kernel 2.6.32 and the gcc 4.4.3

Error when compiling sphinxbase in cygwin

I tried to install sphinxbase on my Windows 7 using Cygwin for running pocketsphinx android demo.
But I got the following error after executing make:
gcc -shared -Wl,--enable-auto-image-base build/temp.cygwin-1.7.11-i686-2.6/sphinxbase.o -L../src/libsphinxbase/.libs -L/usr/lib/python2.6/config -lsphinxbase -liconv -lpython2.6 -o build/lib.cygwin-1.7.11-i686-2.6/sphinxbase.dll
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: cannot find -liconv
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
Makefile:471: recipe for target `pymod-build-stamp' failed
make[1]: *** [pymod-build-stamp] Error 1
make[1]: Leaving directory `/cygdrive/c/psph/sphinxbase/python'
Makefile:330: recipe for target `all-recursive' failed
make: *** [all-recursive] Error 1.
I visited the link http://www.cs.columbia.edu/~ecooper/CS4706/ps-cygwin.html and followed the steps, but to the same result.
I have used pocketsphinx-0.7 and sphinxbase-0.7 in above situation.
The error:
ld: cannot find -liconv
means, that you don't have iconv installed. Look for the package with the name libiconv-dev or similar in your package manager.

Resources