DDD 3.3.8 (i686-pc-cygwin) gets `Segmentation fault WAS Re: c ompiling DDD
Harold L Hunt II
huntharo@msu.edu
Thu Dec 4 15:49:00 GMT 2003
Richard Campbell wrote:
>>Modifying ddd/config.h will not help. There is a problem with the
>>lesstif distribution on cygwin. See:
>>http://www.lesstif.org/INSTALL.html
>
>
> Is the following what you are referring to?
>
> "On windows using Cygwin, U/WIN or Interix, LessTif must be built as
> static libraries. Because, one of the biggest issues with X on Win32
> is the moronic DLL format. Specifically - it is not possible to export
> data from a Win32 DLL in a form that can be used to statically initialize
> another global variable. Data access from a DLL requires at least one
> pointer indirection, and hence executable code. This is why X11R6 doesn't
> have DLLs for Xt/Xmu/Xaw (and Motif) on Win32."
>
> If yes, these rules have been changing. Brian, isn't this what you
> were specifically working on recently?
The statement in quotes above is now misleading and completely
incorrect. We are distributing *only* a shared version of LessTif on
Cygwin now. The various problems mentioned in the quote all have
work-arounds, some of which were already used by OS/2; we enabled those
work-arounds and adding one or two more of our own and the shared
LessTif library compiles and works fine now.
The problem is not with Cygwin's LessTif... the problem is in how DDD is
detecting LessTif on Cygwin. It must be assuming that the file name for
the import library with be of the format foo.a whereas the name is of
the format foo.dll.a on Cygwin.
Harold
More information about the Cygwin-xfree
mailing list