Cron <luatex@server> /home/luatex/luatex-svn
U luatex/src/texk/web2c/luatexdir/Makefile.in U luatex/src/texk/web2c/luatexdir/lua/lfontlib.c A luatex/src/texk/web2c/luatexdir/font/ttfspecial.c A luatex/src/texk/web2c/luatexdir/font/ttflua.c A luatex/src/texk/web2c/luatexdir/font/ustring.h A luatex/src/texk/web2c/luatexdir/font/cjk.c A luatex/src/texk/web2c/luatexdir/font/basics.h A luatex/src/texk/web2c/luatexdir/font/sd.h A luatex/src/texk/web2c/luatexdir/font/chardata.h A luatex/src/texk/web2c/luatexdir/font/charset.h A luatex/src/texk/web2c/luatexdir/font/ttf.h A luatex/src/texk/web2c/luatexdir/font/gwwiconv.c A luatex/src/texk/web2c/luatexdir/font/ttfencoding.c A luatex/src/texk/web2c/luatexdir/font/ttfotf.c A luatex/src/texk/web2c/luatexdir/font/ttfatt.c A luatex/src/texk/web2c/luatexdir/font/gwwiconv.h A luatex/src/texk/web2c/luatexdir/font/namelist.c A luatex/src/texk/web2c/luatexdir/font/psfont.h A luatex/src/texk/web2c/luatexdir/font/psread.c A luatex/src/texk/web2c/luatexdir/font/alphabet.c A luatex/src/texk/web2c/luatexdir/font/pua.c A luatex/src/texk/web2c/luatexdir/font/fvfonts.c A luatex/src/texk/web2c/luatexdir/font/splinefont.h Checked out revision 288.
Checked out revision 288.
This does not compile right away, the Makefile stops here: gcc -DHAVE_CONFIG_H -I. -I../../../../src/texk/web2c/luatexdir -I.. -I../../../../src/texk/web2c/luatexdir/../.. -I.. -I../../../../src/texk/web2c/luatexdir/.. -I../.. -I../../../../src/texk/web2c/luatexdir/../.. -I../../../libs/md5 -I../../../../src/texk/web2c/luatexdir/../../../libs/md5 -I../../../libs/libpng -I../../../../src/texk/web2c/luatexdir/../../../libs/libpng -I../../../libs/zlib -I../../../../src/texk/web2c/luatexdir/../../../libs/zlib -I../../../libs/xpdf -I../../../libs/xpdf/.. -I../../../../src/texk/web2c/luatexdir/../../../libs/xpdf -I../../../../src/texk/web2c/luatexdir/../../../libs/xpdf/.. -I../../../libs/obsdcompat -I../../../libs/obsdcompat/.. -I../../../../src/texk/web2c/luatexdir/../../../libs/obsdcompat -I../../../../src/texk/web2c/luatexdir/../../../libs/obsdcompat/.. -DpdfTeX -g -O2 -c ../../../../src/texk/web2c/luatexdir/font/ttfotf.c -o font/ttfotf.o ../../../../src/texk/web2c/luatexdir/font/ttfotf.c:3141: error: conflicting types for “getsid” /usr/include/unistd.h:510: error: previous declaration of “getsid” was here ../../../../src/texk/web2c/luatexdir/font/ttfotf.c: In function “MMFillFromVAR”: ../../../../src/texk/web2c/luatexdir/font/ttfotf.c:5272: warning: passing argument 1 of “copy” from incompatible pointer type ../../../../src/texk/web2c/luatexdir/font/ttfotf.c:5272: warning: assignment from incompatible pointer type ../../../../src/texk/web2c/luatexdir/font/ttfotf.c:5279: warning: passing argument 1 of “copy” from incompatible pointer type ../../../../src/texk/web2c/luatexdir/font/ttfotf.c:5279: warning: assignment from incompatible pointer type make[1]: *** [font/ttfotf.o] Error 1 make: *** [luatexdir/libpdf.a] Error 2
Arthur Reutenauer wrote:
-O2 -c ../../../../src/texk/web2c/luatexdir/font/ttfotf.c -o font/ttfotf.o ../../../../src/texk/web2c/luatexdir/font/ttfotf.c:3141: error: conflicting types for “getsid” /usr/include/unistd.h:510: error: previous declaration of “getsid” was here
Ah, ok. It seems OSX has a getsid function thanks to XOOPEN. Luckily, that was easy to fix, because luatex's function is something completely different. I would be happy if you could try again, I committed a one-line fix. Btw, this code implements font.read_ttf("filename") and font.read_otf("filename") if it succeeds, the return value is a table containing a lua representation of the font, with a bit of preprocessing applied. I am not totally happy with the interface, and that is why I have not created a snapshot yet. Best, Taco
Ah, ok. It seems OSX has a getsid function thanks to XOOPEN. Luckily, that was easy to fix, because luatex's function is something completely different. I would be happy if you could try again, I committed a one-line fix.
It works, thanks for the quick update.
Btw, this code implements
font.read_ttf("filename") and font.read_otf("filename")
Sounds great.
participants (3)
-
Arthur Reutenauer
-
root@aanhet.net
-
Taco Hoekwater