LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-15-2010, 09:38 PM   #1
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Having trouble building GnuPG's GPA


Hi all,

I'm trying to build an updated version of GPA (mostly just for fun). But when I try to build it I get this error, whether I use the slackbuild file from the source (modified for the new package version) or src2pkg:

Code:
server.o: In function `gpa_start_server':
server.c:(.text+0x146): undefined reference to `assuan_set_assuan_err_source'
server.o: In function `accept_connection_cb':
server.c:(.text+0x4c7): undefined reference to `assuan_init_socket_server_ext'
server.c:(.text+0x539): undefined reference to `assuan_deinit_server'
server.o: In function `connection_finish':
server.c:(.text+0x28aa): undefined reference to `assuan_deinit_server'
collect2: ld returned 1 exit status
make[3]: *** [gpa] Error 1
make[3]: Leaving directory `/tmp/gpa-0.8.0-src-1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/gpa-0.8.0-src-1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/gpa-0.8.0-src-1'
make: *** [all] Error 2
ERROR! Compiling source code has failed.
This usually happens because of missing libraries, or
badly written Makefiles or configure scripts.
Found an RPM .spec file which shows this:
Requires: gnupg
It seems that part of the problem may be with libassuan. I have both libassuan-1.0.4 and libassuan-2.0.0 installed.

It also seems to be asking for gnupg, but that's installed too.

Any thoughts?

Regards,
 
Old 03-15-2010, 11:15 PM   #2
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Builds fine here. You should only have one of the libassuan versions installed, and 2.0.0 is preferred. It contains a shared library, whereas the old 1.x only had a static library (meaning nothing goes wrong wrt runtime even if you remove it), and besides, latest gnupg2 requires newer libassuan API.
 
Old 03-16-2010, 07:05 AM   #3
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180

Original Poster
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Hi Robby,

I've got gnupg2 built and installed against libassuan 2.0.0, but I also have GnuPG 1.0.14 installed. Could the fact that I have both installed be causing the problem?

I'm on a pure 64 environment. Is GPA having trouble finding the libraries?

I'll keep working on this and see how it turns out.

Regards,
 
Old 03-16-2010, 09:54 AM   #4
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Not your fault at all; the gnupg folks just have to get all of their bits and pieces on the same page:
Code:
(this is when building gpa-0.8.0)
checking for libassuan-config... /usr/bin/libassuan-config
checking for LIBASSUAN - version >= 1.0.4... yes (2.0.0)
checking LIBASSUAN API version... does not match.  want=1 got=2.
However, gnupg2-2.0.15 requires libassuan-2.x, and since that software is much more important than gpa, I guess it's clear how this will play out :-)
 
Old 03-16-2010, 10:13 AM   #5
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Okay, after looking around some more, it appears that there's a development repo:
http://wald.intevation.org/scm/?group_id=13

There are a couple of commits in there to use the new libassuan API, so maybe you'll have better luck with that.
 
Old 03-16-2010, 10:30 AM   #6
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
And... I'll shut up after this one :-) but here's something you'll probably like:
http://connie.slackware.com/~rworkman/gpa/
 
Old 03-16-2010, 01:04 PM   #7
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180

Original Poster
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Great stuff, Robby! I'll build it tonight after work and see how it goes, but I suspect that everything will work well.

Did you write the diff file, or was it in the svn? I looked at the development repo, but didn't see it.

Is this version of GPA heading into the next version of Slackware?

Regards, and thanks!
 
Old 03-16-2010, 01:41 PM   #8
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by Lufbery View Post
Great stuff, Robby! I'll build it tonight after work and see how it goes, but I suspect that everything will work well.

Did you write the diff file, or was it in the svn? I looked at the development repo, but didn't see it.

Is this version of GPA heading into the next version of Slackware?
I don't remember the revision numbers of the two commits, but they were both in the development svn repo; I just pulled them from there.

I don't know if this will be in a future -current update or not, to be honest; we'll have to wait and see...
 
Old 03-16-2010, 01:45 PM   #9
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180

Original Poster
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by rworkman View Post
...we'll have to wait and see...
As always.

Thanks again, Robby.

Regards,
 
Old 03-16-2010, 08:13 PM   #10
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180

Original Poster
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
That did it. I was still getting errors with the Slackbuild, but then I noticed that I hadn't removed the old versions of gpgme and libassuan.

For the record then, here's what I built:
  1. libassuan-2.0.0
  2. gnupg-2.0.15
  3. gnupg-1.4.10
  4. gpgme-1.3.0
  5. gpa-0.9.0

I build all but libassuan and gpa using src2pkg. I'm going to want to go back and clean those builds up by adding slack-desc files, but overall, I'm pleased with the update.

Thanks, Robby, for finding the diff file for gpa. That was driving me crazy!

EDIT: Now the only thing wrong is that I get "Bad" signatures when I verify signatures with GPA and "good" ones when I verify with the command line gpg (1.4.10)! This is a problem with files such as the .asc file for the CHECKSUMS.md5 on the Slackware DVD.

I wonder if I've got a problem with gnupg2.

Last edited by Lufbery; 03-16-2010 at 08:37 PM.
 
Old 12-06-2010, 07:48 PM   #11
sahko
Senior Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 1,041

Rep: Reputation: Disabled
Is there any chance of considering bumping gpa for this release cycle?
 
Old 03-21-2012, 03:52 PM   #12
bagako
LQ Newbie
 
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
Hi!

I am new to Linux, and I know very little, but want to install GPG with GPA, and I got the same error message. I read this thread, but the two links, where the help was not working. Anyone could help me?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
is GPA really needed in GnuPG packets Linux - Security 1 01-25-2006 04:44 AM
GNU Privacy Assistant (GPA) Problems Marcus_Crassus Linux - Software 3 08-03-2005 09:33 AM
Trouble building kxdocker 0.20 mauripop Linux - Software 2 04-20-2005 01:59 PM
Trouble building RAZOR froedi Linux - Software 3 02-13-2004 10:34 PM
trouble building latest gnome vance Linux - Software 1 02-10-2003 01:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration