Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 721618 - mail-client/alpine-2.22: multiple definition of `pith_smime_enter_password' with gcc-10
Summary: mail-client/alpine-2.22: multiple definition of `pith_smime_enter_password' w...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robert G. Siebeck
Keywords: PATCH, PullRequest
Depends on:
Blocks: -fno-common
  Show dependency tree
Reported: 2020-05-08 10:42 UTC by Holger Hoffstätte
Modified: 2020-05-14 22:19 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Holger Hoffstätte 2020-05-08 10:42:47 UTC
Rebuilding alpine with gcc-10 fails due to -fno-common.

Reproducible: Always

Steps to Reproduce:
1. rebuild alpine-2.22 with gcc-10
2. oh noes!
Actual Results:  
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../pith/libpith.a(smime.o):/tmp/alpine-2.22/pith/smime.c:90: multiple definition of `pith_smime_enter_password'; ../pith/libpith.a(smkeys.o):/tmp/alpine-2.22/pith/smkeys.c:53: first defined here

Expected Results:  
Correct build.

Upstream has a patch in git:

Only the hunk for pith/smkeys.c is needed; the first is just a version bump.
Dropping into /etc/portage/patches fixes the problem: alpine builds & works fine again.
Comment 1 Holger Hoffstätte 2020-05-09 11:04:15 UTC
Obviously just adding -fcommon to CFLAGS also works, if that's easier.
Comment 2 Larry the Git Cow gentoo-dev 2020-05-14 22:19:43 UTC
The bug has been closed via the following commit(s):

commit 99d8545796e75d781dfedbae9d4f26b1cb5a52b4
Author:     Robert Siebeck <>
AuthorDate: 2020-05-11 17:09:43 +0000
Commit:     Aaron Bauman <>
CommitDate: 2020-05-14 22:19:21 +0000

    mail-client/alpine: fix compilation with gcc-10
    Signed-off-by: Robert Siebeck <>
    Signed-off-by: Aaron Bauman <>

 mail-client/alpine/alpine-2.22-r1.ebuild              |  1 +
 mail-client/alpine/files/alpine-2.22-fno-common.patch | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+)