aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: aMule compilation error  (Read 5115 times)

pac1no

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
aMule compilation error
« on: June 26, 2011, 11:03:55 AM »

I run ./configure succesfully

 **** General Libraries and Tools ****
  Should ccache support be enabled?                          no
  Libraries aMule will use to build:
                             wxWidgets             2.8.10 (gtk2,debug,shared)
                             crypto++              5.6.1 (installed, in /usr)
                             libupnp               1.8.0~svn20100401
                             libintl               system
                             zlib                  1.2.3.4


 *** Warnings during configuration ***

* bfd.h not found or unusable, please install binutils development package if
  you are a developer or want to help testing aMule


But when i try make i get this error


Compiling RC4Encrypt.cpp
Compiling StateMachine.cpp
Compiling TerminationProcessAmuleweb.cpp
Compiling ThreadScheduler.cpp
Compiling UPnPBase.cpp
UPnPBase.cpp: In constructor ‘CUPnPControlPoint::CUPnPControlPoint(short unsigned int)’:
UPnPBase.cpp:871:37: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
UPnPBase.cpp: In static member function ‘static int CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)’:
UPnPBase.cpp:1189:14: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1186:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1190:56: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1186:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1194:35: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1186:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1197:12: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1186:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1203:12: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1186:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1236:13: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1186:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1236:32: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1186:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1258:16: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1257:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1260:52: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1257:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1264:34: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1257:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1268:38: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1257:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Discovery’
UPnPBase.cpp:1276:34: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event’
UPnPBase.cpp:1275:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event’
UPnPBase.cpp:1278:39: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event’
UPnPBase.cpp:1275:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event’
UPnPBase.cpp:1278:58: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event’
UPnPBase.cpp:1275:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event’
UPnPBase.cpp:1295:15: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’
UPnPBase.cpp:1293:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’
UPnPBase.cpp:1298:24: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’
UPnPBase.cpp:1293:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’
UPnPBase.cpp:1327:12: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’
UPnPBase.cpp:1321:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’
UPnPBase.cpp:1333:24: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’
UPnPBase.cpp:1321:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’
UPnPBase.cpp:1336:39: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’
UPnPBase.cpp:1321:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’
UPnPBase.cpp:1342:14: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’
UPnPBase.cpp:1321:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Event_Subscribe’
UPnPBase.cpp:1363:14: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Action_Complete’
UPnPBase.cpp:1361:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Action_Complete’
UPnPBase.cpp:1366:12: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Action_Complete’
UPnPBase.cpp:1361:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Action_Complete’
UPnPBase.cpp:1367:12: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Action_Complete’
UPnPBase.cpp:1361:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Action_Complete’
UPnPBase.cpp:1371:12: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Action_Complete’
UPnPBase.cpp:1361:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_Action_Complete’
UPnPBase.cpp:1384:15: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_State_Var_Complete’
UPnPBase.cpp:1382:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_State_Var_Complete’
UPnPBase.cpp:1387:24: error: invalid use of incomplete type ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_State_Var_Complete’
UPnPBase.cpp:1382:10: error: forward declaration of ‘struct CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)::Upnp_State_Var_Complete’
make[3]: *** [libmuleappcore_a-UPnPBase.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Any ideas?¿
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: aMule compilation error
« Reply #1 on: June 26, 2011, 11:28:47 AM »

Wrong version of libupnp.

You have to use libupnp3, which is in fact libupnp-1.6.6 and is the latest stable released version of the library.

libupnp4, which is in fact libupnp-1.8.0, is an unstable SVN version. It is not enough tested and was never released. If you insist in using an unreleased version of the library, I am sorry but you are on your own.

(Mind, Phoenix is libupnp dev.)

Just checked Nutty's package manager - it has both libupnp versions (1.6.6 ans 1.8.0-SVN).
So people just have to install the correct one.
Maybe we should check in configure for it? Vollstrecker, you're the M4 wizard?
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

pac1no

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Re: aMule compilation error
« Reply #2 on: June 26, 2011, 11:41:34 AM »

Thx a lot. I tried now and worked perfectly.

Anyway, if i install the latest version from SVN will i have to compile it any time a new version comes out?

Sorry from my english, i dont know if that sentence correct ;-)

Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: aMule compilation error
« Reply #3 on: June 26, 2011, 03:32:06 PM »

Anyway, if i install the latest version from SVN will i have to compile it any time a new version comes out?
Only if you are interested in the change of that version. Many changes are just minor code cleanups that make no difference at all for the users. Or translation updates for some language.
Look at the SVN changelog and judge for yourself. Rule of thumb: if it's important there should be an entry in docs/Changelog for it.

Quote
Sorry from my english, i dont know if that sentence correct ;-)
You know, I've read this many times here, and the English was always near perfect. We're almost all non native speakers, so relax.  :)
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

x_x_kamikaze_x_x

  • Jr. Member
  • **
  • Karma: 18
  • Offline Offline
  • Posts: 83
Re: aMule compilation error
« Reply #4 on: October 02, 2011, 01:30:23 PM »

Wrong version of libupnp.

You have to use libupnp3, which is in fact libupnp-1.6.6 and is the latest stable released version of the library.

libupnp4, which is in fact libupnp-1.8.0, is an unstable SVN version. It is not enough tested and was never released. If you insist in using an unreleased version of the library, I am sorry but you are on your own.

(Mind, Phoenix is libupnp dev.)

Just checked Nutty's package manager - it has both libupnp versions (1.6.6 ans 1.8.0-SVN).
So people just have to install the correct one.
Maybe we should check in configure for it? Vollstrecker, you're the M4 wizard?



Wonderful explanation.
I had the same problem, but reading that, I can compile correctly now.

Thanks for all.

Kami =^.^=
Logged