Public bug reported: Netplan fails to link with GCC 10 due to a repeated non-extern variable declaration in a header used across multiple source files.
cc -shared -Wl,-soname,libnetplan.so.0.0 -g -fPIC -std=c99 -D_XOPEN_SOURCE=500 -DSBINDIR=\"/usr/sbin\" -Wall -Werror -g -O2 -fdebug-prefix-map=/home/andrewsh/projects/netplan.io=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -o libnetplan.so.0.0 parse.o util.o validation.o error.o `pkg-config --libs yaml-0.1` /usr/bin/ld: validation.o:./src/parse.h:34: multiple definition of `missing_id'; parse.o:./src/parse.h:34: first defined here /usr/bin/ld: validation.o:./src/parse.h:35: multiple definition of `missing_ids_found'; parse.o:./src/parse.h:35: first defined here /usr/bin/ld: validation.o:./src/parse.h:28: multiple definition of `current_file'; parse.o:./src/parse.h:28: first defined here /usr/bin/ld: error.o:./src/parse.h:28: multiple definition of `current_file'; parse.o:./src/parse.h:28: first defined here /usr/bin/ld: error.o:./src/parse.h:35: multiple definition of `missing_ids_found'; parse.o:./src/parse.h:35: first defined here /usr/bin/ld: error.o:./src/parse.h:34: multiple definition of `missing_id'; parse.o:./src/parse.h:34: first defined here collect2: error: ld returned 1 exit status make[1]: *** [Makefile:42: libnetplan.so.0.0] Error 1 See also: https://bugs.debian.org/957603 ** Affects: netplan Importance: Undecided Status: New ** Affects: netplan.io (Ubuntu) Importance: Undecided Status: New ** Affects: netplan.io (Debian) Importance: Medium Status: Unknown ** Tags: ftbfs gcc-10 ** Bug watch added: Debian Bug tracker #957603 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=957603 ** Also affects: netplan.io (Debian) via https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=957603 Importance: Unknown Status: Unknown ** Also affects: netplan.io (Ubuntu) Importance: Undecided Status: New ** Changed in: netplan.io (Debian) Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875412 Title: netplan.io: ftbfs with GCC 10 To manage notifications about this bug go to: https://bugs.launchpad.net/netplan/+bug/1875412/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs