Hi,

trying to compile 2.99.10.20050123 on HP-UX 11.11 with gcc-3.3.3 and Motif 
breaks in xdvi

        gcc -D_HPUX_SOURCE  -DHAVE_CONFIG_H  -I. 
-I/soft/tex/teTeX-bin-beta-2.99.10.20050123/tetex-src-2.99.10.20050123-beta/texk/xdvik/gui
 -I../.. -I/soft/tex/teTeX-bin-beta-2.99.10
        .20050123/tetex-src-2.99.10.20050123-beta/texk/xdvik/.. -W -Wall 
-Wunused -I.. 
-I/soft/tex/teTeX-bin-beta-2.99.10.20050123/tetex-src-2.99.10.20050123-beta/texk/xdvik/gui/..
  
        -DPS_GS  -DXSERVER_INFO  -g -O2  -c mag.c -o mag.o
        In file included from ../../kpathsea/c-memstr.h:29,
                         from ../../kpathsea/c-std.h:75,
                         from ../../kpathsea/config.h:76,
                         from ../xdvi.h:43,
                         from mag.c:42:
        /usr/include/strings.h:52: error: parse error before '(' token
        /usr/include/strings.h:52: error: parse error before ')' token
        /usr/include/strings.h:53: error: parse error before '(' token
        /usr/include/strings.h:53: error: parse error before ')' token
        /usr/include/strings.h:54: error: parse error before numeric constant
        gmake[3]: *** [mag.o] Error 1

because X11/Xfuncs.h #defines bcopy(...) which causes that following error 
strings.h.


the patch below includes xdvi.h (which then includes strings.h) _before_ Xm.h
which avoid this trouble.


-------------------------------------------------------------------------------
--- tetex-src-2.99.10.20050123-beta/texk/xdvik/gui/mag.c~       2004-10-28 
01:16:41.000000000 +0200
+++ tetex-src-2.99.10.20050123-beta/texk/xdvik/gui/mag.c        2005-01-24 
15:42:44.000000000 +0100
@@ -35,11 +35,12 @@
 #include <limits.h>
 #include "c-openmx.h"
 
+#include "xdvi.h"
+
 #ifdef MOTIF
 #include <Xm/Xm.h>
 #endif
 
-#include "xdvi.h"
 #include "events.h"
 #include "dvi-draw.h"
 #include "dvi-init.h"
-------------------------------------------------------------------------------



Harald Koenig
-- 
"I hope to die                                      ___       _____
before I *have* to use Microsoft Word.",           0--,|    /OOOOOOO\
Donald E. Knuth, 02-Oct-2001 in Tuebingen.        <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig                                          \/\/\/\/\/\/\/\/\/
science+computing ag                                    //  /     \\  \
[EMAIL PROTECTED]                            ^^^^^       ^^^^^

Reply via email to