Thomas Esser writes:
> Well, this time, we don't have many changes (which is a good thing!).
I haven't tested .11, with .12 I found that ttf2afm.c blondely includes
libgen.h without check.
[..]
cp /netrel/src/tetex-bin-2.99.12.20050203-1/texk/web2c/pdftexdir/ttf2afm.c .
cp /netrel/src/tetex-bin-2.99.12.20050203-1/texk/web2c/pdftexdir/macnames.c
.
i686-cygwin-gcc -DHAVE_CONFIG_H -I.
-I/netrel/src/tetex-bin-2.99.12.20050203-1/texk/web2c -I..
-I/netrel/src/tetex-bin-2.99.12.20050203-1/texk/web2c/.. -O2 -g -DKPSE_DLL -c
ttf2afm.c -o ttf2afm.o
ttf2afm.c:36:20: libgen.h: Onbekend bestand of map
ttf2afm.c: In function `main':
ttf2afm.c:978: warning: assignment makes pointer from integer without a cast
make[2]: *** [ttf2afm.o] Fout 1
make[2]: Leaving directory
`/var/fred/cvs/cygwin/cygwin-apps/mknetrel/build/tetex-bin-2.99.12.20050203-1/texk/web2c'
make[1]: *** [all] Fout 1
make[1]: Leaving directory
`/var/fred/cvs/cygwin/cygwin-apps/mknetrel/build/tetex-bin-2.99.12.20050203-1/texk'
make: *** [all] Fout 1
I suggest something like the patch below.
Jan.
--- texk/web2c/pdftexdir/ttf2afm.c.orig 2005-02-04 12:14:49 +0100
+++ texk/web2c/pdftexdir/ttf2afm.c 2005-02-04 12:15:16 +0100
@@ -33,7 +33,11 @@
*/
#include <kpathsea/kpathsea.h>
#include <time.h>
+#ifdef HAVE_LIBGEN_H
#include <libgen.h>
+#else
+#define basename xbasename
+#endif
#include <pdftexdir/ptexmac.h>
#include <pdftexdir/writettf.h>
--
Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org