I'm currently playing around with 10.0 RC3 a bit and i have a very weird error when trying to build packages. In general everything works fine but... if i build and install shells/mksh (regardless of if i actually use it or not) i start getting a lot of errors while building packages that otherwise build fine (like www/curl). Most of the time those will be linker errors (complains that i should rebuild with -fPIE) but also automake build seems to fail for example (help2man failing to convert something related to aclocal?). I'm very much lost here. I've tried setting various pkgsrc variables related to shell binary paths to /bin/ksh or /bin/sh but that doesn't seem to help. Building packages still fails. Has anyone seen something like this before? Any pointers how i could fix the build process while still being able to use mksh?
Edit: Found the problem. I was exporting a custom PATH in .shrc (strange - on Linux mksh uses .mkshrc) and that obviously was also loaded by ksh. I've simply removed it for now. Maybe i could also just saveguard it for interactive usage only but for now it's fine i guess. Why didn't i just think of the .shrc earlier...