Re: 2.99.12 (Irix failure)
Have a problem under Irix... basename is not present on the system Need to use xbasename.. my manpage (IRIX-6.5.24) says, you have to include libgen.h to use basename(3): basename(3G)basename(3G) NAME basename - return the last element of a pathname SYNOPSIS cc [flag ...] file ... -lgen [library ...] #include libgen.h char *basename (char *path); DESCRIPTION Given a pointer to a null-terminated character string that contains a pathname, basename returns a pointer to the last element of path. Trailing ``/'' characters are deleted. If path or *path is zero, pointer to a static constant ``.'' is returned. (And one needs to remove texk/web2c/ttf2afm.c before recompiling as it is copied) I'll let you know if there any other problems by tomorrow morning... *** texk/web2c/pdftexdir/ttf2afm.c2005/02/04 03:24:02 1.1 --- texk/web2c/pdftexdir/ttf2afm.c2005/02/04 03:24:31 *** *** 975,981 cur_file_name = argv[optind]; if (print_cmap) { buf = xstrdup(cur_file_name); ! bname = basename(buf); if ((s = rindex(bname, '.')) != NULL) *s = 0; } --- 975,981 cur_file_name = argv[optind]; if (print_cmap) { buf = xstrdup(cur_file_name); ! bname = xbasename(buf); if ((s = rindex(bname, '.')) != NULL) *s = 0; } mit freundlichen Grüßen Bernd Melchers -- Archiv- und Backup-Service | [EMAIL PROTECTED] Freie Universität Berlin | Tel. (030) 838-55905
Re: 2.99.12 (Irix failure)
my manpage (IRIX-6.5.24) says, you have to include libgen.h You are correct... But you also need to link with -lgen... Therefore, to use it - you would need a test in texk/web2c/configure - and then link in pdftexdir with it as well as ttf2afm in texk/web2c directory So - either use xbasename - or redo configure and two Makefile.in a bit... Either would work for me... But note that ttf2afm.c is already using xstrdup right over there as well instead of testing for it in the system libraries - so the precedence would be to use xbasename Ezra
Re: 2.99.12 (Irix failure)
Either would work for me... But note that ttf2afm.c is already using xstrdup right over there as well instead of testing for it in the system libraries - That is right. We can't make a fix just for Irix. Using xstrdup is the rigth way of fixing it. Thomas
Re: 2.99.12 (Irix failure)
Have a problem under Irix... basename is not present on the system Need to use xbasename.. (And one needs to remove texk/web2c/ttf2afm.c before recompiling as it is copied) I'll let you know if there any other problems by tomorrow morning... *** texk/web2c/pdftexdir/ttf2afm.c 2005/02/04 03:24:02 1.1 --- texk/web2c/pdftexdir/ttf2afm.c 2005/02/04 03:24:31 *** *** 975,981 cur_file_name = argv[optind]; if (print_cmap) { buf = xstrdup(cur_file_name); ! bname = basename(buf); if ((s = rindex(bname, '.')) != NULL) *s = 0; } --- 975,981 cur_file_name = argv[optind]; if (print_cmap) { buf = xstrdup(cur_file_name); ! bname = xbasename(buf); if ((s = rindex(bname, '.')) != NULL) *s = 0; }