Hello. I've got a problem when resolving a name to an IP address (using the net/resolver sample); it happens to hang quite often when calling sceNetResolverStartNtoA.
Searching the forums turned one thread of discussion but the only answer didn't do the trick for me (upgrade pspsdk; I'm using the latest SVN version).
Any hint ?
TIA
Resolver hang
I see in the patch file that gethostbyaddr is now calling sceNetResolverStop(). But gethostbyname is still not doing it.. Was that on purpose?monsti wrote:Ok this is patched in the newlib.1.15.0.patch in the toolchainn SVN.
Also, I believe you should commit the changes to the newlib-psp directory, not only to the patch file. As now they are out-of-sync...
Raf.
Agreed, except the newlib-psp directory is still against newlib 1.13 isn't it? Monsti, you really need to make a proper branch if you want to be developing a new set of newlib patches in parallel, or at least tag off what we already have and replace the newlib 1.13 stuff entirely if you're sure that there are no regressions.raf wrote:Also, I believe you should commit the changes to the newlib-psp directory, not only to the patch file. As now they are out-of-sync...
I didn't use the newlib directory. I just ported the 1.13 patch to 1.15 and added changes to that. I don't know who is responsible for the /newlib dir. But adding a simple .patch file won't hurt anybody.jimparis wrote:Monsti, you really need to make a proper branch if you want to be developing a new set of newlib patches in parallel, or at least tag off what we already have and replace the newlib 1.13 stuff entirely if you're sure that there are no regressions.
There are also some experimental stuff inside 1.15 like nanosleep.
I also consider adding a AF_UNIX emulation patch. I see this as experimental playground as 1.15 isn't well tested anyway - It just compiles :)
Any better idea or suggestions?
Bye,
Monsti
Monsti
One way of telling would be to do something like this "svn log newlib-psp | less"monsti wrote: I don't know who is responsible for the /newlib dir. But adding a simple .patch file won't hurt anybody.
In this case, I guess that would be either mrbrown or jim... I think jim's suggestion is the best approach. That is, either create a separate newlib 1.15 directory along with the current one, or create a separate branch in subversion.
Raf.
Also check psptoolchain/devel/README.TXT if you haven't seen it yet. It describes the reasoning behind having the separate drop-in trees, and describes how to use the scripts that mrbrown provided to manage them. The big benefit of this over just modifying the patches directly is that it's a lot easier to make and test changes, especially when they're being worked on by multiple people.