[texhax] rtf2latex2e on Snow Leopard

Alan T Litchfield alan at alphabyte.co.nz
Wed Oct 14 22:45:40 CEST 2009


No responses. But tried on 10.5 with powerpc too, with more progress.

./configure --build=powerpc-apple-darwin9 works ok

make fails with:
*** No rule to make target `rtf2LaTeX2e-driver.o', needed by  
`rtf2latex2e.bin'.

Change to Makefile, line 16
from
VPATH = .:/common:$(srcdir)/common/cole

to
VPATH = .:$(srcdir)/common:$(srcdir)/common/cole

make now fails with output:
gcc -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
../src/include/rtf2LaTeX2e.h:39:21: error: Main.h: No such file or  
directory
In file included from ../src/common/rtf2LaTeX2e-driver.c:25:
../src/include/rtf2LaTeX2e.h:278: error: syntax error before  
‘Str2OSType’
../src/include/rtf2LaTeX2e.h:278: warning: data definition has no type  
or storage class
../src/common/rtf2LaTeX2e-driver.c:36: error: syntax error before  
‘gOApped’
../src/common/rtf2LaTeX2e-driver.c:36: warning: data definition has no  
type or storage class
../src/common/rtf2LaTeX2e-driver.c: In function ‘main’:
../src/common/rtf2LaTeX2e-driver.c:228: error: ‘_fcreator’ undeclared  
(first use in this function)
../src/common/rtf2LaTeX2e-driver.c:228: error: (Each undeclared  
identifier is reported only once
../src/common/rtf2LaTeX2e-driver.c:228: error: for each function it  
appears in.)
../src/common/rtf2LaTeX2e-driver.c:230: error: ‘_ftype’ undeclared  
(first use in this function)
../src/common/rtf2LaTeX2e-driver.c:252: error: ‘nil’ undeclared (first  
use in this function)
../src/common/rtf2LaTeX2e-driver.c: At top level:
../src/common/rtf2LaTeX2e-driver.c:343: error: syntax error before  
‘Str2OSType’
../src/common/rtf2LaTeX2e-driver.c: In function ‘Str2OSType’:
../src/common/rtf2LaTeX2e-driver.c:345: error: ‘OSType’ undeclared  
(first use in this function)
../src/common/rtf2LaTeX2e-driver.c:345: error: syntax error before ‘num’
../src/common/rtf2LaTeX2e-driver.c:346: error: ‘num’ undeclared (first  
use in this function)
make: *** [rtf2LaTeX2e-driver.o] Error 1

Giving up now.

Alan

On 12/10/2009, at 9:32 PM, Alan Litchfield wrote:

> Sorry about the cross post but since I am attempting to compile the  
> Unix source...
>
> Has anyone managed to compile a working binary of rtf2latex2e on  
> Snow Leopard?
>
> After much messing about I was finally stopped by this (from  
> config.log):
>
> configure:2747: gcc    conftest.c  >&5
> ld: library not found for -lcrt1.10.6.o
> collect2: ld returned 1 exit status
> configure:2750: $? = 1
> configure:2788: result:
> configure: failed program was:
> | /* confdefs.h.  */
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | #define COLE_VERSION_INFO "2:1:0"
> | #define PACKAGE "cole"
> | #define VERSION "2.0.1"
> | /* end confdefs.h.  */
> |
> | int
> | main ()
> | {
> |
> |   ;
> |   return 0;
> | }
> configure:2795: error: C compiler cannot create executables
>
> Suggestions most welcome.
>
> Cheers
> Alan




More information about the texhax mailing list