netplan.io: ftbfs with GCC 10

Bug #1875412 reported by Andrej Shadura
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Netplan
Fix Released
Undecided
Unassigned
netplan.io (Debian)
Fix Released
Unknown
netplan.io (Ubuntu)
Fix Released
High
Lukas Märdian

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

Related branches

Changed in netplan.io (Debian):
importance: Unknown → Medium
Changed in netplan.io (Debian):
importance: Medium → Unknown
status: Unknown → Confirmed
Revision history for this message
Lukas Märdian (slyon) wrote :
Changed in netplan:
status: New → Fix Committed
Changed in netplan.io (Ubuntu):
importance: Undecided → High
status: New → In Progress
assignee: nobody → Lukas Märdian (slyon)
Lukas Märdian (slyon)
Changed in netplan.io (Ubuntu):
status: In Progress → Fix Committed
tags: added: id-5f1eb46315949c285f724d27
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package netplan.io - 0.99-0ubuntu6

---------------
netplan.io (0.99-0ubuntu6) groovy; urgency=medium

  * d/p/0005-Fix-GCC-10-fno-common-linker-errors-LP-1875412-155.patch
    - Fix FTBFS if compiled using GCC-10 (LP: #1875412)
    - Using upstream commit 50ac1a1
  * Refresh patches using 'gbp pq'

 -- Lukas Märdian <email address hidden> Tue, 28 Jul 2020 14:12:28 +0200

Changed in netplan.io (Ubuntu):
status: Fix Committed → Fix Released
Lukas Märdian (slyon)
Changed in netplan:
status: Fix Committed → Fix Released
Changed in netplan.io (Debian):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.