Re: new runtime pseudo-reloc in cygwin 1.3.18

2002-12-31 Thread Charles Wilson
Alexander Gottwald wrote: So I don't even know where _XtInherit is called and whats different with the relocation. gdb revealed: Dll1 (libXt) defines void _XtInherit(). Dll2 (libXaw) uses _XtInherit and passes it to a function in libXt which does if (x == _XtInherit) { foo() };

Re: new runtime pseudo-reloc in cygwin 1.3.18

2002-12-31 Thread Alexander Gottwald
Charles Wilson wrote: I seem to remember that pointer comparisons across a DLL boundary is a Bad Thing; relocations and such. But I don't remember where I saw that -- MSDN or ld docs, and I can't find it now. :-( I changed it so that libXt uses _XtInherit and all other libraries and code

Re: new runtime pseudo-reloc in cygwin 1.3.18

2002-12-31 Thread Alexander Gottwald
Alexander Gottwald wrote: I changed it so that libXt uses _XtInherit and all other libraries and code uses _imp___XtInherit. Now it seems that the comparisation is passed, but It's worse than that. No. That was wrong. I think I'll have to redefine _XtInherit to NULL. The compare will work

Re: new runtime pseudo-reloc in cygwin 1.3.18

2002-12-31 Thread Alexander Gottwald
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.

Re: new runtime pseudo-reloc in cygwin 1.3.18

2002-12-30 Thread Alexander Gottwald
Alan Hourihane wrote: Without the reloc patch everything is fine. The problem is _XtInherit. I'm now trying to build all libraries with the SUNSHLIB macro. maybe this works. At least xclock started after i replaced cygXt-6.dll with a version where SUNSHLIB was defined. Great work,

Re: new runtime pseudo-reloc in cygwin 1.3.18

2002-12-30 Thread Alexander Gottwald
Alexander Gottwald wrote: So I don't even know where _XtInherit is called and whats different with the relocation. gdb revealed: Dll1 (libXt) defines void _XtInherit(). Dll2 (libXaw) uses _XtInherit and passes it to a function in libXt which does if (x == _XtInherit) { foo() };

Re: new runtime pseudo-reloc in cygwin 1.3.18

2002-12-28 Thread Alan Hourihane
On Fri, Dec 27, 2002 at 10:23:22PM -0500, Christopher Faylor wrote: On Sat, Dec 28, 2002 at 01:40:50AM +, Alan Hourihane wrote: On Fri, Dec 27, 2002 at 09:49:15 +0100, Alexander Gottwald wrote: But some programs (xedit, viewres, xmessage) report an runtime error Error: Unresolved

Re: new runtime pseudo-reloc in cygwin 1.3.18

2002-12-28 Thread Alan Hourihane
On Fri, Dec 27, 2002 at 09:49:15PM +0100, Alexander Gottwald wrote: But some programs (xedit, viewres, xmessage) report an runtime error Error: Unresolved inheritance operation I can confirm I get this too Alexander. Alan.

Re: new runtime pseudo-reloc in cygwin 1.3.18

2002-12-28 Thread Alexander Gottwald
Alan Hourihane wrote: But some programs (xedit, viewres, xmessage) report an runtime error Error: Unresolved inheritance operation I can confirm I get this too Alexander. I'll do a build without the pseudo-relocation changes and see if it happens there too. I hope the error resulted from

Re: new runtime pseudo-reloc in cygwin 1.3.18

2002-12-28 Thread Alexander Gottwald
Alan Hourihane wrote: Seems we'll need to tweak the build process to chmod them. Found the error. See attached patch. NP: Blutengel - Angel Dust III -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723 --- cygwin.rules.oldSat Dec 28 18:24:44 2002 +++

Re: new runtime pseudo-reloc in cygwin 1.3.18

2002-12-28 Thread Christopher Faylor
On Sat, Dec 28, 2002 at 04:53:21PM +, Alan Hourihane wrote: On Fri, Dec 27, 2002 at 10:23:22PM -0500, Christopher Faylor wrote: On Sat, Dec 28, 2002 at 01:40:50AM +, Alan Hourihane wrote: On Fri, Dec 27, 2002 at 09:49:15 +0100, Alexander Gottwald wrote: But some programs (xedit,

Re: new runtime pseudo-reloc in cygwin 1.3.18

2002-12-28 Thread Alexander Gottwald
Alexander Gottwald wrote: Alan Hourihane wrote: But some programs (xedit, viewres, xmessage) report an runtime error Error: Unresolved inheritance operation I can confirm I get this too Alexander. I'll do a build without the pseudo-relocation changes and see if it happens there

Re: new runtime pseudo-reloc in cygwin 1.3.18

2002-12-28 Thread Alan Hourihane
On Sat, Dec 28, 2002 at 11:26:35PM +0100, Alexander Gottwald wrote: Alexander Gottwald wrote: Alan Hourihane wrote: But some programs (xedit, viewres, xmessage) report an runtime error Error: Unresolved inheritance operation I can confirm I get this too Alexander. I'll

Re: new runtime pseudo-reloc in cygwin 1.3.18

2002-12-27 Thread Alexander Gottwald
Alan Hourihane wrote: I'm about to commit a patch to the XFree86 CVS that uses the new relocation code in cygwin 1.3.18. This allows us to create the last few libraries as shared code. How will this affect people with cygwin 1.3.18? I've build tested the entire tree without problems, but

Re: new runtime pseudo-reloc in cygwin 1.3.18

2002-12-27 Thread Charles Wilson
Alexander Gottwald wrote: Alan Hourihane wrote: I'm about to commit a patch to the XFree86 CVS that uses the new relocation code in cygwin 1.3.18. This allows us to create the last few libraries as shared code. How will this affect people with cygwin 1.3.18? It won't affect them

Re: new runtime pseudo-reloc in cygwin 1.3.18

2002-12-27 Thread Alexander Gottwald
Alexander Gottwald wrote: I've build tested the entire tree without problems, but not tested cross compiling. I'll try today. Or this weekend. I'll have to build cygwin too *g* The build was ok, except: config/cf/cygwin.tmpl needs #define SharedXfontReqs $(LDPRELIB) $(XLIBONLY)

Re: new runtime pseudo-reloc in cygwin 1.3.18

2002-12-27 Thread Alan Hourihane
On Fri, Dec 27, 2002 at 09:49:15 +0100, Alexander Gottwald wrote: But some programs (xedit, viewres, xmessage) report an runtime error Error: Unresolved inheritance operation , just tried the binaries on my w2k box and it gives... The application failed to initialize properly

Re: new runtime pseudo-reloc in cygwin 1.3.18

2002-12-27 Thread Christopher Faylor
On Sat, Dec 28, 2002 at 01:40:50AM +, Alan Hourihane wrote: On Fri, Dec 27, 2002 at 09:49:15 +0100, Alexander Gottwald wrote: But some programs (xedit, viewres, xmessage) report an runtime error Error: Unresolved inheritance operation , just tried the binaries on my w2k box and it