Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Aug 2020 07:24:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 248748] print/texlive-base: linker error: ld: error: duplicate symbol: dpi
Message-ID:  <bug-248748-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 248748
           Summary: print/texlive-base: linker error: ld: error: duplicate
                    symbol: dpi
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: hrs@FreeBSD.org
          Reporter: ohartmann@walstatt.org
          Assignee: hrs@FreeBSD.org
             Flags: maintainer-feedback?(hrs@FreeBSD.org)

With LLVM11 in base, -fno-common is now the standard of clang and in the va=
in
of this change several ports fail to compile/link due to a duplicate symbol
error, see below.

A quick and dirty fix, as suggested by FreeBSD developers, is to add
CFLAGS+=3D-fcommon to the set of compiler options.=20


[...]
--- ttf2pk ---
/bin/sh ./libtool  --tag=3DCC    --mode=3Dlink cc -Wimplicit -Wreturn-type =
-O2
-pipe -I/usr/local/include -fstack-protector-strong -fno-strict-aliasing=20=
=20
-fstack-protector-strong -o ttf2pk errormsg.o filesrch.o ftlib.o  ligkern.o
newobj.o parse.o  subfont.o texenc.o ttfenc.o pklib.o ttf2pk.o  ttflib.o
-L/usr/local/lib -lkpathsea -L/usr/local/lib -lfreetype -lz -lm
libtool: link: cc -Wimplicit -Wreturn-type -O2 -pipe -I/usr/local/include
-fstack-protector-strong -fno-strict-aliasing -fstack-protector-strong -o
ttf2pk errormsg.o filesrch.o ftlib.o ligkern.o newobj.o parse.o subfont.o
texenc.o ttfenc.o pklib.o ttf2pk.o ttflib.o  -L/usr/local/lib -lkpathsea
-lfreetype -lz -lm
ld: error: duplicate symbol: dpi
>>> defined at ftlib.c
>>>            ftlib.o:(dpi)
>>> defined at pklib.c
>>>            pklib.o:(.bss+0x940)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [ttf2pk] Error code 1

make[6]: stopped in
/usr/ports/print/texlive-base/work/texlive-20150521-source/texk/ttf2pk2
1 error

make[6]: stopped in
/usr/ports/print/texlive-base/work/texlive-20150521-source/texk/ttf2pk2
*** [recurse] Error code 1

make[4]: stopped in
/usr/ports/print/texlive-base/work/texlive-20150521-source/texk

--=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-248748-7788>