Summary: | net-mail/dbmail-3.2.3-r2 : fails to build with -fno-common or gcc-10 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Thomas Raschbacher <lordvan> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aklhfex |
Priority: | Normal | Keywords: | PATCH, PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://github.com/gentoo/gentoo/pull/18448 https://bugs.gentoo.org/show_bug.cgi?id=762646 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 705764 | ||
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.portage.tbz2 logs.tbz2 net-mail:dbmail-3.2.3-r2:20200208-103807.log temp.tbz2 |
Description
Toralf Förster
2020-02-08 13:17:38 UTC
Created attachment 612752 [details]
emerge-info.txt
Created attachment 612754 [details]
emerge-history.txt
Created attachment 612756 [details]
environment
Created attachment 612758 [details]
etc.portage.tbz2
Created attachment 612760 [details]
logs.tbz2
Created attachment 612762 [details]
net-mail:dbmail-3.2.3-r2:20200208-103807.log
Created attachment 612764 [details]
temp.tbz2
Hi. Simple patch which helped me. diff -Naur a/src/server.c b/src/server.c --- a/src/server.c<---->2020-05-27 10:41:39.000000000 +0300 +++ b/src/server.c<---->2020-05-31 12:18:29.743164000 +0300 @@ -57,7 +57,7 @@ struct event *sig_usr = NULL; struct event *heartbeat = NULL; . -SSL_CTX *tls_context; +extern SSL_CTX *tls_context; . FILE *fstdout = NULL; extern FILE *fstderr; May be this is not the exact changes that it should be done. But dbmail-3.2.3-r2 builds with gcc-10.1 and works fine for me. No C expert here but I think server.c is the file in which tls_context is initialised and it is referenced in dm_tls.c. At run time: .libs/libdbmail_la-dm_tls.o:(.bss+0x0): multiple definition of `tls_context'; .libs/libdbmail_la-server.o:(.bss+0x40): first defined here https://github.com/dbmail/dbmail/pull/64 ping The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a25d8b33a20fd9fc4ad2a5e3080f55911ea54db commit 0a25d8b33a20fd9fc4ad2a5e3080f55911ea54db Author: Jakov Smolic <jakov.smolic@sartura.hr> AuthorDate: 2020-11-30 21:39:48 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2020-11-30 21:39:48 +0000 net-mail/dbmail: port to EAPI 7 and GLEP 81 * Fix build with gcc-10 Closes: https://bugs.gentoo.org/708722 Package-Manager: Portage-3.0.9, Repoman-3.0.1 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: David Seifert <soap@gentoo.org> net-mail/dbmail/dbmail-3.2.3-r2.ebuild | 138 --------------------- net-mail/dbmail/dbmail-3.2.3-r3.ebuild | 133 ++++++++++++++++++++ .../dbmail/files/dbmail-3.2.3-fno-common.patch | 14 +++ net-mail/dbmail/files/dbmail-imapd.initd | 2 +- net-mail/dbmail/files/dbmail-lmtpd.initd | 2 +- net-mail/dbmail/files/dbmail-pop3d.initd | 2 +- net-mail/dbmail/files/dbmail-timsieved.initd | 2 +- 7 files changed, 151 insertions(+), 142 deletions(-) |