Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Aug 2011 21:31:25 GMT
From:      Rene Ladan <rene@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/159895: print/teTeX-base : fix build with clang
Message-ID:  <201108182131.p7ILVPwJ043574@red.freebsd.org>
Resent-Message-ID: <201108182140.p7ILe7dI008433@freefall.freebsd.org>

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108182131.p7ILVPwJ043574>