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 )
- socklen_t clientLen;
+ socklen_t clientLen = sizeof( sockaddr );
UpnpPrintf( UPNP_INFO, MSERV, __FILE__, __LINE__,
Created attachment 77762 [details, diff]
Patch for net-misc/upnp which fixes this bug
Created attachment 77763 [details]
ebuild which uses this patch
This should be fixed in newer releases, are you probably using stable and need a newer version stable?
Yes, I need stable version.
Now I use cvs version (I did write ebuild linux-igd-cvs) because 0.92 time to time dies.
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.
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
Created attachment 90641 [details]
I successully use linux-igd upnpd daemon created by this ebuild few weeks ago.
I can do any test only tomorrow morning (Monday) (now is Sunday, 00:56 MSK). ;-)
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.
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.
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.
Bugs fixed in linux-igd-0.95 + libupnp-1.3.1.
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.
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.
package.masked, no matching upnp version in the tree. See Bug 146219 for version bump.