20080626 compiles fine on Leopard and on Tiger

Now I have another problem (maybe due to a my compile error):
I compiled wxMac-2.8.8/aMule on Tiger/PPC and on Leopard/Intel with the same options
(except for the MacOSX SDK), using the same script in attachment.
Leopard version is slow and go wrong:
2008-06-26 20:08:37: ClientCreditsList.cpp(378): Credits: Error while creating signature: OS_Rng: open /dev/urandom operation failed with error 24
...
2008-06-26 20:08:44: Logger.cpp(272): Error: Failed to get the working directory (error 24: Too many open files)
Details in attachment.
Tiger version go well on Tiger and on Leopard!!!!
Respect to the past I have modify some things to make it work with new SVN and on Leopard :
1) previously I compiled wxMac(2.8.7) without MacPorts libs (using builtin ones),
now on Leopard it works but then aMule fails to compile,
so I have compiled wxMac with external libiconv (--with-libiconv-prefix=/opt/local), see here:
http://forum.amule.org/index.php?topic=15196.02) removed --with-geoip-static: in past it do nothing (I think for an error in configure), now it works but on OSX:
ld: unknown option: -Bstatic
collect2: ld returned 1 exit status
3) wxMac uses always 10.4 SDK, I forced it to use 10.5 SDK on Leopard,
on Tiger it doesn't guess minimal osx version (on Leopard yes) so I added --with-macosx-version-min=