安装libgpg-error时出错

时间:2017-12-03 12:32:33

标签: mingw

我正在尝试在Windows上安装vmime,所以我正在关注本教程http://web.archive.org/web/20151201200805/http://vmime.omgwtfbbq.nl/ 我到了必须安装libgpg-error-1.27的地步,所以我输入了tuto中提到的命令,更改了c的版本,一切正常,直到我运行make,它显示了这些错误

$make
make  all-recursive
make[1]: Entering directory `/usr/home/usr/libgpg-error-1.27'
Making all in m4
make[2]: Entering directory `/usr/home/usr/libgpg-error-1.27/m4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/home/usr/libgpg-error-1.27/m4'
Making all in src
make[2]: Entering directory `/usr/home/usr/libgpg-error-1.27/src'
make  all-am
make[3]: Entering directory `/usr/home/usr/libgpg-error-1.27/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -
DLOCALEDIR=\"/mingw/share/locale\"  -I/mingw/include  -g -O2 -Wall -Wpointer-
arith -Wno-psabi -MT libgpg_error_la-w32-estream.lo -MD -MP -MF 
.deps/libgpg_error_la-w32-estream.Tpo -c -o libgpg_error_la-w32-estream.lo 
`test -f 'w32-estream.c' || echo './'`w32-estream.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -
DLOCALEDIR=\"/mingw/share/locale\" -I/mingw/include -g -O2 -Wall -Wpointer-
arith -Wno-psabi -MT libgpg_error_la-w32-estream.lo -MD -MP -MF 
.deps/libgpg_error_la-w32-estream.Tpo -c w32-estream.c  -DDLL_EXPORT -DPIC -o 
.libs/libgpg_error_la-w32-estream.o
w32-estream.c: In function '_gpgrt_w32_poll':
w32-estream.c:779:8: warning: variable 'waitinfo' set but not used [-Wunused-
but-set-variable]
   char waitinfo[MAXIMUM_WAIT_OBJECTS];
        ^~~~~~~~
w32-estream.c: In function 'func_w32_pollable_seek':
w32-estream.c:1012:23: error: 'EOPNOTSUPP' undeclared (first use in this 
function)
   _gpg_err_set_errno (EOPNOTSUPP);
                   ^~~~~~~~~~
w32-estream.c:1012:23: note: each undeclared identifier is reported only once 
for each function it appears in
w32-estream.c: In function 'func_w32_pollable_ioctl':
w32-estream.c:1038:23: error: 'EOPNOTSUPP' undeclared (first use in this 
function)
   _gpg_err_set_errno (EOPNOTSUPP);
                   ^~~~~~~~~~
make[3]: *** [libgpg_error_la-w32-estream.lo] Error 1
make[3]: Leaving directory `/usr/home/usr/libgpg-error-1.27/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/home/usr/libgpg-error-1.27/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/home/usr/libgpg-error-1.27'
make: *** [all] Error 2

我尝试安装旧版本的libgpg-error但它也会出错。 我必须说我对这些东西一无所知。

1 个答案:

答案 0 :(得分:0)

我今天遇到了同样的问题;经过一些研究,我设法在简单地添加

之后编译它
#define EOPNOTSUPP 45

位于w32-estream.c。

的顶部