Re: problem compiling 2.96.0.20040321

Harald Koenig <[email protected]>
Newsgroups gmane.comp.tex.tetex.beta
Message-ID <[email protected]>
the motif-1 story goes on...  :-(

tetex-src-beta-2.96.1.20040322 xdvi does't link with motif-1!
reason is upper/lower case spelling of XmVERSION:


 	irix65 koenig > egrep -i 'xmversion|xmrevision' /usr/include/X11/Xm/Xm.h
==> 	#define XmVERSION       1
 	#define XmREVISION      2
==> 	#define XmVersion (XmVERSION * 1000 + XmREVISION)
 	#define XmVERSION_STRING "@(#)OSF/Motif Version 1.2.4"

XmVersion is (almost -- if motif-0 ever existed:) always >=2 
XmVERSION isn't.

here is the next patch for 20040322 with motif-1

 
-------------------------------------------------------------------------------
--- tetex-src-beta-2.96.1.20040322/texk/xdvik/gui/xm_colorsel.c.orig	Mon Mar 22 21:59:26 2004
+++ tetex-src-beta-2.96.1.20040322/texk/xdvik/gui/xm_colorsel.c	Tue Mar 23 13:53:13 2004
@@ -340,7 +340,7 @@
     /* True is an older setting of XmNshowValue that should also work with 2.x */
     XtSetArg(scale_args[scale_n], XmNshowValue, True); scale_n++;
     XtSetArg(scale_args[scale_n], XmNorientation, XmHORIZONTAL); scale_n++;
-#if XmVersion >= 2
+#if XmVERSION >= 2
     XtSetArg(scale_args[scale_n], XmNshowArrows, XmEACH_SIDE); scale_n++;
     /* XmVersion < 2000 only had `True' which was the default anyway */
 #endif
-------------------------------------------------------------------------------

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]                            ^^^^^       ^^^^^
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.