ports/159895: print/teTeX-base : fix build with clang
Rene Ladan
rene at FreeBSD.org
Thu Aug 18 21:40:08 UTC 2011
>Number: 159895
>Category: ports
>Synopsis: print/teTeX-base : fix build with clang
>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: Thu Aug 18 21:40:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Rene Ladan
>Release: FreeBSD 9.0-amd64
>Organization:
>Environment:
FreeBSD 9.0-amd64 , FreeBSD 8.2-i386
>Description:
The print/teTeX-base port currently does not build with clang r135360 as found in HEAD:
In file included from type1.c:1:
type1.c:803:111: error: non-void function 'PSFakePop' should return a value [-Wreturn-type]
else { {if (1) printf("'%03o ",currentchar);}; {if (1) printf("PSFakePop : Stack empty\n");}; {errflag = 1; return;};};
^
>How-To-Repeat:
Build print/teTeX-base with clang from HEAD.
>Fix:
Patch attached with submission follows:
--- texk/ps2pkm/type1.c.orig 1999-02-06 23:00:18.000000000 +0100
+++ texk/ps2pkm/type1.c 2011-08-18 23:02:17.000000000 +0200
@@ -800,7 +800,7 @@
static DOUBLE PSFakePop ()
{
if (PSFakeTop >= 0) return(PSFakeStack[PSFakeTop--]);
- else Error0("PSFakePop : Stack empty\n");
+ else { CC; IfTrace0(TRUE, "PSFakePop : Stack empty\n"); errflag = TRUE; return 0; }
/*NOTREACHED*/
}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list