Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Jun 2020 13:41:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 246957] sysutils/dvdisaster: Fails to build with current GCC: build.o:(.data+0x0): multiple definition of `buildCount';
Message-ID:  <bug-246957-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246957

            Bug ID: 246957
           Summary: sysutils/dvdisaster: Fails to build with current GCC:
                    build.o:(.data+0x0): multiple definition of
                    `buildCount';
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: salvadore@freebsd.org
                CC: bob@eager.cx, gerald@FreeBSD.org, linimon@FreeBSD.org,
                    tcberner@freebsd.org
            Blocks: 246700
                CC: bob@eager.cx
             Flags: maintainer-feedback?(bob@eager.cx)

Please see PR #246700 for details, which is about updating the default vers=
ion
of GCC from 9 to 10.

  Compiling: udf.c
  Compiling: welcome-window.c
  Linking  : dvdisaster
  /usr/local/bin/ld:
/wrkdirs/usr/ports/sysutils/dvdisaster/work/dvdisaster-0.79.5/build.o:(.dat=
a+0x0):
multiple definition of `buildCount';
/wrkdirs/usr/ports/sysutils/dvdisaster/work/dvdisaster-0.79.5/bitmap.o:(.bs=
s+0x0):
first defined here
  /usr/local/bin/ld:
/wrkdirs/usr/ports/sysutils/dvdisaster/work/dvdisaster-0.79.5/cacheprobe.o:=
(.bss+0x0):
multiple definition of `buildCount';
/wrkdirs/usr/ports/sysutils/dvdisaster/work/dvdisaster-0.79.5/bitmap.o:(.bs=
s+0x0):
first defined here

  [and so on for 280 more lines]

This issue is probably due to the -fno-common flag set by default. The easy
workaround is adding CFLAGS=3D-fcommon until the code can be fixed (prefera=
bly
upstream) according to https://gcc.gnu.org/gcc-10/porting_to.html#common .


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246700
[Bug 246700] [exp-run] Update GCC_DEFAULT from 9 to 10
--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246957-7788>