Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 795669 - app-crypt/gnupg-2.2.28 fails to compile: dirmngr.c:(.text+0x139e): undefined reference to `ldapserver_parse_one'
Summary: app-crypt/gnupg-2.2.28 fails to compile: dirmngr.c:(.text+0x139e): undefined ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mikle Kolyada (RETIRED)
URL: https://lists.gnupg.org/pipermail/gnu...
Whiteboard:
Keywords:
: 795693 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-06-12 19:08 UTC by Agostino Sarubbo
Modified: 2021-06-13 03:47 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,226.66 KB, text/plain)
2021-06-12 19:08 UTC, Agostino Sarubbo
Details
emerge --info (emerge_--info.txt,7.01 KB, text/plain)
2021-06-12 19:54 UTC, josef.95
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-06-12 19:08:31 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-crypt/gnupg-2.2.28 fails to compile.
Discovered on: amd64 (internal ref: ci)

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
If you think this is a GCC-11 related issue, please block bug 732706.
Comment 1 Agostino Sarubbo gentoo-dev 2021-06-12 19:08:34 UTC
Created attachment 715566 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-06-12 19:08:35 UTC
Possible context of error(s):

dirmngr.c:(.text+0x139e): undefined reference to `ldapserver_parse_one'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: dirmngr.c:(.text+0x1447): undefined reference to `ldapserver_list_free'
collect2: error: ld returned 1 exit status
Comment 3 Marco Scardovi (scardracs) 2021-06-12 19:14:49 UTC
I can confirm the bug too
Comment 4 josef.95 2021-06-12 19:48:58 UTC
I noticed, with USE=ldap enabled it builds successful.
Comment 5 josef.95 2021-06-12 19:54:16 UTC
Created attachment 715620 [details]
emerge --info
Comment 6 Marco Scardovi (scardracs) 2021-06-12 20:02:45 UTC
Confirm the useflag ldap fix it
Comment 7 Doppler 2021-06-12 20:54:19 UTC
Same here. This appears to be because of this commit:
https://github.com/gpg/gnupg/commit/ff17aee5d10c8c5ab902253fb4332001c3fc3701#diff-a4aac8e9dec5ad407f9043aebd98cdb298437c8c534088d384e2d888ad49ce29R752
Not 100% sure, but a quick dirty fix might be just to comment out/remove that line if the LDAP USE flag is not set. This should be reported upstream though.
Comment 8 Doppler 2021-06-12 21:56:29 UTC
Oh, yeah, seems like it's already been fixed upstream. This patch applies cleanly and seems to work as expected:
https://github.com/gpg/gnupg/commit/c8b2162c0e7eb42b74811b7ed225fa0f56be4083
( patch file: https://github.com/gpg/gnupg/commit/c8b2162c0e7eb42b74811b7ed225fa0f56be4083.patch )
Comment 9 Larry the Git Cow gentoo-dev 2021-06-12 22:37:10 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16b8804428d68538b75e21a597ab687830787097

commit 16b8804428d68538b75e21a597ab687830787097
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2021-06-12 22:35:44 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2021-06-12 22:37:03 +0000

    app-crypt/gnupg: Fixed build with USE="-ldap"
    
    Removed "scd-shared-access" USE flag as this finally went into a release
    
    Closes: https://bugs.gentoo.org/795669
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 .../gnupg/files/gnupg-2.2.28-dirmngr_ldap.patch    | 36 ++++++++++++++++++++++
 app-crypt/gnupg/gnupg-2.2.28.ebuild                | 13 ++------
 2 files changed, 39 insertions(+), 10 deletions(-)
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-06-13 03:33:37 UTC
*** Bug 795693 has been marked as a duplicate of this bug. ***