[libnice] Can latest version libnice-0.1.13 be install on CentOS 6.5??

Jack Wang antirazin at gmail.com
Thu Aug 20 20:02:55 PDT 2015


I met error when starting with ./configure (log posted on the bottom),
and it seems that the glib version is too old to use.

I changed back to several old versions of libnice to test the availability,
<=0.1.3 can build and install successfully,
0.1.4 can work on configuration, but fail on 'make':

make[2]: Entering directory `/home/XXX/Downloads/libnice-0.1.4/examples'
  CC     threaded-example.o
threaded-example.c: In function ‘main’:
threaded-example.c:110: warning: implicit declaration of function
‘g_thread_new’
threaded-example.c:110: warning: nested extern declaration of ‘g_thread_new’
threaded-example.c:110: warning: assignment makes pointer from integer
without a cast
threaded-example.c: In function ‘print_local_data’:
threaded-example.c:391: warning: implicit declaration of function
‘g_slist_free_full’
threaded-example.c:391: warning: nested extern declaration of
‘g_slist_free_full’
threaded-example.c: At top level:
threaded-example.c:53: error: storage size of ‘gather_mutex’ isn’t known
threaded-example.c:53: error: storage size of ‘negotiate_mutex’ isn’t known
threaded-example.c:54: error: storage size of ‘gather_cond’ isn’t known
threaded-example.c:54: error: storage size of ‘negotiate_cond’ isn’t known
make[2]: *** [threaded-example.o] Error 1
make[2]: Leaving directory `/home/XXX/Downloads/libnice-0.1.4/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/XXX/Downloads/libnice-0.1.4'
make: *** [all] Error 2

Although 0.1.3 can work, but for the convenience (new function and examples
added),
I still want to use >=0.1.4.

Maybe if I update to CentOS 7 and the problem can be solved , isn't it?
But for some reasons, I can't do that. :(
So, any suggestion to run latest libice on CentOS 6.5??
I ever tried to install the GLIB-2.44.1 (latest version) but failed (maybe
not support on CentOS 6.5??)

Thanks. :)

===========================================

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to
x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain
format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking operating system... linux/other
checking for C/C++ restrict keyword... __restrict
checking for variable-length arrays... yes
checking whether to enable assertions... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking net/in.h usability... no
checking net/in.h presence... no
checking for net/in.h... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking for size_t... yes
checking for ssize_t... yes
checking to see if compiler understands -fno-strict-aliasing... yes
checking to see if compiler understands -Wall... yes
checking to see if compiler understands -Wextra... yes
checking to see if compiler understands -Wundef... yes
checking to see if compiler understands -Wnested-externs... yes
checking to see if compiler understands -Wwrite-strings... yes
checking to see if compiler understands -Wpointer-arith... yes
checking to see if compiler understands -Wmissing-declarations... yes
checking to see if compiler understands -Wmissing-prototypes... yes
checking to see if compiler understands -Wstrict-prototypes... yes
checking to see if compiler understands -Wredundant-decls... yes
checking to see if compiler understands -Wno-unused-parameter... yes
checking to see if compiler understands -Wno-missing-field-initializers...
yes
checking to see if compiler understands -Wdeclaration-after-statement... yes
checking to see if compiler understands -Wformat=2... yes
checking to see if compiler understands -Wold-style-definition... yes
checking to see if compiler understands -Wcast-align... yes
checking to see if compiler understands -Wformat-nonliteral... yes
checking to see if compiler understands -Wformat-security... yes
checking to see if compiler understands -Wsign-compare... yes
checking to see if compiler understands -Wstrict-aliasing... yes
checking to see if compiler understands -Wshadow... yes
checking to see if compiler understands -Winline... yes
checking to see if compiler understands -Wpacked... yes
checking to see if compiler understands -Wmissing-format-attribute... yes
checking to see if compiler understands -Wmissing-noreturn... yes
checking to see if compiler understands -Winit-self... yes
checking to see if compiler understands -Wredundant-decls... yes
checking to see if compiler understands -Wmissing-include-dirs... yes
checking to see if compiler understands -Wunused-but-set-variable... yes
checking to see if compiler understands -Warray-bounds... yes
checking for library containing inet_pton... none required
checking for library containing socket... none required
configure: set LIBNICE_CFLAGS to
-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_30
-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_36 -fno-strict-aliasing -Wall
-Wextra -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith
-Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes
-Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers
-Wdeclaration-after-statement -Wformat=2 -Wold-style-definition
-Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare
-Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute
-Wmissing-noreturn -Winit-self -Wredundant-decls -Wmissing-include-dirs
-Wunused-but-set-variable -Warray-bounds
checking for clock_gettime in -lrt... yes
checking for poll... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... no
configure: error: Package requirements (glib-2.0 >= 2.30 gio-2.0 >= 2.30
gobject-2.0 >= 2.30 gthread-2.0) were not met:

Requested 'glib-2.0 >= 2.30' but version of GLib is 2.26.1
Requested 'gio-2.0 >= 2.30' but version of GIO is 2.26.1
Requested 'gobject-2.0 >= 2.30' but version of GObject is 2.26.1

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-co
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/nice/attachments/20150821/36db3d54/attachment.html>


More information about the nice mailing list