Re: Building GS on Cygwin

Ralph Giles <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.patches
Message-ID <[email protected]>
On Saturday, August 16, 2003, at 02:10 PM, Alex Cherepanov wrote:

> The following 2 fixes are required to build GS on Cygwin.
>
> Cygwin has no stdint.h but defines "MS types" in sys/types.h.
> sys/types.h is included by many other standard headers.
> Some MS types conflict with a standard type emulation provided
> by config_types.h . So we have to define missing types via MS types.

Can you be more specific here? If you compile jbig2dec by itself, 
configure should fill in the typedefs based on the detected sizes. Do 
you see the type conflicts in that case? I'd like the library itself to 
build as well as Ghostscript.

If you're compiling jbig2dec into ghostscript, it's up to stdpre.h to 
provide these on the gs side and I don't see how it does. How does that 
work?

I'd also rather have the __CYGWIN__ clause in os_types.h at the end of 
the #if tree for the sake of readability.

> Cygwin requires X11 libraries in the order Xt SM ICE Xext X11
> but autoconf generated them in the order SM ICE Xt Xext X11

Interesting. I'm not sure what the 'proper' order is. Go ahead and 
commit this part; we'll see if it causes problems on other systems.

> I don't know why does it is significant but pre-autoconf
> scripts use Xt SM ICE Xext X11 order.

Ok. The docs only say that $X_PRE_LIBS goes before X11, so maybe your 
change is the correct way to handle it.

  -r
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.