Bug 185122 - gpgme-config --libs omits -lgpg-error
Summary: gpgme-config --libs omits -lgpg-error
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: gpgme
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-03-10 19:53 UTC by Allen Winter
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-03-12 23:31:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Allen Winter 2006-03-10 19:53:08 UTC
Description of problem:
/usr/bin/gpgme-config --libs should print -lgpgme -lgpg-error
instead it prints -lgpgme only.

I see that the following line is commentd-out in /usr/bin/gpgme-config:
gpg_error_libs="-lgpg-error"

I think it needs to be uncommented.

This is a high severity because I am a KDE developer and I can't get
some of the KDE modules to compile because of this problem.

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. simply run /usr/bin/gpgme-config --libs
2.
3.
  
Actual results:
-lgpgme

Expected results:
-lgpgme -lgpg-error

Additional info:
BTW, in bugzilla there is no component for gpgme.  please add one.
So I just put this under the gnupg component.  you'll need to move this bug
to the correct component (once it has been created)

Comment 1 Nalin Dahyabhai 2006-03-10 20:03:26 UTC
Fedora Extras has a gpgme component, moving.

Comment 2 Rex Dieter 2006-03-10 20:16:38 UTC
IMO, If your code uses stuff from libgpg-error, then *you* should link to it,
and not depend on 'gpgme-config --libs' output to do it for you.

Furhter, gpgme developers told me in essence that "gpgme-config is for those who
do not use libtool." And, AFAIK, KDE apps/code does (should!) use libtool.  (-:

Now, after all that, you still think there's a problem with leaving -lgpg-error
out, then please post a concrete example or code so that I can take a closer look.

Comment 3 Allen Winter 2006-03-12 22:00:37 UTC
Hi Rex. 
 
Ok, go ahead and close this bug. 
I'm solving the problem in a different manner using autoconf. 
 
 

Comment 4 Rex Dieter 2006-03-12 23:31:20 UTC
Glad to hear you got it working.


Note You need to log in before you can comment on or make changes to this bug.