Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119862 - linux-igd-0.92: "upnpd: Error registering the rootdevice : -202"
Summary: linux-igd-0.92: "upnpd: Error registering the rootdevice : -202"
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PMASKED
Depends on: 146219 146607
Blocks:
  Show dependency tree
 
Reported: 2006-01-21 13:48 UTC by Sergey Belyashov
Modified: 2006-09-25 19:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for net-misc/upnp which fixes this bug (upnp-1.0.4-clientlen.patch,458 bytes, patch)
2006-01-21 13:54 UTC, Sergey Belyashov
Details | Diff
ebuild which uses this patch (upnp-1.0.4-r2.ebuild,967 bytes, text/plain)
2006-01-21 13:55 UTC, Sergey Belyashov
Details
net-misc/linux-igd-cvs-0.ebuild (linux-igd-cvs-0.ebuild,1.12 KB, text/plain)
2006-07-01 13:48 UTC, Sergey Belyashov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Belyashov 2006-01-21 13:48:43 UTC
This is problem of net-misc/upnp-1.0.4-r1.
To fix it I make simple patch for this package:
===================================================================
--- upnpsdk-1.0.4.orig/src/genlib/miniserver/miniserver.cpp      2001-08-15 22:17:31.000000000 +0400
+++ upnpsdk-1.0.4.new/src/genlib/miniserver/miniserver.cpp       2006-01-22 00:16:38.000000000 +0300
@@ -838,7 +838,7 @@
         while ( true )
         {
             int connectfd;
-            socklen_t clientLen;
+            socklen_t clientLen = sizeof( sockaddr );

             DBG(
                 UpnpPrintf( UPNP_INFO, MSERV, __FILE__, __LINE__,
===================================================================
Comment 1 Sergey Belyashov 2006-01-21 13:54:12 UTC
Created attachment 77762 [details, diff]
Patch for net-misc/upnp which fixes this bug
Comment 2 Sergey Belyashov 2006-01-21 13:55:42 UTC
Created attachment 77763 [details]
ebuild which uses this patch
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2006-07-01 11:51:26 UTC
This should be fixed in newer releases, are you probably using stable and need a newer version stable?
Comment 4 Sergey Belyashov 2006-07-01 12:29:10 UTC
Yes, I need stable version.
Now I use cvs version (I did write ebuild linux-igd-cvs) because 0.92 time to time dies.
Comment 5 Marcus Stjärnås 2006-07-01 12:45:10 UTC
Sergey -
Could you please test it against both upnp-1.2.1a and 1.3.1... and post your results here.

Cause we may mark one of those versions stable.
Comment 6 Sergey Belyashov 2006-07-01 13:44:15 UTC
Sorry. But there is no ebuild for upnp-1.3.1 available at this time.
As dependency of linux-igd-cvs I use net-misc/libupnp-1.3.1 now. And have no problems.
I will post linux-igd-cvs-0.ebuild in a second
Comment 7 Sergey Belyashov 2006-07-01 13:48:57 UTC
Created attachment 90641 [details]
net-misc/linux-igd-cvs-0.ebuild

I successully use linux-igd upnpd daemon created by this ebuild few weeks ago.
Comment 8 Sergey Belyashov 2006-07-01 13:57:08 UTC
I can do any test only tomorrow morning (Monday) (now is Sunday, 00:56 MSK). ;-)
Comment 9 Marcus Stjärnås 2006-07-01 14:05:43 UTC
upnp-1.3.1 was commited a few hour ago, should be on a mirror close to you by now.

I have no knowledge about linux-idg, but there is no net-misc/libupnp-1.3.1 in my portage. Have you created it yourself?

We have also added net-misc/libupnp-1.4.0 (www.libupnp.org) in portage but that version will not be stable for a while. Please test with net-misc/upnp-1.2.1a and net-misc/upnp-1.3.1.
Comment 10 Sergey Belyashov 2006-07-03 01:16:38 UTC
I test upnp-1.3.1 & libupnp-1.4.0 with linux-igd-cvs. Why names are different? I thinks that is different versions of same library...
All compiles fine. linux-igd-cvs compiles fine. And "says" that works... And do not time to time dies. With libupnp-1.4.0 MS Windows machines cannot find "Internet Connection" (Linux IGD) in Network.
I do not know why but this daemon (linux-igd-cvs) is not work: do not adds DNAT rules to table PREROUTING. With my libupnp-1.3.1 too. :-(

I do not developer of linux-igd. I only want to use it in my server.
Comment 11 Marcus Stjärnås 2006-07-03 10:43:46 UTC
Good, maybe you can use 1.3.1 for your servers for now. As this bug origional stated there was a fix for the upnp package that is fixed in later versions now in portage. This bug will stay open until we have marked net-misc/upnp-1.3.1 stable on x86.
Comment 12 Sergey Belyashov 2006-09-06 07:52:23 UTC
Bugs fixed in linux-igd-0.95 + libupnp-1.3.1.
Comment 13 Marcus Stjärnås 2006-09-06 14:33:18 UTC
I have requested to get net-misc/upnp-1.3.1 stabilized, see bug #146607. 

Unfortunately the linux-igd package currently have no maintainer, but i'll see what I can do.
Comment 14 Sergey Belyashov 2006-09-07 02:28:46 UTC
I have posted ebuild for linux-igd-0.95 which working for me here: http://bugs.gentoo.org/show_bug.cgi?id=146219

I previously use my own libupnp. Now I change ebuild for use net-misc/upnp-1.3.1 as dependency.
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2006-09-25 19:49:19 UTC
package.masked, no matching upnp version in the tree. See Bug 146219 for version bump.