dvipng compilation error for teTeX 2.99.3 on OSF1

Svend Tollak Munkejord <[email protected]> Wed, 10 Nov 2004 15:17:40 +0100
Newsgroups gmane.comp.tex.tetex.beta
Organization The Royal Society for Putting Things on Top of Other Things
Message-ID <[email protected]>
Hi,

I have tried to compile teTeX 2.99.3 on Tru64 Unix (OSF1) V5.1: 

env CC=cc CXX=cxx sh -c './configure \
 --prefix=/usr/local/share/teTeX-beta >configure.log 2>&1' && \
 sh -c 'make all >all.log 2>&1' &

However, I got the following error:

make[2]: Entering directory `/home/vsl175/a/svendm/hentet/tetex-src-2.99.3.20041109-beta/texk/dvipng'
cc -DHAVE_CONFIG_H  -I. -I. -I.. -I./.. -DHAVE_KPSE_ENC_FORMATS -DHAVE_PNG_H -DHAVE_T1LIB_H -DHAVE_LIBKPATHSEA -DHAVE_LIBT1 -DHAVE_GD_H -DHAVE_LIBGD -DHAVE_GDIMAGEPNGEX -DHAVE_GDIMAGECREATETRUECOLOR -DHAVE_GDIMAGETRUECOLORTOPALETTE -I../../libs/libpng -I./../../libs/libpng -I../../libs/zlib -I./../../libs/zlib -DDEBUG=1 -DHAVE_GDIMAGEGIF -I../../libs/t1lib -I./../../libs/t1lib -I../../libs/t1lib/../type1 -I./../../libs/t1lib/../type1 -I../../libs/gd -I./../../libs/gd  -g -Olimit 1000 -std1  -c dvipng.c -o dvipng.o
cc: Error: dvipng.c, line 67: Invalid statement. (badstmt)
  //  setbuf(stderr, NULL);
--^
make[2]: *** [dvipng.o] Error 1

I don't know much about these things, but I hope you do :-)

I also tried compiling with gcc (i.e. without setting CC and CXX), and
that worked. However, xdvi turned up with a fancy interface, and died
after a second:

svendm@vsl175 > xdvi test
Warning: Cannot convert string "-*-Menu-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1" to type FontStruct
xdvi-motif.bin 22.84.6 (Motif toolkit): events.c:4175: Shouldn't happen: Segmentation fault - trying to clean up and aborting ...
IOT/Abort trap (core dumped)

I also tried configuring and compiling teTeX with
--with-x-toolkit=xaw, but got the same thing:

svendm@vsl175 > xdvi test
xdvi-xaw.bin 22.84.6 (Xaw toolkit): events.c:4175: Shouldn't happen: Segmentation fault - trying to clean up and aborting ...
IOT/Abort trap (core dumped)

Note that in test.tex I had \usepackage{lucidabr}. For a file not
using the Lucida font, xdvi didn't crash, but I got some strange
messages:

svendm@vsl175 > xdvi hallo
Unaligned access pid=208510 <xdvi-xaw.bin> va=0x1402b8444 pc=0x12006f640 ra=0x12006fba8 inst=0xa4100000
Unaligned access pid=208510 <xdvi-xaw.bin> va=0x1402b8444 pc=0x12006f640 ra=0x12006fba8 inst=0xa4100000
Unaligned access pid=208510 <xdvi-xaw.bin> va=0x1402b844c pc=0x12006f640 ra=0x12006fba8 inst=0xa4100000
Unaligned access pid=208510 <xdvi-xaw.bin> va=0x1402b8454 pc=0x12006f640 ra=0x12006fba8 inst=0xa4100000
Unaligned access pid=208510 <xdvi-xaw.bin> va=0x1402b845c pc=0x12006f640 ra=0x12006fba8 inst=0xa4100000
Unaligned access pid=208510 <xdvi-xaw.bin> va=0x1402b8464 pc=0x12006f640 ra=0x12006fba8 inst=0xa4100000
Unaligned access pid=208510 <xdvi-xaw.bin> va=0x1402b846c pc=0x12006f640 ra=0x12006fba8 inst=0xa4100000

Another thing: in mt-yy.map, the lines 
mtex MTEX <mtex.pfb
mtsy MTSY <mtsy.pfb
rmtmi RMTMI <rmtmi.pfb

cause warnings about duplicate map entries to be issued by pdflatex
and xdvi.

Finally, I have compiled teTeX on my SuSE Linux 9.1 PC (which didn't
have Motif installed). There, everything seems to work OK.

Regards,
-- 
Svend Tollak Munkejord