:~/gpg4win$ ./autogen.sh
*** Activating trailing whitespace git pre-commit hook. ***
For more information see this thread: http://mail.gnome.org/archives/desktop-devel-list/2009-May/msg00084html
To deactivate this pre-commit hook again move .git/hooks/pre-commit
and .git/hooks/pre-commit.sample out of the way.
‘build-aux/git-hooks/pre-commit’ → ‘.git/hooks/pre-commit’
*** Adding GIT filter.cleanpo.clean configuration.
*** Activating commit log message check hook. ***
‘build-aux/git-hooks/commit-msg’ → ‘.git/hooks/commit-msg’
Running aclocal -I m4 …
Running autoheader…
Running automake --gnu …
configure.ac:79: warning: The ‘AM_PROG_MKDIR_P’ macro is deprecated, and its use is discouraged.
configure.ac:79: You should use the Autoconf-provided ‘AC_PROG_MKDIR_P’ macro instead,
configure.ac:79: and use ‘$(MKDIR_P)’ instead of '$(mkdir_p)'in your Makefile.am files.
Running autoconf …
You may now run “./autogen.sh --build-w32 && make”.
Press any key to continue…
:~/gpg4win$ ./autogen.sh --build-w32
Using /home/MyUser/w32root as standard install directory
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
/home/MyUser/gpg4win/missing: Unknown --is-lightweight' option Try /home/MyUser/gpg4win/missing --help’ for more information
configure: WARNING: ‘missing’ script is too old or missing
checking for i686-w64-mingw32-strip… i686-w64-mingw32-strip
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking whether make supports nested variables… yes
checking whether UID ‘1007’ is supported by ustar format… yes
checking whether GID ‘1007’ is supported by ustar format… yes
checking how to create a ustar tar archive… gnutar
checking whether to enable maintainer-specific portions of Makefiles… yes
checking build system type… x86_64-unknown-linux-gnu
checking host system type… i686-w64-mingw32
checking whether NLS is requested… yes
checking for msgfmt… /usr/bin/msgfmt
checking for gmsgfmt… /usr/bin/msgfmt
checking for xgettext… /usr/bin/xgettext
checking for msgmerge… /usr/bin/msgmerge
checking for i686-w64-mingw32-gcc… i686-w64-mingw32-gcc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.exe
checking for suffix of executables… .exe
checking whether we are cross compiling… yes
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether i686-w64-mingw32-gcc accepts -g… yes
checking for i686-w64-mingw32-gcc option to accept ISO C89… none needed
checking whether i686-w64-mingw32-gcc understands -c and -o together… yes
checking for style of include used by make… GNU
checking dependency style of i686-w64-mingw32-gcc… gcc3
checking how to run the C preprocessor… i686-w64-mingw32-gcc -E
checking for i686-w64-mingw32-ranlib… i686-w64-mingw32-ranlib
checking for i686-w64-mingw32-ar… i686-w64-mingw32-ar
checking for i686-w64-mingw32-strip… (cached) i686-w64-mingw32-strip
checking for i686-w64-mingw32-dlltool… i686-w64-mingw32-dlltool
checking for make… make
checking for unzip… unzip
checking for tar… tar
checking for mkdir… mkdir
checking for cp… cp
checking for rm… rm
checking for stow… stow
checking for makensis… makensis
checking for zcat… zcat
checking for texi2dvi… texi2dvi
checking for dvipdf… dvipdf
checking for convert… convert
checking for sha1sum… sha1sum
checking for msgfmt… /usr/bin/msgfmt
checking for gitlog-to-changelog… no
checking for gcc… gcc
checking for i686-w64-mingw32-x86_64-w64-mingw32-strip… no
checking for x86_64-w64-mingw32-strip… x86_64-w64-mingw32-strip
configure: WARNING: using cross tools not prefixed with host triplet
configure: Using autodetected 2 make jobs. You can override this by setting GPG4WIN_PARALLEL.
configure: error: can not find the runtime library libgcc_s_sjlj-1.dll in the default locations.
Use the --with-libgcc_s_sjlj-1 option to set the path directly.
Like this.
./autogen.sh --build-w32 --with-libgcc_s_sjlj-1=/dev/null --with-libstdc+±6=dev/null
However, as I mentioned before, download.sh still pulls old gnupg files.
I updated it with new zlip and libpng, and will now edit in gnupg 2.1.17, instead of the old 2.1.15 files.
thanks for trying to build Gpg4win, it means you want to play
with it, do some extensions or just trying to recreate the version your are using,
we like all of this. So if you run into problem, you can ask here
and another good place is the gpg4win-devel@ list.
As with all git builds from the “master” branch:
They sometimes do not work, because it is may be work in progress.
So please indicate which version you are trying to build in detail.
Indeed zlib needed an update, done that. We usually check for necessary updates of third party libraries before a release but we would gladly accept contributions regarding such updates. Just send patches to gpg4win-devel@wald.intevation.org
Regarding 2.1.18, yes this should come today or tomorrow, or so I was told
What there any resolution to this? I’m trying to compile on Ubuntu 16.04 and am running into the same issues. I tried from source and from the GIT repo using directions at https://wiki.gnupg.org/Gpg4win/build. No luck.
…
/bin/bash …/libtool --mode=link i686-w64-mingw32-gcc -Wl,–export-all-symbols -mms-bitfields -fvisibility=hidden -o libiconv.la -rpath /home/user/test/gpg4win/src/playground/install/pkgs/libiconv-1.14/lib -version-info 7:1:5 -no-undefined iconv.lo localcharset.lo relocatable.lo iconv-exports.lo libiconv.res.lo
libtool: link: i686-w64-mingw32-gcc -shared .libs/iconv.o .libs/localcharset.o .libs/relocatable.o .libs/iconv-exports.o .libs/libiconv.res.o -Wl,–export-all-symbols -mms-bitfields -o .libs/libiconv-2.dll -Wl,–enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libiconv.dll.a
.libs/iconv.o:iconv.c:(.text+0x19302): undefined reference to aliases2_lookup' .libs/iconv.o:iconv.c:(.text+0x1948c): undefined reference to aliases2_lookup’
.libs/iconv.o:iconv.c:(.text+0x198c1): undefined reference to aliases2_lookup' .libs/iconv.o:iconv.c:(.text+0x19a4f): undefined reference to aliases2_lookup’
.libs/iconv.o:iconv.c:(.text+0x1a1b4): undefined reference to `aliases2_lookup’
collect2: error: ld returned 1 exit status
Makefile:71: recipe for target ‘libiconv.la’ failed
I have more errors.
I need to run
./autogen.sh --build-w32 --with-libgcc_s_sjlj-1=/dev/null --with-libstdc+±6=dev/null
to get past that missing error, but when I do, I get other errors.