Tiny Core Extensions > TCE Bugs

unexpected libnice-dev dependency at compile time

(1/2) > >>

GNUser:
On TCL16 x86_64 I'm trying to compile an application for which libnice-dev is a build-time dependency.

These are libnice-dev.tcz's dependencies:

--- Code: ---libnice.tcz
gupnp-igd16-dev.tcz
gst-plugins-base-dev.tcz
--- End code ---

But at compile time I'm getting this error:

--- Code: ---../meson.build:41:11: ERROR: Dependency lookup for nice with method 'pkgconfig' failed: Could not generate cflags for nice:
Package gupnp-igd-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gupnp-igd-1.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gupnp-igd-1.0', required by 'nice', not found
--- End code ---

It seems the missing .pc file is provided by gupnp-igd-dev.tcz:

--- Code: ---$ provides.sh gupnp-igd-1.0.pc
gupnp-igd-dev.tcz

--- End code ---

Juanito, does this seem right to you? Is there something in libnice.tcz or libnice-dev.tcz that still needs the old gupnp-igd(-dev)?



Juanito:
I’ll need to take a look at this tomorrow.

GNUser:
libnice-dev.tcz contains /usr/local/lib/pkgconfig/nice.pc, which looks like this:


--- Code: ---prefix=/usr/local
includedir=${prefix}/include
libdir=${prefix}/lib

upnp_enabled=true

Name: libnice
Description: ICE library
Version: 0.1.22
Requires: gio-2.0 >=  2.54
Requires.private: gthread-2.0, gnutls >=  2.12.0, gupnp-igd-1.0 >=  0.2.4
Libs: -L${libdir} -lnice
Cflags: -I${includedir}/nice
--- End code ---

Maybe gupnp-igd-1.0 >=  0.2.4 should be changed to gupnp-igd-1.6 >=  0.2.4?

Just an idea for when you have time to look into this. No rush at all. Thanks.

GNUser:
Hi Juanito. It seems libnice.tcz still depends on the old gupnp-igd.tcz:


--- Code: ---$ readelf -d /usr/local/lib/libnice.so.10

Dynamic section at offset 0x48d30 contains 30 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libgio-2.0.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libgobject-2.0.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libglib-2.0.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libgnutls.so.30]
 0x0000000000000001 (NEEDED)             Shared library: [libgupnp-igd-1.0.so.4]  # Notice this line
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
...

$ provides.sh libgupnp-igd-1.0.so.4
gupnp-igd.tcz

--- End code ---

Juanito:
The latest version of libnice in freedesktop gitlab still wants to link against gupnp-igd-1.0, so I modified the libnice meson.build to link against gupnp-igd-1.6 and things seem to work.

I then discovered archlinux has done the same thing, so it must be OK  :)

libnice reposted

Navigation

[0] Message Index

[#] Next page

Go to full version