[tex-live] Problems configuring the ttf2pk stuff on Mac OS X

Gerben Wierda sherlock@rna.nl
Thu, 2 May 2002 19:15:06 +0200


I am still having problems compiling the extras. After a
	make world
I run
	make extras

this goes well, until it wants to do something in po and then the 
configure script fails because it cannot find libkpathsea.a (which has 
been installed fine)

> cc -I. 
> -I/usr/local/src/perforce/TeXLive/Build/source/freetype/test/arch/unix/../.. 
> -I.. 
> -I/usr/local/src/perforce/TeXLive/Build/source/freetype/test/arch/unix/../../../lib 
> -I/usr/local/src/perforce/TeXLive/Build/source/freetype/test/arch/unix/../../../lib/
> extend -g -O2 -DX11 -DLOCALEDIR=\"\" -o ftstrpnm ftstrpnm.o common.o 
> ../lib/.libs/libttf.a -lm
> cd po; make all
> No support for NLS requested
> creating cache ./config.cache
> checking host system type... powerpc-apple-darwin5.4
> checking target system type... powerpc-apple-darwin5.4
> checking build system type... powerpc-apple-darwin5.4
> checking for gcc... cc
> checking whether the C compiler (cc -g -O2 ) works... yes
> checking whether the C compiler (cc -g -O2 ) is a cross-compiler... no
> checking whether we are using GNU C... yes
> checking whether cc accepts -g... yes
> checking how to run the C preprocessor... cc -E -traditional-cpp
> checking for kpse_set_program_name in -lkpathsea... no
> checking for kpse_init_prog in -lkpathsea... no
> configure: error: Can't find kpathsea library! Use --with-kpathsea-lib 
> option.
> make[1]: *** No rule to make target `all'.  Stop.
> make: *** [freetype.build] Error 2

I looked at the Makefile and at least it seems to me that

> prefix = /usr/local/teTeX
> exec_prefix = ${prefix}
> datadir = ${prefix}/share
> bindir = ${exec_prefix}/bin/powerpc-apple-darwin5.4
> scriptdir = $(bindir)
> manext = 1
> mandir = ${prefix}/man/man$(manext)
> infodir = ${prefix}/info
> texmfmain = /usr/local/teTeX/share/texmf
>
> freetype.build:
>         (cd TeX/texk/kpathsea; $(MAKE) install)
>         (cd freetype;  \
>         CC=$(CC); export CC; \
>         CFLAGS="$(CFLAGS)"; export CFLAGS ; \
>         ./configure  -enable-static --disable-shared  \
>         --with-kpathsea-include=$(datadir)/include \
>         --with-kpathsea-lib=$(datadir)/lib \
>         --disable-nls ; \
>         $(MAKE) ; \
>          cd contrib/ttf2pk; ./configure \
>         --with-kpathsea-include=$(datadir)/include \
>         --with-kpathsea-lib=$(datadir)/lib \
>         --with-kpathsea-dir=$(datadir) --prefix=$(prefix) 
> --bindir=$(bindir); \
>         $(MAKE) $(MDEFINES) all install)

is strange because include and lib are not subdirectories of share, but 
of the main dir. I hacked a separate Makefile but that did not solve my 
problem. freetype config.status tells me what happened when I hacked the 
Makefile

> freetype/config.status:# ./configure  -enable-static --disable-shared 
> --with-kpathsea-include=/usr/local/teTeX/include --with-kpathsea-
> lib=/usr/local/teTeX/lib --disable-nls

Which looks fine.

> [dumbledore:TeXLive/Build/source] root# ll /usr/local/teTeX/lib
> total 1452
> drwxr-xr-x  2 root  admin    1024 May  2 19:06 .
> drwxr-xr-x  9 root  admin    1024 May  2 17:04 ..
> -rw-r--r--  1 root  admin  735816 May  2 19:06 libkpathsea.a

Which is fine too.

I looked at freetype/contrib/ttf2pk/configure and it looks to me it 
might be the culprit  and it might depend on having an installed 
kpathsea somewhere in a more traditional location like /usr/local, 
instead of just the one in ...tex-prefix.../lib which would then succeed 
on those systems, but that is just a guess.

Anyway, make extras fails on Mac OS X when configuring ttf2pk and I 
suspect ttf2pk's configure is broken and I'd like to get this solved but 
I am currently fresh out of ideas.

G