This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: new runtime pseudo-reloc in cygwin 1.3.18


Alexander Gottwald wrote:

> No. That was wrong. I think I'll have to redefine _XtInherit to NULL. The 
> compare will work but the fallback to produce the "Unresolved inheritance" 
> error will then result in a segfault.

NULL did not work. But I've changed it to another constant and now it works.
What should work too is using a cygwin or libX11 function. That means a 
function which is imported from a dll in both cases (libXt and libXaw) and
which terminates the program.  Maybe exit?

-----------8<-----------8<---------
diff -ur lib/Xt/Initialize.c lib/Xt/Initialize.c
--- lib/Xt/Initialize.c	Sat Jul  6 15:03:01 2002
+++ lib/Xt/Initialize.c	Tue Dec 31 15:47:20 2002
@@ -174,7 +174,9 @@
 #endif
 }
 
-
+#if defined(__CYGWIN__) 
+#undef _XtInherit
+#endif
 #ifdef SUNSHLIB
 void _XtInherit()
 {
diff -ur lib/Xt/IntrinsicP.h lib/Xt/IntrinsicP.h
--- lib/Xt/IntrinsicP.h	Mon Dec 17 18:32:44 2001
+++ lib/Xt/IntrinsicP.h	Tue Dec 31 18:53:32 2002
@@ -298,6 +298,9 @@
     void
 #endif
 );
+#if defined(__CYGWIN__) 
+#define _XtInherit 0xdeadbeef
+#endif
 
 extern void XtCreateWindow(
 #if NeedFunctionPrototypes
------------8<--------8<-------------

NP: Zeraphine - Flieh mit mir
-- 
 Alexander.Gottwald@informatik.tu-chemnitz.de 
 http://www.gotti.org           ICQ: 126018723


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]