ports/179598: graphics/gd: Failure to link pngtogd with FONTCONFIG on
Raphael Kubo da Costa
rakuco at FreeBSD.org
Sat Jun 15 19:40:01 UTC 2013
>Number: 179598
>Category: ports
>Synopsis: graphics/gd: Failure to link pngtogd with FONTCONFIG on
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Jun 15 19:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Raphael Kubo da Costa
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
FreeBSD project
>Environment:
System: FreeBSD orwell 10.0-CURRENT FreeBSD 10.0-CURRENT #13 r251764M: Sat Jun 15 02:23:56 EEST 2013 root at orwell:/usr/obj/usr/src/sys/ORWELL amd64
When FONTCONFIG is on, I get the following output with gd-2.0.35_9:
cc -O2 -pipe -fno-strict-aliasing -I/usr/ports/graphics/gd/work/gd-2.0.35 -I/usr/local/include/freetype2/freetype -I/usr/local/include/freetype2 -I/usr/local/include -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE -DHAVE_LIBZ -DHAVE_ERRNO_H -DHAVE_FT2BUILD_H -DHAVE_LIBFREETYPE -DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE_LIBZ -DHAVE_STDDEF_H -DHAVE_STDINT_H -DHAVE_STDLIB_H -I/usr/local/include -DHAVE_LIBFONTCONFIG -DHAVE_PTHREAD -stdlib=libc++ -o pngtogd pngtogd.o -L/usr/ports/graphics/gd/work/gd-2.0.35 -lgd
cc: warning: argument unused during compilation: '-stdlib=libc++'
/usr/ports/graphics/gd/work/gd-2.0.35/libgd.so: undefined reference to `FcPatternDestroy'
/usr/ports/graphics/gd/work/gd-2.0.35/libgd.so: undefined reference to `FcFontMatch'
/usr/ports/graphics/gd/work/gd-2.0.35/libgd.so: undefined reference to `FcPatternGetString'
/usr/ports/graphics/gd/work/gd-2.0.35/libgd.so: undefined reference to `FcConfigSubstitute'
/usr/ports/graphics/gd/work/gd-2.0.35/libgd.so: undefined reference to `FcDefaultSubstitute'
/usr/ports/graphics/gd/work/gd-2.0.35/libgd.so: undefined reference to `FcPatternBuild'
/usr/ports/graphics/gd/work/gd-2.0.35/libgd.so: undefined reference to `FcNameParse'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
It's missing -lfontconfig in the linker line, which only seems to be passed to build the library itself in files/Makefile.bsd.
>Description:
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list