Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ports/127297: Redefinition warnings in print/freetype2

1 view
Skip to first unread message

Jeremy Chadwick

unread,
Sep 11, 2008, 5:59:30 AM9/11/08
to FreeBSD-gn...@freebsd.org

>Number: 127297
>Category: ports
>Synopsis: Redefinition warnings in print/freetype2
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Sep 11 10:20:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Jeremy Chadwick
>Release: FreeBSD 7.1-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD icarus.home.lan 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Wed Sep 10 04:27:41 PDT 2008 ro...@icarus.home.lan:/usr/obj/usr/src/sys/PDSMI_PLUS_amd64 amd64
>Description:
During the build of print/freetype2, a very large number of warnings
are emitted due to the re-definition of TT_CONFIG_OPTION_BYTECODE_INTERPRETER.
Example:

In file included from ./builds/unix/ftconfig.h:42,
from /usr/ports/print/freetype2/work/freetype-2.3.7/src/base/ftinit.c:41:
/usr/ports/print/freetype2/work/freetype-2.3.7/include/freetype/config/ftoption.h:462:1: warning: "TT_CONFIG_OPTION_BYTECODE_INTERPRETER" redefined
<command line>:4:1: warning: this is the location of the previous definition

The port Makefile is causing this situation due to a bug.

The pre-patch section comments out #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER in
include/freetype/config/ftoption.h (when WITHOUT_TTF_BYTECODE_ENABLED is not
defined by the user), but then earlier in the Makefile, it re-enables it:

.if !defined(WITHOUT_TTF_BYTECODE_ENABLED)
CFLAGS+= -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER
.endif

The solution is to remove the CFLAGS+=-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER
piece of the Makefile.
>How-To-Repeat:
Build print/freetype2 normally -- make sure you DO NOT have
WITHOUT_TTF_BYTECODE_ENABLED=yes anywhere
>Fix:
Below is the attached patch. I'd commit this myself, but we're in a
code freeze, and I also don't want to offend any of the gnome@ folks.

Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/print/freetype2/Makefile,v
retrieving revision 1.82
diff -u -r1.82 Makefile
--- Makefile 2 Jul 2008 19:58:12 -0000 1.82
+++ Makefile 11 Sep 2008 09:47:00 -0000
@@ -32,10 +32,6 @@
CONFIGURE_ARGS= --disable-nls
CONFIGURE_WRKSRC= ${WRKSRC}/builds/unix

-.if !defined(WITHOUT_TTF_BYTECODE_ENABLED)
-CFLAGS+= -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER
-.endif
-
.if defined(WITH_LCD_FILTERING)
CFLAGS+= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING
.endif

Assuming gnome@ gives the thumbs up, I can commit this. I've tested
it when using WITHOUT_TTF_BYTECODE_ENABLED=yes and without; the
REINPLACE_CMD part of pre-patch does the right thing altogether.
>Release-Note:
>Audit-Trail:
>Unformatted:

ed...@freebsd.org

unread,
Sep 11, 2008, 6:20:13 AM9/11/08
to ed...@freebsd.org, freebsd-p...@freebsd.org, gn...@freebsd.org
Synopsis: Redefinition warnings in print/freetype2

Responsible-Changed-From-To: freebsd-ports-bugs->gnome
Responsible-Changed-By: edwin
Responsible-Changed-When: Thu Sep 11 10:20:13 UTC 2008
Responsible-Changed-Why:
Over to maintainer (via the GNATS Auto Assign Tool)

http://www.freebsd.org/cgi/query-pr.cgi?pr=127297

0 new messages