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: Miss library for uPnp  (Read 6686 times)

Menion

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
  • Winter is coming...
Miss library for uPnp
« on: October 08, 2006, 06:02:19 PM »

Hi guys I compiled amuled CVS of 22-09-2006 on a Kurobox (PPC). I tried to enable uPnP as my router support it (and works fine withe emule). I see in log of amule (read with amuleweb):

2006-10-08 17:55:00: error(CDynamicLibHandle): Unable to dlopen libixml.so. Check PATH and LD_LIBRARY_PATH.

2006-10-08 17:55:00: CUPnPException: error(CDynamicLibHandle): Unable to dlopen libixml.so. Check PATH and LD_LIBRARY_PATH.

2006-10-08 17:55:00: Universal Plug and Play: CUPnPException: error(CDynamicLibHandle): Unable to dlopen libixml.so. Check PATH and LD_LIBRARY_PATH.

What is this missed library? Bye!

--edit--

I tried to install libunp ver 1.3.1. I compiled them and intalled but for default the make install installs the libraries in /usr/local/lib while amule looks for them in /usr/lib. I'm looking to manage to install those libraries in /usr/lib or change something in LD_LIBRARY_PATH

--edit2--

I successfully installed libupnp in /usr/lib. Amule loads the libraries and detect my router. I can't see any error message but I doesn't see open connections on my router upnp page. Bye!
« Last Edit: October 08, 2006, 06:59:44 PM by Menion »
Logged

Menion

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
  • Winter is coming...
Re: Miss library for uPnp
« Reply #1 on: October 09, 2006, 10:54:48 AM »

BTW there should be some problem in the management of library directories. In fact I correctly have in ld.so.conf in /etc all path for libraries

/usr/lib
/usr/local/lib
/lib

but amule search statically only in /usr/lib and not acccording with LD_LIBRARY_PATH variable. Bye!
Logged

Seagull

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 154
Re: Miss library for uPnp
« Reply #2 on: October 09, 2006, 11:44:14 AM »

Did you do ldconfig after installing the lib, to update the database?
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: Miss library for uPnp
« Reply #3 on: October 09, 2006, 06:01:50 PM »

ldconfig isn't needed for dlopen()ed libraries.
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: Miss library for uPnp
« Reply #4 on: October 18, 2006, 03:15:36 PM »

Menion,

UPnP support is not finished yet. I am sorry, but I have had no time lately to code for aMule. It is very close to finish, though, probably just needs some debugging.

Cheers!
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Miss library for uPnp
« Reply #5 on: October 24, 2006, 03:45:01 AM »

I installed the required package on my Fedora Core 5. It is libupnp. I was getting the same errors a Menion. I looked in /usr/lib, and noticed in fact the files do not exist. There are libixml.so.2 and libixml.so.2.0.2, but no libixml.so. I symlinked it. Then, it complained about libupnp.so, and I did the same (symlink it). After that, aMule would simply crash and would not start. Only solution was to remove the symlinks, start aMule, and uncheck the support for UPnP. Both, SVN from August 20th, and from October 23rd, crash the same.

Thanks!
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: Miss library for uPnp
« Reply #6 on: October 24, 2006, 04:30:18 AM »

Well, I can run it here without crash problems, but the code definetly does not work as intended, like I said, it needs debugging. But I get no crash. Please send the backtraces of the crash.

Btw, UPnP support code does not change since September 20th.

Cheers!
Logged

Menion

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
  • Winter is coming...
Re: Miss library for uPnp
« Reply #7 on: October 24, 2006, 10:52:06 AM »

To install libupnp in /usr/lib instead of /usr/local/lib add "--prefix=/usr" in ./configure options of libupnp. But at least with my router upnp doesn't work, it discovers my router but doesn't add port configuration. We must give to the developers the time to debug, they are very busy with many things, and probably something has higher priority (like protocol obfuscation). Bye!
Logged

leuk_he

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
Re: Miss library for uPnp
« Reply #8 on: October 24, 2006, 11:06:41 AM »

Quote
Originally posted by Menion
To install libupnp in /usr/lib instead of /usr/local/lib add "--prefix=/usr" in ./configure options of libupnp. But at least with my router upnp doesn't work, it discovers my router but doesn't add port configuration. We must give to the developers the time to debug, they are very busy with many things, and probably something has higher priority (like protocol obfuscation). Bye!

It might help the devs if you tell your router model and  what it is telling in the logs.

If the upnp 1.4.1 library is used... It does have some problems with some routers:

http://forum.emule-project.net/index.php?showtopic=105172

The upnp 1.4.1. is too strict in it's parsing, but i do not have had the time to find out what exactly the problem was. But i gues some routers are sending out non compliant xml data or wrong headers on the subscribes.

In the emule morph(you know... win32...)  i reverted to the old intel library with some patches that make it more compatible. If anyone finds out the time to fixup the upnp 1.4.1. please do so.
Logged

Menion

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
  • Winter is coming...
Re: Miss library for uPnp
« Reply #9 on: October 24, 2006, 12:12:41 PM »

My router is a "Gigabyte GN-B49G" and it is full compatible with UPNP implemented in emule morphxt on ver 7.1 (emule 0.46a) but I didn't try more recent version. Bye!
« Last Edit: October 24, 2006, 12:16:41 PM by Menion »
Logged

Menion

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
  • Winter is coming...
Re: Miss library for uPnp
« Reply #10 on: October 24, 2006, 12:15:28 PM »

I look at your emule project link:

This shows up in the log:
24/04/2006 11:16:49 PM: UPnP: New compatible device found: home.gateway
24/04/2006 11:16:49 PM: UPnP: Failed to add port mapping "eMule (Server UDP Port) [UDP: 3311]" [urn:schemas-upnp-org:service:WANPPPConnection:1] [Unknown Error (-119)]
24/04/2006 11:16:49 PM: UPnP: Failed to add port mapping "eMule (TCP Port) [TCP: 58322]" [urn:schemas-upnp-org:service:WANPPPConnection:1] [Unknown Error (-119)]
24/04/2006 11:16:49 PM: UPnP: Failed to add port mapping "eMule (UDP Port) [UDP: 56388]" [urn:schemas-upnp-org:service:WANPPPConnection:1] [Unknown Error (-119)]


In my amule log I see something like:

24/04/2006 11:16:49 PM: UPnP: New compatible device found: home.gateway

But seems that there aren't any attemps to open ports neither error in opening ports. Amule opens a port (50000) and binds for upnp event. Bye!
Logged

leuk_he

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
Re: Miss library for uPnp
« Reply #11 on: October 24, 2006, 12:38:56 PM »

Quote
Originally posted by Menion
In my amule log I see something like:

24/04/2006 11:16:49 PM: UPnP: New compatible device found: home.gateway

But seems that there aren't any attemps to open ports neither error in opening ports. Amule opens a port (50000) and binds for upnp event. Bye!

I don't know if amule log failures in the normal or if you have to enable debug log, but only the library is the same. The amule code for opening the ports is not the same. The current logging of morph is detailed, and i suppose amule only logs details in verbose logging (??)

Anyway, since you seem to have a windows doze arround:
if morph 9.0 does not work with upnp for you
and morph 9.1 does (or  7.1 .. damn... that is old! ) , you will have to move the morph 9.1 upnp lib to your linux box. that is what i try to tell you.
It also might be possible to compile the upnplib in debug mode (define DEBUG or _DEBUG or something like that) and it creates a detailed log of what is goign on in upnp communications. (I did not manage to do that under visual studio 2003, something s*cked ...) . then is safes a log into upnpinfo.txt (or something like that, there is alo a error file)  

I am not going to look at the debug lines it generated (to lazy now) , but maybe one of the amule devs want to..  or maybe someone from http://www.libupnp.org/  (down at the moment???)

By the way: your system date is a half a year wrong?
Logged

Menion

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
  • Winter is coming...
Re: Miss library for uPnp
« Reply #12 on: October 25, 2006, 08:57:22 AM »

No, the emule log I paste is taken from your link to emule project upnp problem discussion. It is not my system with wrong date  :D Bye!
Logged

leuk_he

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
Re: Miss library for uPnp
« Reply #13 on: October 26, 2006, 04:17:53 PM »

The upnp lib is not distributed with amule cvs. (maybe because it is not gpl licensed?) but you (dev team) could a least place a link in the readme or something like that where to find it. Or is it standard upnplib  installed on many distributions? Or did i overlook that ?

Why do i post this? the lib i use for the win32 app emulemorph had some modifications to it to be more compatible...  the 1.4.1 lib is not the most compatible. And the 1.3.x is not maintained...
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Miss library for uPnp
« Reply #14 on: October 26, 2006, 10:48:24 PM »

The user interaction is not much worked on because, well, it's not finished. You can contribute, tho :P
Logged
Pages: [1] 2