C
C
CityCat42016-07-01 11:51:04
GTK+
CityCat4, 2016-07-01 11:51:04

Why doesn't configure find glib-networking?

CentOS 6.8 with many hand-built RPMs
libsoup configure does not find glib-networking when building, even though glib-networking is installed. When analyzing configure, it turns out that for some reason it measures the presence of glib-networking by the presence of the g_tls_backend_supports_tls function:

#include <gio/gio.h>
int
main ()
{
return !g_tls_backend_supports_tls (g_tls_backend_get_default ());
  ;
  return 0;
}

Of course, it wouldn't work, but the compilation of this test program fails, despite the fact that GLIB 2.46.1 is installed and manual compilation proceeds with the same command line as in configure:
gcc -o test -g -O2 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  \
     -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_38  test.c -lgio-2.0 -lgobject-2.0 -lglib-2.0

I had to add --disable-tls-check, but this is of course a crutch. The question is, which one does he need? libgio-2.0.so.0 is in /lib64, even libgio-2.0.a is in /usr/lib64.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CityCat4, 2016-07-01
@CityCat4

I answer to myself - because the hands (grow from nowhere) . Along with /lib64/libgio.so.0, there was also /usr/local/lib/libgio.so.0. To everyone who wants to build programs in CentOS - do not try to do it completely manually, this is not slack for you. Master the assembly through rpmbuild - so there is less chance that you will run into such a ridiculous jamb.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question