[Bug 1875412] [NEW] netplan.io: ftbfs with GCC 10
Andrej Shadura
andrewsh at debian.org
Mon Apr 27 14:34:35 UTC 2020
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
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/1875412
Title:
netplan.io: ftbfs with GCC 10
Status in netplan:
New
Status in netplan.io package in Ubuntu:
New
Status in netplan.io package in Debian:
Unknown
Bug description:
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/1875412/+subscriptions
More information about the foundations-bugs
mailing list