gnutls.pc contains unrecognized command line option -R

Bug #1557836 reported by Dan Kegel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnutls26 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

$ pkg-config --libs --static gnutls
-L/usr/lib/x86_64-linux-gnu -lgnutls -lz -R/usr/lib/x86_64-linux-gnu -lp11-kit -lgmp -lhogweed -lgmp -lnettle -ltasn1 -lp11-kit -lz

$ grep -e -R /usr/lib/x86_64-linux-gnu/pkgconfig/*.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/gnutls.pc:Libs.private: -L/usr/lib/x86_64-linux-gnu -lz -R/usr/lib/x86_64-linux-gnu -lp11-kit -lgmp

That -R looks innocent, but it's not. Libs.private is passed to gcc, not to ld, so it needs to use -Wl,-rpath... what am I saying, it shouldn't be passing an rpath at all, should it?

Anyway, the -R has to go, it causes build failure for any app that uses pkg-config --static --libs gnutls

This bug was not present in ubuntu 12.04, but is present in both ubuntu 14.04 and ubuntu 15.10.

The workaround for affected developers is to ham-fistedly remove the -R/usr/lib/x86_64-linux-gnu from /usr/lib/x86_64-linux-gnu/pkgconfig/gnutls.pc

Revision history for this message
Dan Kegel (dank) wrote :

This was noticed by at least one other random guy on the intertubes: https://github.com/tatsuhiro-t/aria2/issues/359

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1557836/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Dan Kegel (dank)
affects: ubuntu → gnutls26 (Ubuntu)
Revision history for this message
Dan Kegel (dank) wrote :
tags: added: trusty wily
tags: added: rls-x-incoming
Revision history for this message
Julian Andres Klode (juliank) wrote :

gnutls26 has never been released with xenial, and gnutls28 in there has been fixed, so invalid.

Changed in gnutls26 (Ubuntu):
status: New → Invalid
tags: removed: rls-x-incoming
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.