Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 604116 Details for
Bug 706196
net-misc/memcached-1.5.21: -fno-common: /ld: testapp-util.o:(.bss+0x0): multiple definition of `hash'; testapp-testapp.o:(.bss+0x10): first defined here
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-hash-fix-build-failure-against-gcc-10.patch
0001-hash-fix-build-failure-against-gcc-10.patch (text/plain), 1.44 KB, created by
Sergei Trofimovich (RETIRED)
on 2020-01-23 22:21:19 UTC
(
hide
)
Description:
0001-hash-fix-build-failure-against-gcc-10.patch
Filename:
MIME Type:
Creator:
Sergei Trofimovich (RETIRED)
Created:
2020-01-23 22:21:19 UTC
Size:
1.44 KB
patch
obsolete
>From 63b8e76067523a02a3e0215db1aef0b34edcf708 Mon Sep 17 00:00:00 2001 >From: Sergei Trofimovich <slyfox@gentoo.org> >Date: Thu, 23 Jan 2020 22:16:36 +0000 >Subject: [PATCH] hash: fix build failure against gcc-10 > >On gcc-10 (and gcc-9 -fno-common) build fails as: > >``` >gcc -g -O2 -pthread -pthread -Wall -Werror -pedantic -Wmissing-prototypes \ > -Wmissing-declarations -Wredundant-decls -o memcached ... -levent >ld: memcached-hash.o:memcached/hash.h:5: > multiple definition of `hash'; memcached-memcached.o:memcached/hash.h:5: first defined here >``` > >gcc-10 will change the default from -fcommon to fno-common: >https://gcc.gnu.org/PR85678. > >The error also happens if CFLAGS=-fno-common passed explicitly. > >Reported-by: Brian Evans >Bug: https://bugs.gentoo.org/706196 >Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> >--- > hash.c | 2 ++ > hash.h | 2 +- > 2 files changed, 3 insertions(+), 1 deletion(-) > >diff --git a/hash.c b/hash.c >index a0c3036..b5ff28a 100644 >--- a/hash.c >+++ b/hash.c >@@ -4,6 +4,8 @@ > #include "jenkins_hash.h" > #include "murmur3_hash.h" > >+hash_func hash; >+ > int hash_init(enum hashfunc_type type) { > switch(type) { > case JENKINS_HASH: >diff --git a/hash.h b/hash.h >index 059d1e2..3b2a984 100644 >--- a/hash.h >+++ b/hash.h >@@ -2,7 +2,7 @@ > #define HASH_H > > typedef uint32_t (*hash_func)(const void *key, size_t length); >-hash_func hash; >+extern hash_func hash; > > enum hashfunc_type { > JENKINS_HASH=0, MURMUR3_HASH >-- >2.25.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 706196
:
604112
| 604116