The bug was in the fgetln function of pkgtools/libnbcompat. I've fixed it. To get rid of it, you need to run bootstrap again.
Thanks for all your work, Roland! I'll update the sources, re-bootstrap and reassamble a new Solaris pkg for http://sunpkg.de Thanks again Uli