You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 <[email protected]>
0 commit comments