Well I have problem with java
/etc/env.d/20java points to correct locations, /etc/ld.so.conf contains:
/opt/sun-jdk-1.5.0.06/jre/lib/amd64
But when I try to emerge swi-prolog-lite it complaint that it cannot find -ljava.
If I type ld -ljava it says it cannot find it, but when i type:
ld -L/opt/sun-jdk-1.5.0.06/jre/lib/amd64 -ljava everything seems to work ok... but why do I need to add this since proper line in /etc/ld.so.conf is added and I had run env-update.
I've noticed that when I try to emerge -Du world it tries to install blackdown-java? Why since one Sun java is present on my system ???

