Crypto-Currency / Emerald-OLD---DO-NOT-USE

Emerald Crypto scrypt-based cryptocurrency
http://emeraldcrypto.de/
MIT License
7 stars 8 forks source link

Too few arguments to function 'UPNPDev*... error on building. #1

Closed baskinsy closed 4 years ago

baskinsy commented 6 years ago

Hello,

I'm getting the following error when I'm trying to build on my linux system (opensuse Tumbleweed). I can provide more info if you point me too.

src/net.cpp:1069:74:` error: too few arguments to function ‘UPNPDev* upnpDiscover(int, const char*, const char*, int, int, unsigned char, int*)’
     devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, &error);
                                                                          ^
In file included from src/net.cpp:19:0:
/usr/include/miniupnpc/miniupnpc.h:62:1: note: declared here
 upnpDiscover(int delay, const char * multicastif,
 ^~~~~~~~~~~~
make: *** [Makefile:1384: build/net.o] Error 1
Spidersbox commented 6 years ago

I think the problem is you are missing miniupnpc instead, use: make -f makefile.unix USE_UPNP=-

and skip the upnp function. it is not that useful anymore.

baskinsy commented 6 years ago

Hi, I'm almost definitely sure that I'm not missing any library.. I have built several things that need miniupnpc without problems.

S  | Name                           | Summary                                               | Type      
---+--------------------------------+-------------------------------------------------------+-----------
i+ | libminiupnpc-devel             | Universal Plug'n'Play (UPnP) Client Library           | package   
i+ | libminiupnpc16                 | Universal Plug'n'Play (UPnP) Client Library           | package   
   | libminiupnpc16-32bit           | Universal Plug'n'Play (UPnP) Client Library           | package   
   | libminiupnpc16-32bit-debuginfo | Debug information for package libminiupnpc16          | package   
   | libminiupnpc16-debuginfo       | Debug information for package libminiupnpc16          | package   
i+ | miniupnpc                      | Universal Plug'n'Play (UPnP) Client                   | package   
   | miniupnpc                      | Universal Plug'n'Play (UPnP) Client                   | srcpackage
   | miniupnpc-debuginfo            | Debug information for package miniupnpc               | package   
   | miniupnpc-debugsource          | Debug sources for package miniupnpc                   | package   
i+ | python-miniupnpc               | Universal Plug'n'Play (UPnP) Client Module for Python | package   
   | python-miniupnpc-debuginfo     | Debug information for package python-miniupnpc        | package

Building without upnp works although, thanks!