我正在尝试设置 namecoin,但在运行 makefile.unix 时出现以下错误:
$ g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -DNOPCH DFOURWAYSSE2 -DUSE_SSL -DUSE_UPNP=0 -o obj/nogui/net.o net.cpp
In file included from net.cpp:10:
/usr/include/miniupnpc/upnpcommands.h:11:30: error: portlistingparse.h: No such file or directory
/usr/include/miniupnpc/upnpcommands.h:13:28: error: miniupnpctypes.h: No such file or directory
In file included from net.cpp:10:
/usr/include/miniupnpc/upnpcommands.h:25: error: ‘UNSIGNED_INTEGER’ does not name a type
/usr/include/miniupnpc/upnpcommands.h:29: error: ‘UNSIGNED_INTEGER’ does not name a type
/usr/include/miniupnpc/upnpcommands.h:33: error: ‘UNSIGNED_INTEGER’ does not name a type
/usr/include/miniupnpc/upnpcommands.h:37: error: ‘UNSIGNED_INTEGER’ does not name a type
/usr/include/miniupnpc/miniupnpc.h: In function ‘void ThreadMapPort2(void*)’:
/usr/include/miniupnpc/miniupnpc.h:53: error: too few arguments to function ‘UPNPDev* upnpDiscover(int, const char*, const char*, int, int, int*)’
net.cpp:906: error: at this point in file
/usr/include/miniupnpc/upnpcommands.h:117: error: too few arguments to function ‘int UPNP_AddPortMapping(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)’
net.cpp:920: error: at this point in file
make: *** [obj/nogui/net.o] Error 1
我认为问题可能是 Berkeley DB,但我不知道如何检查。有人有什么想法吗?
答案1
Alex 的评论是正确的,最新的 miniupnpc 已损坏。但是,您可以在此处使用工作版本:http://miniupnp.tuxfamily.org/files/download.php?file=miniupnpc-1.5.tar.gz
然后 namecoind 将正常编译。