--- Begin Message ---
Source: warzone2100
Version: 3.2.1-2
Severity: important
Hi,
Rebuilding warzone2100 with libminiupnpc 2.0.20171212, that I have just uploaded
to Experimental (currently in NEW) leads to FTBFS:
netplay.cpp: In function ‘int upnp_init(void*)’:
netplay.cpp:954:50: error: invalid conversion from ‘int*’ to ‘unsigned char’
[-fpermissive]
devlist = upnpDiscover(3000, NULL, NULL, 0, 0, &result);
^~~~~~~
netplay.cpp:954:57: error: too few arguments to function ‘UPNPDev*
upnpDiscover(int, const char*, const char*, int, int, unsigned char, int*)’
devlist = upnpDiscover(3000, NULL, NULL, 0, 0, &result);
^
In file included from netplay.cpp:45:0:
/usr/include/miniupnpc/miniupnpc.h:62:1: note: declared here
upnpDiscover(int delay, const char * multicastif,
^~~~~~~~~~~~
netplay.cpp:974:106: error: too few arguments to function ‘void*
miniwget_getaddr(const char*, int*, char*, int, unsigned int, int*)’
descXML = (char *)miniwget_getaddr(dev->descURL, &descXMLsize, lanaddr,
sizeof(lanaddr), dev->scope_id);
^
In file included from netplay.cpp:44:0:
/usr/include/miniupnpc/miniwget.h:21:25: note: declared here
MINIUPNP_LIBSPEC void * miniwget_getaddr(const char *, int *, char *, int,
unsigned int, int *);
^~~~~~~~~~~~~~~~
netplay.cpp: In function ‘int NETsendFile(char*, const Sha256&, UDWORD)’:
netplay.cpp:1932:107: warning: ‘PHYSFS_sint64 PHYSFS_read(PHYSFS_File*, void*,
PHYSFS_uint32, PHYSFS_uint32)’ is deprecated [-Wdeprecated-declarations]
bytesToRead = PHYSFS_read(NetPlay.players[player].wzFile.pFileHandle, inBuff,
1, MAX_FILE_TRANSFER_PACKET);
^
In file included from ../../lib/framework/file.h:22:0,
from netplay.cpp:30:
/usr/include/physfs.h:1333:27: note: declared here
PHYSFS_DECL PHYSFS_sint64 PHYSFS_read(PHYSFS_File *handle,
^~~~~~~~~~~
In file included from ../../lib/framework/string_ext.h:24:0,
from ../../lib/framework/frame.h:44,
from netplay.cpp:26:
netplay.cpp: In function ‘UBYTE NETrecvFile(NETQUEUE)’:
netplay.cpp:2005:103: warning: ‘const char* PHYSFS_getLastError()’ is
deprecated [-Wdeprecated-declarations]
debug(LOG_FATAL, "PHYSFS_openRead(\"%s\") failed with error: %s\n",
fileName, PHYSFS_getLastError());
^
../../lib/framework/debug.h:261:93: note: in definition of macro ‘debug’
#define debug(part, ...) do { if (enabled_debug[part]) _debug(__LINE__, part,
__FUNCTION__, __VA_ARGS__); } while(0)
^~~~~~~~~~~
In file included from ../../lib/framework/file.h:22:0,
from netplay.cpp:30:
/usr/include/physfs.h:654:25: note: declared here
PHYSFS_DECL const char *PHYSFS_getLastError(void) PHYSFS_DEPRECATED;
^~~~~~~~~~~~~~~~~~~
netplay.cpp:2080:62: warning: ‘PHYSFS_sint64 PHYSFS_write(PHYSFS_File*, const
void*, PHYSFS_uint32, PHYSFS_uint32)’ is deprecated [-Wdeprecated-declarations]
PHYSFS_write(NetPlay.pMapFileHandle, outBuff, bytesToRead, 1);
^
In file included from ../../lib/framework/file.h:22:0,
from netplay.cpp:30:
/usr/include/physfs.h:1362:27: note: declared here
PHYSFS_DECL PHYSFS_sint64 PHYSFS_write(PHYSFS_File *handle,
^~~~~~~~~~~~
In file included from ../../lib/framework/string_ext.h:24:0,
from ../../lib/framework/frame.h:44,
from netplay.cpp:26:
netplay.cpp:2087:101: warning: ‘const char* PHYSFS_getLastError()’ is
deprecated [-Wdeprecated-declarations]
debug(LOG_ERROR, "Could not close file handle after trying to save map:
%s", PHYSFS_getLastError());
^
../../lib/framework/debug.h:261:93: note: in definition of macro ‘debug’
#define debug(part, ...) do { if (enabled_debug[part]) _debug(__LINE__, part,
__FUNCTION__, __VA_ARGS__); } while(0)
^~~~~~~~~~~
In file included from ../../lib/framework/file.h:22:0,
from netplay.cpp:30:
/usr/include/physfs.h:654:25: note: declared here
PHYSFS_DECL const char *PHYSFS_getLastError(void) PHYSFS_DEPRECATED;
^~~~~~~~~~~~~~~~~~~
netplay.cpp: In function ‘void dumpDebugSync(uint8_t*, size_t, uint32_t,
unsigned int)’:
netplay.cpp:3599:33: warning: ‘PHYSFS_sint64 PHYSFS_write(PHYSFS_File*, const
void*, PHYSFS_uint32, PHYSFS_uint32)’ is deprecated [-Wdeprecated-declarations]
PHYSFS_write(fp, buf, bufLen, 1);
In file included from ../../lib/framework/file.h:22:0,
from netplay.cpp:30:
/usr/include/physfs.h:654:25: note: declared here
PHYSFS_DECL const char *PHYSFS_getLastError(void) PHYSFS_DEPRECATED;
^~~~~~~~~~~~~~~~~~~
netplay.cpp:2080:62: warning: ‘PHYSFS_sint64 PHYSFS_write(PHYSFS_File*, const
void*, PHYSFS_uint32, PHYSFS_uint32)’ is deprecated [-Wdeprecated-declarations]
PHYSFS_write(NetPlay.pMapFileHandle, outBuff, bytesToRead, 1);
^
In file included from ../../lib/framework/file.h:22:0,
from netplay.cpp:30:
/usr/include/physfs.h:1362:27: note: declared here
PHYSFS_DECL PHYSFS_sint64 PHYSFS_write(PHYSFS_File *handle,
^~~~~~~~~~~~
In file included from ../../lib/framework/string_ext.h:24:0,
from ../../lib/framework/frame.h:44,
from netplay.cpp:26:
netplay.cpp:2087:101: warning: ‘const char* PHYSFS_getLastError()’ is
deprecated [-Wdeprecated-declarations]
debug(LOG_ERROR, "Could not close file handle after trying to save map:
%s", PHYSFS_getLastError());
^
../../lib/framework/debug.h:261:93: note: in definition of macro ‘debug’
#define debug(part, ...) do { if (enabled_debug[part]) _debug(__LINE__, part,
__FUNCTION__, __VA_ARGS__); } while(0)
^~~~~~~~~~~
In file included from ../../lib/framework/file.h:22:0,
from netplay.cpp:30:
/usr/include/physfs.h:654:25: note: declared here
PHYSFS_DECL const char *PHYSFS_getLastError(void) PHYSFS_DEPRECATED;
^~~~~~~~~~~~~~~~~~~
netplay.cpp: In function ‘void dumpDebugSync(uint8_t*, size_t, uint32_t,
unsigned int)’:
netplay.cpp:3599:33: warning: ‘PHYSFS_sint64 PHYSFS_write(PHYSFS_File*, const
void*, PHYSFS_uint32, PHYSFS_uint32)’ is deprecated [-Wdeprecated-declarations]
PHYSFS_write(fp, buf, bufLen, 1);
Please fix this issue before I upload it to Sid, at which time this bug will
become RC.
Cheers,
Thomas Goirand (zigo)
--- End Message ---