【发布时间】:2021-06-11 13:54:18
【问题描述】:
在虚拟机的 debian 8 上的 gitian-builder 中运行 ./bin/gbuild ../learncoin/contrib/gitian-descriptors/deps-win32.yml 时,我收到此错误,不知道如何修复它。如果有人可以提供帮助,那就太棒了。谢谢杰米;)
+ make -j2 library_build
./libtool --mode=compile i686-w64-mingw32-gcc -c -I. -I../dist/.. -O3 ../dist/../mutex/mut_win32.c
./libtool --mode=compile i686-w64-mingw32-gcc -c -I. -I../dist/.. -O3 ../dist/../btree/bt_compare.c
libtool: compile: i686-w64-mingw32-gcc -c -I. -I../dist/.. -O3 ../dist/../mutex/mut_win32.c -o mut_win32.o
libtool: compile: i686-w64-mingw32-gcc -c -I. -I../dist/.. -O3 ../dist/../btree/bt_compare.c -o bt_compare.o
In file included from ../dist/../mutex/mut_win32.c:9:0:
./db_config.h:600:19: error: two or more data types in declaration specifiers
#define socklen_t int
^
../dist/../dbinc/repmgr.h:502:13: note: in expansion of macro ‘socklen_t’
typedef int socklen_t;
^
In file included from ./db_int.h:886:0,
from ../dist/../mutex/mut_win32.c:12:
../dist/../dbinc/repmgr.h:502:1: warning: useless type name in empty declaration [enabled by default]
typedef int socklen_t;
^
In file included from ../dist/../btree/bt_compare.c:44:0:
./db_config.h:600:19: error: two or more data types in declaration specifiers
#define socklen_t int
^
../dist/../dbinc/repmgr.h:502:13: note: in expansion of macro ‘socklen_t’
typedef int socklen_t;
^
In file included from ./db_int.h:886:0,
from ../dist/../btree/bt_compare.c:46:
../dist/../dbinc/repmgr.h:502:1: warning: useless type name in empty declaration [enabled by default]
typedef int socklen_t;
^
make: *** [mut_win32.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [bt_compare.o] Error 1
【问题讨论】:
-
只是为了澄清。
-j2在这里重要吗?或者,如果您只运行make library_build,您会看到相同的错误吗? -
在 deps-win32.yml 中调用 make $MAKEOPTS library_build