delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/06/11:02:55

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3A06D60C.EF09794A@ece.gatech.edu>
Date: Mon, 06 Nov 2000 11:02:20 -0500
From: "Charles S. Wilson" <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.75 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Andy Piper <andyp AT bea DOT com>
CC: cygwin AT sources DOT redhat DOT com, xemacs-nt AT xemacs DOT org
Subject: Re: DLL problems with cygwin XEmacs binary kit
References: <4 DOT 3 DOT 2 DOT 7 DOT 2 DOT 20001105122446 DOT 00cd9100 AT london DOT beasys DOT com>

Andy Piper wrote:
> 
> At 12:06 PM 11/2/00 -0500, Charles S. Wilson wrote:
> >The XEmacs-21.1.12 binary kit for cygwin, available from
> >http://www.xemacs.org/ or its mirrors, was compiled to use the 'old'
> >cygwin dlls for libtiff, libjpeg, and libz.  Thus, if your system uses
> >the latest cygwin versions of these packages, XEmacs will not work and
> >will fail with the following message:
> 
> I built the kit, I don't mind redoing it. I actually throught I had
> compiled in static libs to avoid this sort of problem. I am uneasy about
> compiling in dynamic libs for exactly these sort of reasons.
> 
> What version of cygwin is new? I am using 1.1.4

The current version of the cygwin package itself is 1.1.5-3, but many of
the other packages have also been updated.  Just run 'setup.exe' and
it'll update all the pieces to the latest version.

You can force static linking by doing:
  gcc -static (or ld -Bstatic) during the link step
BUT you must also use -Dpkg_STATIC during the compile step, where pkg is
one (or all) of:
  -DZLIB_STATIC -DPNG_STATIC -DJBIG_STATIC -DJPEG_STATIC -DTIFF_STATIC
-DGDBM_STATIC -DGETTEXT_STATIC

each -Dpkg_STATIC turns off the dll-specific declspec declarations for
the associated package.  If you want completely static linking, it's
probably easiest to just set CFLAGS and LDFLAGS as above, and then
configure as usual.

However, Andy, since the packages above *are* part of the official
distribution, they will (almost always) be available in a typical cygwin
installation -- so the dll's will be there.  I do not anticipate another
'name change' -- we did this as a proactive step to prevent DLL hell,
and it should not be necessary to do another name change.  I think
dynamic libs are a safe bet. Now.

--Chuck

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019