Hi, I'm trying to compile xdvik 22.40f from teTeX-bin-beta-20011202 for SunOS-5.5.1 which has only X11R5. X11R5 doesn't have XInternAtoms() which was only introduced in R6.
knowing close to noting about user-level X11, I tried the patch below to get around the ld problems, but when trying to run xdvi now I get X Error of failed request: BadAtom (invalid Atom parameter) Major opcode of failed request: 18 (X_ChangeProperty) Atom id in failed request: 0x0 Serial number of failed request: 99 Current serial number in output stream: 101 with the following traceback: #0 0xef668c7c in XGetErrorText () from /usr/openwin/lib/libX11.so.4 #1 0xef6793a4 in _XPrintDefaultError () from /usr/openwin/lib/libX11.so.4 #2 0xef658254 in _XDefaultError () from /usr/openwin/lib/libX11.so.4 #3 0xef64d858 in _XError () from /usr/openwin/lib/libX11.so.4 #4 0xef63f884 in _XReply () from /usr/openwin/lib/libX11.so.4 #5 0xef6521e8 in XQueryColor () from /usr/openwin/lib/libX11.so.4 #6 0x3db1c in init_pix () at events.c:982 #7 0x33438 in main (argc=0, argv=0x10a800) at xdvi.c:3346 any suggestion how to get xdvi running on X11R5 ? thanks! --- teTeX-src-beta-20011202/texk/xdvik/xdvi.c~ Sat Nov 3 00:45:56 2001 +++ teTeX-src-beta-20011202/texk/xdvik/xdvi.c Tue Dec 4 17:55:59 2001 @@ -2476,15 +2476,17 @@ /* Check early for whether to pass off to a different xdvi process * (-sourceposition argument for reverse source special lookup). */ +#if XlibSpecificationRelease >= 6 if (!XInternAtoms(DISP, atom_names, XtNumber(atom_names), False, atoms)) oops("XtInternAtoms failed."); if (debug & DBG_CLIENT) { for (i = 0; i < XtNumber(atom_names); ++i) TRACE_CLIENT((stderr, "Atom(%s) = %lu", atom_names[i], atoms[i])); } +#endif if (dvi_name == NULL) { #ifdef SELFILE extern FILE *select_filename (); Harald -- "I hope to die ___ _____ before I *have* to use Microsoft Word.", 0--,| /OOOOOOO\ Donald E. Knuth, 21-09-2001 in Tuebingen. <_/ / /OOOOOOOOOOO\ \ \/OOOOOOOOOOOOOOO\ \ OOOOOOOOOOOOOOOOO|// Harald Koenig \/\/\/\/\/\/\/\/\/ science+computing ag // / \\ \ [EMAIL PROTECTED] ^^^^^ ^^^^^