bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21590: 25.0.50; MS-Windows; fns.c:4863:21: error: 'MD5_DIGEST_SIZE'


From: Keith David Bershatsky
Subject: bug#21590: 25.0.50; MS-Windows; fns.c:4863:21: error: 'MD5_DIGEST_SIZE' undeclared (first use in this function)
Date: Wed, 30 Sep 2015 14:26:08 -0700

Eureka!  I now have a working recipe to build Emacs on WindowsXP with image 
support.  It ended up being a combination of mingw32, ezwinports, and xpm from 
GnuWin.  I will write up a current "cheat sheet" on emacs.stackexchange.com in 
the near future -- I opened a question there a couple of days ago.

The build fails at least a couple of ways on WindowsXP as described in this bug 
report #21590 when using GnuWin32, so there should probably be a strong warning 
(near the top) in the Emacs INSTALL readme file advising against using that 
resource -- and suggesting the use of ezwinports instead.  Alternatively, it 
may be a good idea at some point for the Emacs team to find out why Emacs fails 
(beyond just moving `md5.h` out of the way) to build with GnuWin32 and create a 
workaround in the building scripts, etc. since others will undoubtedly try to 
use that resource in the future.

Eli:  As a feature request, please consider adding an XPM zip archive to 
ezwinports as this portion of the build recipe is more complicated than it 
needs to be.

Here is the rough outline of the recipe for building Emacs master branch on 
Windows XP -- thank you all for helping me to get passed several hurdles until 
finally reaching a working solution:

;; https://git-scm.com/download/win
Git-2.5.3-32-bit.exe
Run the installer.
Next
Next
Standard installation directory is `C:\Program Files\Git`, but I chose instead: 
 c:\git
Select components:  default is okay, but I chose nothing instead.
Select start menu folder:  default is okay, bit I chose not to create a folder 
instead.
Adjusting your PATH environment:  default is okay:  Use Git from Bash only.
;; For this next section, pay close attention to the non-default setting -- see 
Emacs bug #21582.
Configure the line ending conversions:  Emacs requires a non-default setting of 
"checkout as-is, commit as-is"
Configuring the terminal emulator to use with Git Bash:  default is okay:  Use 
MinTTY (the default terminal of MSys2)
Configuring experimental performance tweaks:  I chose NOT to "Enable file 
system caching".
Finish [view release notes if so desired]

;; http://www.mingw.org/wiki/Getting_Started
;; mingw-get-setup.exe
c:\mingw\bin\mingw-get install mingw32-base
c:\mingw\bin\mingw-get install msys-base
c:\mingw\bin\mingw-get install autoconf
c:\mingw\bin\mingw-get install automake
c:\mingw\bin\mingw-get install msys-coreutils
c:\mingw\msys\1.0\msys.bat
mount c:/mingw /mingw

;; https://sourceforge.net/projects/ezwinports/files/
;; unzip all of the following ezwinports packages into `c:/mingw`, overwriting 
any duplicates.
giflib-5.1.0-w32-bin.zip
gnutls-3.3.11-w32-bin.zip
jpeg-v9a-w32-bin.zip
libpng-1.6.12-w32-bin.zip
libxml2-2.7.8-w32-bin.zip
mingw-get-setup.exe
tiff-4.0.3-w32-bin.zip
zlib-1.2.8-2-w32-bin.zip

;; https://sourceforge.net/projects/gnuwin32/files/xpm/3.5.1-1/
;; Obtain from:  xpm-3.5.1-1-src.zip
;; Obtain from:  xpm-3.5.1-1-src.zip
;; extract `simx.h` from 
`xpm-3.5.1-1-src/src/xpm/3.5.1/libXpm-3.5.1-src/lib/simx.h`
;; extract `xpm.h` from 
`/Users/HOME/Desktop/xpm-3.5.1-1-src/src/xpm/3.5.1/libXpm-3.5.1-src/lib/xpm.h`
;; extract `xpm4.dll` from `/Users/HOME/Desktop/xpm-3.5.1-1-bin/bin/xpm4.dll`
;; copy `simx.h` to `C:\mingw\include`
;; copy `xpm.h` to `C:\mingw\include\X11` -- create that directory.
;; copy `xpm4.dll` to `C:\mingw\bin`

c:\git\git-bash.exe

cd /c/docume~1/lawlist/desktop/

git clone -b master git://git.sv.gnu.org/emacs.git

c:\mingw\msys\1.0\msys.bat

cd /c/docume~1/lawlist/desktop/emacs

./autogen.sh

./configure --prefix=/c/docume~1/lawlist/desktop/trunk

make

make install

;; copy the following files to the `/bin` directory where `emacs.exe` is 
located.
giflib4.dll
jpeg62.dll
libXpm.dll
libpng16-16.dll
libtiff3.dll
xpm4.dll
zlib1.dll





reply via email to

[Prev in Thread] Current Thread [Next in Thread]