libgnutls missing package configuration (PC) files

Bug #678020 reported by Jeffrey Walton
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gnutls12 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

* Not a security vulnerability *

libgnutls appears to be missing its package configuration file, or the configuration file is not available.

During causal reading of the GnuTLS online manual, section 7.1.5, Building the Sources, the manual states the following can be used to compile a program with the same settings used by the library. It seemed like a neat feature, so I wanted to try it.

    gcc -c foo.c `pkg-config gnutls --cflags`

Unfortunately, it appears the PC file is missing or unavailable on Ubuntu 10.04 (x64):

    $ uname -a
    Linux 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:52:42 UTC 2010
    x86_64 GNU/Linux

    $ pkg-config gnutls --cflags
    Package gnutls was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gnutls.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'gnutls' found

    $ apt-cache pkgnames | grep libgnutls | sort
    libgnutls11-dev
    libgnutls13-dbg
    libgnutls26
    libgnutls26-dbg
    libgnutls5-dev
    libgnutls-dev

    $ pkg-config libgnutls26 --cflags
    Package libgnutls26 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libgnutls26.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libgnutls26' found

    $ ls /usr/lib/pkgconfig/*gnutls*
    ls: cannot access /usr/lib/pkgconfig/*gnutls*:
    No such file or directory

description: updated
description: updated
Revision history for this message
Jeffrey Walton (noloader) wrote :

Forgot to mention....

$ dpkg -s libgnutls26
Package: libgnutls26
Status: install ok installed
Priority: standard
Section: libs
Installed-Size: 1176
Maintainer: Ubuntu Developers <email address hidden>
Architecture: amd64
Source: gnutls26
Version: 2.8.5-2
Replaces: gnutls0, gnutls0.4, gnutls3
Depends: libc6 (>= 2.8), libgcrypt11 (>= 1.4.2), libtasn1-3 (>= 1.6-0), zlib1g (>= 1:1.1.4)
Suggests: gnutls-bin
Conflicts: gnutls0, gnutls0.4
Description: the GNU TLS library - runtime library
 gnutls is a portable library which implements the Transport Layer
 Security (TLS) 1.0 and Secure Sockets Layer (SSL) 3.0 protocols.
 .
 Currently gnutls implements:
  - the TLS 1.0 and SSL 3.0 protocols, without any US-export
    controlled algorithms
  - X509 Public Key Infrastructure (with several limitations).
  - SRP for TLS authentication.
  - TLS Extension mechanism
 .
 This package contains the runtime libraries.
Original-Maintainer: Debian GnuTLS Maintainers <email address hidden>
Homepage: http://www.gnutls.org/

description: updated
description: updated
Revision history for this message
Jeffrey Walton (noloader) wrote :

It appears the only two GnuTLS related configuration files reside in local directories. from building the library from source.

$ find / -name *.pc 2>/dev/null | grep gnutls
/home/jeffrey/Desktop/gnutls-2.10.3/lib/gnutls.pc
/home/jeffrey/Desktop/gnutls-2.10.3/libextra/gnutls-extra.pc

$ ls /usr/lib | wc
  1833 1833 33085
$ ls /usr/lib/pkgconfig/ | wc
    58 58 913

$ ls /usr/lib64 | wc
   1833 1833 33085
$ ls /usr/lib64/pkgconfig/ | wc
     58 58 913

tsg1zzn (tsg1zzn)
affects: ubuntu → gnutls12 (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnutls12 (Ubuntu):
status: New → Confirmed
Revision history for this message
zasran (erik-zasran) wrote :

Bug still present in Ubuntu 13.10, apt-file search gnutls.pc returns nothing, when building e.g. rsyslog configure fails:

configure:17927: $PKG_CONFIG --exists --print-errors "gnutls >= 1.4.0"
Package gnutls was not found in the pkg-config search path.
Perhaps you should add the directory containing `gnutls.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gnutls' found

Seems like it should be pretty simple to add it to the package since per previous comments the file gnutls.pc is actually generated, just not part of the package.

Revision history for this message
Jeff Ro (jeffreyro1) wrote :

This hasn't been commented on in a while, but I believe this is affecting my ability to compile libfilezilla-0.19.3 properly. I receive the message:

checking for gnutls >= 3.5.7... no
configure: error: GnuTLS 3.5.7 or greater was not found. You can get it from https://gnutls.org/

More detailed logs say:

configure:18612: checking for gnutls >= 3.5.7
configure:18619: $PKG_CONFIG --exists --print-errors "gnutls >= 3.5.7"
Package gnutls was not found in the pkg-config search path.
Perhaps you should add the directory containing `gnutls.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gnutls' found
configure:18622: $? = 1
configure:18636: $PKG_CONFIG --exists --print-errors "gnutls >= 3.5.7"
Package gnutls was not found in the pkg-config search path.
Perhaps you should add the directory containing `gnutls.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gnutls' found
configure:18639: $? = 1
configure:18653: result: no
No package 'gnutls' found
configure:18670: error: GnuTLS 3.5.7 or greater was not found. You can get it from https://gnutls.org/

However, I have 3.5.18 installed through the ubuntu repository gnutls-bin:

apt show gnutls-bin
Package: gnutls-bin
Version: 3.5.18-1ubuntu1.2
Priority: optional
Section: universe/net
Source: gnutls28
Origin: Ubuntu
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: Debian GnuTLS Maintainers <email address hidden>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 1,174 kB
Depends: libc6 (>= 2.17), libgnutls-dane0 (>= 3.5.6), libgnutls30 (>= 3.5.10-0+private+1), libopts25 (>= 1:5.18.12), libtasn1-6 (>= 4.12)
Homepage: http://www.gnutls.org/
Download-Size: 247 kB
APT-Manual-Installed: yes
APT-Sources: http://mirror.us.leaseweb.net/ubuntu bionic-updates/universe amd64 Packages

Thanks for the work keeping this up!

ps. I am using Ubuntu 18.04.3 LTS with the latest updates.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

You need to install the libgnutls28-dev package to get the package configuration files.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.