Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jun 2013 12:24:36 -0700 (PDT)
From:      Raphael Kubo da Costa <rakuco@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        dinoex@FreeBSD.org
Subject:   ports/179598: graphics/gd: Failure to link pngtogd with FONTCONFIG on
Message-ID:  <51bcbf74.4624980a.3fcc.7967@mx.google.com>
Resent-Message-ID: <201306151940.r5FJe0Ba006696@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51bcbf74.4624980a.3fcc.7967>