Re: problem compiling 2.96.0.20040321
Harald Koenig <[email protected]>
| Newsgroups | gmane.comp.tex.tetex.beta |
|---|---|
| Message-ID | <[email protected]> |
On Mar 22, Stefan Ulrich wrote: > Reinhard Kotucha <[email protected]> writes: > > > xm_colorsel.c: In function `h_create_sliders': > > xm_colorsel.c:343: `XmEACH_SIDE' undeclared (first use in this function) > > OK. What's the output of > $ egrep -i 'xmversion|xmrevision' /usr/X11R6/include/Xm/Xm.h > ? I had the same problem on IRIX 6.5: 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" and on DEC Alpha OSF1 V4.0: alpha40 xdvik > egrep -i 'xmversion|xmrevision' /usr/include/Xm/Xm.h #define XmVERSION 1 #define XmREVISION 2 #define XmVersion (XmVERSION * 1000 + XmREVISION) #define XmVERSION_STRING "@(#)OSF/Motif Version 1.2.3" #define XmVERSION_STRING "@(#)OSF/Motif Version 1.2.4" both systems are missing the libXp which is hard wired in xdvik/configure: x_tool_libs="-lXp -lXm -lXmu -lXt" ^^^^ with the following patch and removing "-lXp" xdvik build fine on those motif-1 systems: ------------------------------------------------------------------------------- --- tetex-src-beta-2.96.0.20040321/texk/xdvik/gui/xm_colorsel.c~ Thu Mar 18 00:22:54 2004 +++ tetex-src-beta-2.96.0.20040321/texk/xdvik/gui/xm_colorsel.c Mon Mar 22 16:52:48 2004 @@ -340,7 +340,9 @@ /* 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 > 1 XtSetArg(scale_args[scale_n], XmNshowArrows, XmEACH_SIDE); scale_n++; +#endif str = XmStringCreateLocalized("Red"); XtSetArg(label_args[0], XmNlabelString, str); ------------------------------------------------------------------------------- > > For the time being, you can just uncomment that line. There > may be other similar problems since I never tried with Motif > 1.x; maybe you can do `make -k' in texk/xdvik/ and send me the > whole bunch via mail. 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] ^^^^^ ^^^^^