MegaGlest / megaglest-source

MegaGlest real-time strategy game engine (cross-platform, 3-d)
http://megaglest.org/
348 stars 89 forks source link

MegaGlest 3.12.0 fails to compile on Gentoo Linux: any ideas what the problem is? #168

Closed fusion809 closed 7 years ago

fusion809 commented 7 years ago

Hi,

On Gentoo Linux I emerged the games-strategy/megaglest-3.12.0 package and it gave the compile error:

/var/tmp/portage/games-strategy/megaglest-3.12.0/work/megaglest-3.12.0/source/shared_lib/sources/platform/posix/socket.cpp: In static member function ‘static int Shared::Platform::UPNP_Tools::upnp_init(void*)’:
/var/tmp/portage/games-strategy/megaglest-3.12.0/work/megaglest-3.12.0/source/shared_lib/sources/platform/posix/socket.cpp:2635:123: error: too few arguments to function ‘void* miniwget_getaddr(const char*, int*, char*, int, unsigned int, int*)’
 XML = (char *)miniwget_getaddr(dev->descURL, &descXMLsize, lanaddr, (sizeof(lanaddr) / sizeof(lanaddr[0])),0);
                                                                                                             ^
In file included from /var/tmp/portage/games-strategy/megaglest-3.12.0/work/megaglest-3.12.0/source/shared_lib/sources/platform/posix/socket.cpp:57:0:
/usr/include/miniupnpc/miniwget.h:21:25: note: declared here
 MINIUPNP_LIBSPEC void * miniwget_getaddr(const char *, int *, char *, int, unsigned int, int *);
                         ^

compiling games-strategy/megaglest-3.11.1-r1 on Gentoo gave the same error too. I have reported this error with the appropriate maintainers of these packages (here for 3.11.1-r1 and here for 3.12.0), so far over a week after filing these bug reports I haven't heard anything back and I'm just here to ask if anyone has any idea what the problem is and possible patch? I'd love to be able to emerge this package with Portage. The full build log is here.

Thanks for your time, Brenton

fusion809 commented 7 years ago

Nvm, rofl, I found bumping the ebuild to version 3.13.0 fixes the error completely!