[tex-live] tex-live bug with clang compilers

Jack Howarth howarth at bromo.med.uc.edu
Sun Jul 17 17:28:13 CEST 2011


On Sun, Jul 17, 2011 at 10:39:30PM +0900, Akira Kakuto wrote:
> Dear Jack,
> 
> > Is there an easy fix to make this code c90 compliant?
> 
> A quick fix:

Akira,
   Thanks. This change allows clang to completely compile texlive from
20100722. One other question. Are there patches required to build that
release against the new libpng 1.5 and if so where would I find them
posted?
        Jack

> 
> --- type1.c.orig	Mon Jun 22 23:33:58 2009
> +++ type1.c	Sun Jul 17 22:33:35 2011
> @@ -127,6 +127,8 @@
>  #define Error {errflag = TRUE; return;}
>   
>  #define Error0(errmsg) { CC; IfTrace0(TRUE, errmsg); Error;}
> +
> +#define Error01(errmsg) { CC; IfTrace0(TRUE, errmsg); errflag = TRUE; return -1.0;}
>   
>  #define Error1(errmsg,arg) { CC; IfTrace1(TRUE, errmsg, arg); Error;}
>   
> @@ -780,7 +782,7 @@
>  static DOUBLE PSFakePop ()
>  {
>    if (PSFakeTop >= 0) return(PSFakeStack[PSFakeTop--]);
> -  else Error0("PSFakePop : Stack empty\n");
> +  else Error01("PSFakePop : Stack empty\n");
>    /*NOTREACHED*/
>  }
>   


More information about the tex-live mailing list