Author Topic: [fixed] 3.1.7: FTBFS with miniupnpc 1.7  (Read 878 times)

canatan

  • Guest
[fixed] 3.1.7: FTBFS with miniupnpc 1.7
« on: 24 December 2012, 17:47:29 »
im try to packaging megaglest for linux distro of pardus-anka(im it's official packager).but i cannot it.i get this error such it:
Code: [Select]
.....
[ 63%]  Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/posix/socket.cpp.o
[ 64%]  Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/posix/miniftpclient.cpp.o
[ 64%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/posix/miniftpserver.cpp.o
[ 64%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/unix/gl_wrap.cpp.o
/var/pisi/megaglest-3.7.1-1/work/megaglest-3.7.1/source/shared_lib/sources/platform/posix/socket.cpp: In static member function 'static int Shared::Platform::UPNP_Tools::upnp_init(void*)':
/var/pisi/megaglest-3.7.1-1/work/megaglest-3.7.1/source/shared_lib/sources/platform/posix/socket.cpp:2481:115: error: too few arguments to function 'void* miniwget_getaddr(const char*, int*, char*, int, unsigned int)'
In file included from /var/pisi/megaglest-3.7.1-1/work/megaglest-3.7.1/source/shared_lib/sources/platform/posix/socket.cpp:56:0:
/usr/include/miniupnpc/miniwget.h:21:16: note: declared here
/var/pisi/megaglest-3.7.1-1/work/megaglest-3.7.1/source/shared_lib/sources/platform/posix/socket.cpp:2487:45: error: too few arguments to function 'void GetUPNPUrls(UPNPUrls*, IGDdatas*, const char*, unsigned int)'
In file included from /var/pisi/megaglest-3.7.1-1/work/megaglest-3.7.1/source/shared_lib/sources/platform/posix/socket.cpp:57:0:
/usr/include/miniupnpc/miniupnpc.h:115:1: note: declared here

anyone can help me please?
« Last Edit: 26 December 2012, 18:25:02 by tomreyn »

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: why i can get error when i trying to build megaglest engine
« Reply #1 on: 24 December 2012, 17:49:55 »
Do you have miniupnpc installed? If so what version *the cmake script has options for various versions of this lib)

canatan

  • Guest
Re: why i can get error when i trying to build megaglest engine
« Reply #2 on: 24 December 2012, 18:03:36 »
im sorry for open this topic here.it was hurriedly.thank u for your revelant.yes i installed letest release miniupnpc-1.7.20120830.  megaglest version is 3.7.1 cmake ver:2.8.9

i configured megaglest only this parameter:

Code: [Select]
-DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr
« Last Edit: 24 December 2012, 18:12:41 by canatan »

canatan

  • Guest
Re: why i can get error when i trying to build megaglest engine
« Reply #3 on: 24 December 2012, 22:18:39 »
      ! IMPORTANT for MG developers and distro packagers

MG 3.7.1 (without any patch)  do not build with miniupnp version 1.7.20120830 because of miniwget , miniwget_getaddr and parseURL functions changed.

reference:changelog.txt , miniwget.h files in source of this version.

« Last Edit: 25 December 2012, 19:55:30 by canatan »

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: why i can get error when i trying to build megaglest engine
« Reply #4 on: 25 December 2012, 20:58:04 »
I need to patch the build system to support the latest miniupnpc 1.7. I will work on it shortly.

This is fixed in svn rev#:3958
« Last Edit: 26 December 2012, 01:12:08 by softcoder »

canatan

  • Guest
Re: [fixed] 3.1.7: FTBFS with miniupnpc 1.7
« Reply #5 on: 27 December 2012, 12:49:47 »
thank u much for quick fix.