[OS X TeX] Re: rtf2latex2e on Snow Leopard

Maxwell, Adam R adam.maxwell at pnl.gov
Thu Oct 15 18:29:38 EDT 2009


On 10/15/09 13:47, "Alan T Litchfield" <alan at alphabyte.co.nz> wrote:

> I wish that this was the case but I have used new source on both
> powerpc and intel and the consistent problem appears to be with
> rtf2LaTeX2e-driver.c
> 
> I have copied the config.guess, run autoconf

You ran autoconf, or just ran configure?  Hopefully the latter...

> and this is the output
> from the last attempt on powerpc

What OS version?  Obviously not Snow Leopard, as the subject says :).

> G5-9:Unix alanlitchfield$ make CC=gcc-4.0
> gcc-4.0 -g -O2 -DINSTALL_DIR=\"/usr/local/rtf2latex2e\" -I../src/
> include   -c -o rtf2LaTeX2e-driver.o ../src/common/rtf2LaTeX2e-driver.c
> In file included from ../src/common/rtf2LaTeX2e-driver.c:25:
> ../src/include/rtf2LaTeX2e.h:38:24: error: unix.mac.h: No such file or
> directory

Ah, I think I see.  Change line 36 of rtf2LaTeX2e.h to be

#if defined(__CFM68K__) || defined(__MC68K__)

There's a test for ppc in there that's not correct in the general case.  It
looks like there are some others that should be fixed as well:

$ find . -type file |xargs grep 'POWERPC'
./src/common/LaTeX2e-writer.c:            #if __POWERPC__ || __CFM68K__ ||
__MC68K__
./src/common/LaTeX2e-writer.c:            #if __POWERPC__ || __CFM68K__ ||
__MC68K__
./src/common/LaTeX2e-writer.c:            #if __POWERPC__ || __CFM68K__ ||
__MC68K__
./src/common/LaTeX2e-writer.c:            #if __POWERPC__ || __CFM68K__ ||
__MC68K__
./src/common/LaTeX2e-writer.c:            #if __POWERPC__ || __CFM68K__ ||
__MC68K__
./src/common/LaTeX2e-writer.c:            #if __POWERPC__ || __CFM68K__ ||
__MC68K__
./src/common/LaTeX2e-writer.c:            #if __POWERPC__ || __CFM68K__ ||
__MC68K__
./src/common/LaTeX2e-writer.c:#if __POWERPC__ || __CFM68K__ || __MC68K__
./src/common/LaTeX2e-writer.c:    #if __POWERPC__ || __CFM68K__ || __MC68K__
./src/common/rtf2LaTeX2e-driver.c:        #if __POWERPC__ || __CFM68K__ ||
__MC68K__
./src/include/rtf2LaTeX2e.h:#if defined(__POWERPC__) || defined(__CFM68K__)
|| defined(__MC68K__)





More information about the MacOSX-TeX mailing list