that is strange. It looks, like the include path is not found. Run the following command that will lead to the error above.
make nsd/tclcrypto.o
In the first line of the output of that command you see the compiler and flags. Add to this line -save-temps
. For my machine, this looks like
% make "CFLAGS_DEFAULT=-save-temps -DNDEBUG" nsd/tclcrypto.o
gcc -save-temps -DNDEBUG -Wall -fno-common -pipe -I../include -I"/usr/local/ns/include" -DHAVE_CONFIG_H -I/usr/local//include -c -o nsd/tclcrypto.o nsd/tclcrypto.c
If this does not help: In case i want to setup a machine with Gentoo for helping you here, what is the exact version of Gentoo i should be using? Are you using the packaged version of OpenSSL for Gentoo?