aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: compilation crash with libupnp  (Read 14750 times)

jimbo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 24
compilation crash with libupnp
« on: January 02, 2009, 01:20:48 PM »

Hello,

I don't know if this issue is a bug, may be it can help some users :

I have compiled amule 2.2.3 under Debian Lenny 64 bit, amule required libupnp and if you compile amule with libupnp4  and libupnp4-dev amule crash when you try yo start him (no error message : fatal error ...). So I have unstalled libupnp4 and recompiled it with libupnp3 now amule works fine (2 days uptime). They are not error message when you compile amule with libupnp4 !  Under Lenny aptitude search libupnp return :
Code: [Select]
ptitude search libupnp
p   libupnp-dev                     - Portable SDK for UPnP Devices (development
i A libupnp3                        - Portable SDK for UPnP Devices (shared libr
p   libupnp3-dbg                    - debugging symbols for libupnp3
i   libupnp3-dev                    - Portable SDK for UPnP Devices (development
c   libupnp4                        - Portable SDK for UPnP Devices (shared libr
p   libupnp4-dbg                    - debugging symbols for libupnp4
p   libupnp4-dev                    - Portable SDK for UPnP Devices (development

So I don't know how long and wich version will be keep.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: compilation crash with libupnp
« Reply #1 on: January 02, 2009, 01:41:10 PM »

amule required libupnp

You can configure it with --disable-upnp if you don't need UPnP.
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

jimbo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 24
Re: compilation crash with libupnp
« Reply #2 on: January 02, 2009, 01:59:58 PM »

Yes of course and when you compile :  a message about libupnp and " with --disable-upnp" option appear if libupnp packet is mising.  But I think is not a real issue with libupnp 3 or 4  :)
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: compilation crash with libupnp
« Reply #3 on: January 02, 2009, 02:43:03 PM »

What message? With --disable-upnp it should build fine without libupnp, that's the idea.
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

jimbo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 24
Re: compilation crash with libupnp
« Reply #4 on: January 02, 2009, 02:49:22 PM »

yes,  you obtain this message in the Terminal  when "THE"  ./configure  is  finished.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: compilation crash with libupnp
« Reply #5 on: January 02, 2009, 03:46:58 PM »

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

jimbo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 24
Re: compilation crash with libupnp
« Reply #6 on: January 02, 2009, 04:05:30 PM »

message return by "the ./configure"
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: compilation crash with libupnp
« Reply #7 on: January 02, 2009, 06:09:38 PM »

The problem here is that aMule crashes with libupnp4, as far as I can see, not any message.
Logged

jimbo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 24
Re: compilation crash with libupnp
« Reply #8 on: January 02, 2009, 06:16:46 PM »

The problem here is that aMule crashes with libupnp4, as far as I can see, not any message.

Yes !!! please investigate  ;D I don't want a solution just report a bug  ;)  no other error messages, only like this error :
Code: [Select]
----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMule 2.2.3 using wxGTK2 v2.8.8
Running on: Linux 2.6.27-9-generic x86_64

[2] wxString::~wxString() in amule [0x44a0ef]
[3] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.8.so.0[0x7fd6da84822c]
[4] ?? in /lib/libpthread.so.0 [0x7fd6dbed40f0]
[5] wxColour::wxColour(unsigned char, unsigned char, unsigned char, unsigned char) in amule [0x55cc00]
[6] wxDataObjectSimple::~wxDataObjectSimple() in amule [0x507fe8]
[7] wxDataObjectSimple::~wxDataObjectSimple() in amule [0x5086be]
[8] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) in /usr/lib/libwx_baseu-2.8.so.0[0x7fd6da843ca9]
[9] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) in /usr/lib/libwx_baseu-2.8.so.0[0x7fd6da844e84]
[10] wxEvtHandler::ProcessEvent(wxEvent&) in /usr/lib/libwx_baseu-2.8.so.0[0x7fd6da844f77]
[11] wxTimerBase::Notify() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0x7fd6dafc71d6]
[12] ?? in /usr/lib/libwx_gtk2u_core-2.8.so.0 [0x7fd6daece3cb]
[13] ?? in /usr/lib/libglib-2.0.so.0 [0x7fd6d74c44fb]
[14] g_main_context_dispatch in /usr/lib/libglib-2.0.so.0[0x7fd6d74c3d3b]
[15] ?? in /usr/lib/libglib-2.0.so.0 [0x7fd6d74c750d]
[16] g_main_loop_run in /usr/lib/libglib-2.0.so.0[0x7fd6d74c7a3d]
[17] gtk_main in /usr/lib/libgtk-x11-2.0.so.0[0x7fd6d93547a7]
[18] wxEventLoop::Run() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0x7fd6daec5d18]
[19] wxAppBase::MainLoop() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0x7fd6daf4ef4b]
[20] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.8.so.0[0x7fd6da7e973d]
[21] CryptoPP::IteratedHash<unsigned int, CryptoPP::EnumToType<CryptoPP::ByteOrder, 0>, 64u, CryptoPP::HashTransformation>::~IteratedHash() in amule [0x5032b2]
[22] __libc_start_main in /lib/libc.so.6[0x7fd6d9a31466]
[23] ?? in amule [0x4490f9]
« Last Edit: January 02, 2009, 06:39:16 PM by jimbo »
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: compilation crash with libupnp
« Reply #9 on: January 03, 2009, 01:03:55 PM »

Seems to me that it has nothing to do with libupnp. This crash is about cryptoPP.

Also, those debian names (libupnp3, libupnp4) tell us nothing about the real version of libupnp that you are using.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: compilation crash with libupnp
« Reply #10 on: January 03, 2009, 02:13:30 PM »

message return by "the ./configure"
Would you be so kind to tell me the CONTENT of that message ?  ::)
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

jimbo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 24
Re: compilation crash with libupnp
« Reply #11 on: January 03, 2009, 09:47:18 PM »

Seems to me that it has nothing to do with libupnp. This crash is about cryptoPP.

Also, those debian names (libupnp3, libupnp4) tell us nothing about the real version of libupnp that you are using.

if libupnp4 is installed on my system, aMule cannot start after a compilation !
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: compilation crash with libupnp
« Reply #12 on: January 04, 2009, 10:12:46 AM »

if libupnp4 is installed on my system, aMule cannot start after a compilation !
Reasoning like that, you might as well check the phase of the moon at the time of the crash.

- The evidence you provide is not related to UPnP. Search the forum and you will find that there have been lots of crashes like this one and they were related to a bogus CryptoPP.
- Even if your evidence was related to UPnP, I don't know what version of libupnp you are using. If UPnP were the guilty one, you wouldn't go far without this information.
Logged

jimbo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 24
Re: compilation crash with libupnp
« Reply #13 on: January 04, 2009, 12:49:50 PM »

ok some details for you:


Code: [Select]
aptitude search libupnp
p   libupnp-dev                     - Portable SDK for UPnP Devices (development
i A libupnp3                        - Portable SDK for UPnP Devices (shared libr
p   libupnp3-dbg                    - debugging symbols for libupnp3
i   libupnp3-dev                    - Portable SDK for UPnP Devices (development
c   libupnp4                        - Portable SDK for UPnP Devices (shared libr
p   libupnp4-dbg                    - debugging symbols for libupnp4
p   libupnp4-dev                    - Portable SDK for UPnP Devices (developmen


now libupnp3 is installed on my system

I remove this version

Code: [Select]
aptitude remove libupnp3
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Lecture de l'information d'état étendu
Initialisation de l'état des paquets... Fait
Lecture des descriptions de tâches... Fait
Les paquets suivants sont CASSÉS :
  libupnp3-dev
Les paquets suivants seront ENLEVÉS :
  libupnp3
0 paquets mis à jour, 0 nouvellement installés, 1 à enlever et 1 non mis à jour.
Il est nécessaire de télécharger 0o d'archives. Après dépaquetage, 262ko seront libérés.
Les paquets suivants ont des dépendances non satisfaites :
  libupnp3-dev: Dépend: libupnp3 (= 1:1.6.6-3) mais il n'est pas installable
Les actions suivantes permettront de résoudre ces dépendances :

Supprimer les paquets suivants :
libupnp3-dev

Le score est de 121

Accepter cette solution ? [Y/n/q/?]
Les paquets suivants seront ENLEVÉS :
  libupnp3 libupnp3-dev{a}
0 paquets mis à jour, 0 nouvellement installés, 2 à enlever et 1 non mis à jour.
Il est nécessaire de télécharger 0o d'archives. Après dépaquetage, 3666ko seront libérés.
Voulez-vous continuer ? [Y/n/?]
Écriture de l'information d'état étendu... Fait
(Lecture de la base de données... 94730 fichiers et répertoires déjà installés.)
Suppression de libupnp3-dev ...
Suppression de libupnp3 ...
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Lecture de l'information d'état étendu
Initialisation de l'état des paquets... Fait
Écriture de l'information d'état étendu... Fait
Lecture des descriptions de tâches... Fait


Now there is no libupnp. I try a ./configure :

Code: [Select]

 **** General Libraries and Tools ****
  Should ccache support be enabled?                          no
  Libraries aMule will use to build:
                                       wxWidgets             2.8.9 (gtk2,shared)
                                       crypto++              5.5.2 (installed, in /usr)
                                       libintl               system
                                       zlib                  1.2.3.3


WARNING! UPnP code has been disabled because libupnp >= 1.6.6 not found (try to use --with-libupnp-prefix=PREFIX).



ohohoh message retur by ./configure

Ok now I installed libupnp4


Code: [Select]
aptitude install libupnp4 libupnp4-dev
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Lecture de l'information d'état étendu
Initialisation de l'état des paquets... Fait
Lecture des descriptions de tâches... Fait
Les NOUVEAUX paquets suivants vont être installés :
  libupnp4 libupnp4-dev
0 paquets mis à jour, 2 nouvellement installés, 0 à enlever et 1 non mis à jour.
Il est nécessaire de télécharger 1276ko d'archives. Après dépaquetage, 4006ko seront utilisés.
Écriture de l'information d'état étendu... Fait
Prendre : 1 http://ftp.fr.debian.org testing/main libupnp4 1.8.0~cvs20080628-2 [121kB]
Prendre : 2 http://ftp.fr.debian.org testing/main libupnp4-dev 1.8.0~cvs20080628-2 [1154kB]
 1276ko téléchargés en 2s (480ko/s)
Sélection du paquet libupnp4 précédemment désélectionné.
(Lecture de la base de données... 94431 fichiers et répertoires déjà installés.)
Dépaquetage de libupnp4 (à partir de .../libupnp4_1.8.0~cvs20080628-2_amd64.deb) ...
Sélection du paquet libupnp4-dev précédemment désélectionné.
Dépaquetage de libupnp4-dev (à partir de .../libupnp4-dev_1.8.0~cvs20080628-2_amd64.deb) ...
Paramétrage de libupnp4 (1.8.0~cvs20080628-2) ...
Paramétrage de libupnp4-dev (1.8.0~cvs20080628-2) ...
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Lecture de l'information d'état étendu
Initialisation de l'état des paquets... Fait
Écriture de l'information d'état étendu... Fait
Lecture des descriptions de tâches... Fait



./configure --disable-debug --enable-optimize

and make :

Code: [Select]
Compiling UPnPBase.cpp
UPnPBase.cpp: In static member function ‘static int CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)’:
UPnPBase.cpp:1183: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1180: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1184: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1180: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1188: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1180: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1191: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1180: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1196: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1180: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1229: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1180: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1229: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1180: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1251: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1250: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1253: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1250: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1257: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1250: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1261: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1250: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1269: error: invalid use of incomplete type ‘struct Upnp_Event’
UPnPBase.cpp:1268: error: forward declaration of ‘struct Upnp_Event’
UPnPBase.cpp:1271: error: invalid use of incomplete type ‘struct Upnp_Event’
UPnPBase.cpp:1268: error: forward declaration of ‘struct Upnp_Event’
UPnPBase.cpp:1271: error: invalid use of incomplete type ‘struct Upnp_Event’
UPnPBase.cpp:1268: error: forward declaration of ‘struct Upnp_Event’
UPnPBase.cpp:1288: error: invalid use of incomplete type ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1286: error: forward declaration of ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1291: error: invalid use of incomplete type ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1286: error: forward declaration of ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1320: error: invalid use of incomplete type ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1314: error: forward declaration of ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1326: error: invalid use of incomplete type ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1314: error: forward declaration of ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1329: error: invalid use of incomplete type ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1314: error: forward declaration of ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1335: error: invalid use of incomplete type ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1314: error: forward declaration of ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1356: error: invalid use of incomplete type ‘struct Upnp_Action_Complete’
UPnPBase.cpp:1354: error: forward declaration of ‘struct Upnp_Action_Complete’
UPnPBase.cpp:1359: error: invalid use of incomplete type ‘struct Upnp_Action_Complete’
UPnPBase.cpp:1354: error: forward declaration of ‘struct Upnp_Action_Complete’
UPnPBase.cpp:1360: error: invalid use of incomplete type ‘struct Upnp_Action_Complete’
UPnPBase.cpp:1354: error: forward declaration of ‘struct Upnp_Action_Complete’
UPnPBase.cpp:1364: error: invalid use of incomplete type ‘struct Upnp_Action_Complete’
UPnPBase.cpp:1354: error: forward declaration of ‘struct Upnp_Action_Complete’
UPnPBase.cpp:1377: error: invalid use of incomplete type ‘struct Upnp_State_Var_Complete’
UPnPBase.cpp:1375: error: forward declaration of ‘struct Upnp_State_Var_Complete’
UPnPBase.cpp:1380: error: invalid use of incomplete type ‘struct Upnp_State_Var_Complete’
UPnPBase.cpp:1375: error: forward declaration of ‘struct Upnp_State_Var_Complete’
make[3]: *** [amule-UPnPBase.o] Erreur 1
make[2]: *** [all-recursive] Erreur 1
make[1]: *** [all-recursive] Erreur 1
make: *** [all] Erreur 2


ohohhohoho amule is aroun the moon




now :
aptitude remove libupnp4 libupnp4-dev

aptitude install libupnp3 libupnp3-dev


./configure etc.....
make

Code: [Select]
Compiling GetTickCount.cpp
Compiling GuiEvents.cpp
Compiling Logger.cpp
Compiling PartFile.cpp
Compiling Preferences.cpp
Compiling Proxy.cpp
Compiling Server.cpp
Compiling Statistics.cpp
Compiling StatTree.cpp
Compiling SHAHashSet.cpp
Compiling TerminationProcess.cpp
Compiling TerminationProcessAmuleweb.cpp
Compiling UserEvents.cpp
Compiling OtherFunctions.cpp
Compiling NetworkFunctions.cpp
Linking amule
Compiling ED2KLinkParser.cpp
Compiling MagnetURI.cpp
Compiling MuleCollection.cpp
Linking ed2k
jim@pceau:~/aMule-2.2.3$           

oh hohohoh amule is alive

so my problem is because of libupnp4 and not crypto truck bidul  ;D
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: compilation crash with libupnp
« Reply #14 on: January 04, 2009, 04:56:35 PM »

Oh, now you made things very much clearer. Now I know what it means libupnp3 and libupnp4.

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.

Quote
so my problem is because of libupnp4 and not crypto truck bidul
Also, make sure you have full moon when starting aMule. The backtrace you have provided, which was the evidence you originally provided in this case, has absolutely no indications of a problem with libupnp, on the other hand, it shows a known problem (TM) with CryptoPP. Of course, the problem can be related to libupnp, as well as due to any other library in the system, but this conclusion is not easily drawn from your supplied evidence.
Logged
Pages: [1] 2