ionomy / ion_deprecated

deprecated ion core coin codebase
https://ionomy.com
MIT License
14 stars 7 forks source link

Error on file net.cpp #4

Closed sheerlox closed 1 year ago

sheerlox commented 8 years ago
g++ -c -O2  -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -DUSE_SECP256K1 -I/root/ION/ion/src -I/root/ION/ion/src/obj -DUSE_UPNP=0 -DENABLE_WALLET -I/root/ION/ion/src/leveldb/include -I/root/ION/ion/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/net.d -o obj/net.o net.cpp
net.cpp: In function 'void ThreadMapPort()':
net.cpp:1153:74: error: invalid conversion from 'int*' to 'unsigned char' [-fpermissive]
     devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, &error);
                                                                          ^
net.cpp:1153:74: error: too few arguments to function 'UPNPDev* upnpDiscover(int, const char*, const char*, int, int, unsigned char, int*)'
In file included from net.cpp:26:0:
/usr/include/miniupnpc/miniupnpc.h:62:1: note: declared here
 upnpDiscover(int delay, const char * multicastif,
 ^
make: *** [obj/net.o] Error 1

OS : Ubuntu 14.10 updated

sheerlox commented 8 years ago

I'm trying to patch it.

sheerlox commented 8 years ago

Pull request created

sheerlox commented 8 years ago

@IonomyGuy here is the issue fixed by my PR :smiley:

sheerlox commented 8 years ago

[EDIT] Here is the new PR who solve this error : https://github.com/ionomy/ion/pull/16