Unable to compile latest npth library for Windows.
Troy Clevenger
troy.clevenger at gmail.com
Sat Aug 10 20:33:03 CEST 2013
Hello,
After some trial and error I was able to get GnuPG-2.1.0beta3 compiled
and running on Windows using the latest Debian distro and mingw. This
is 100+ commits behind the latest on master, so I pulled down the
latest from the git repositories and tried to build that. Nothing
since the switch to using the npth library will compile for me though,
because it want's a newer version of the npth library. So I must not
be compiling it properly.
The latest npth code in git throws this error when I try to build it.
root at debian:~/npth# make
make all-recursive
make[1]: Entering directory `/root/npth'
Making all in w32
make[2]: Entering directory `/root/npth/w32'
/bin/bash ../libtool --tag=CC --mode=link i586-mingw32msvc-gcc -g
-O2 -no-undefined -export-symbols ./npth.def -version-info 0:2:0 -o
libnpth.la -rpath /root/w32root/lib npth.lo @NETLIBS@
libtool: link: /usr/bin/i586-mingw32msvc-nm -B .libs/npth.o | sed
-n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][
]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | sed '/ __gnu_lto/d' |
/bin/sed -e '/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[
]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //' | sort
| uniq > .libs/libnpth.exp
/usr/bin/i586-mingw32msvc-nm: '.libs/npth.o': No such file
libtool: link: if test "x`/bin/sed 1q .libs/libnpth.def`" = xEXPORTS;
then cp .libs/libnpth.def .libs/libnpth-0.dll.def; else echo EXPORTS >
.libs/libnpth-0.dll.def; cat .libs/libnpth.def >>
.libs/libnpth-0.dll.def; fi
libtool: link: i586-mingw32msvc-gcc -shared .libs/libnpth-0.dll.def
.libs/npth.o -O2 @NETLIBS@ -o .libs/libnpth-0.dll
-Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker
.libs/libnpth.dll.a
i586-mingw32msvc-gcc: .libs/npth.o: No such file or directory
i586-mingw32msvc-gcc: @NETLIBS@: No such file or directory
make[2]: *** [libnpth.la] Error 1
make[2]: Leaving directory `/root/npth/w32'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/npth'
make: *** [all] Error 2
I think I've initialized everything correctly using ./autogen.sh and
./autogen.sh --build-w32 before running make. I used narrowed it down
to commit 96964e02 where the NETLIBS block was removed from
configure.ac. If I restore that, it then compiles, but GnuPG build
still fails with npth library problems. So my guess is that I'm not
doing something right building npth.
If anyone can help, I'd be very grateful.
Troy
More information about the Gnupg-devel
mailing list