I recompilled the vanilla kernel from kernel.org and added the grsec patch and after that..nothing worked:
root@hera/etc/rc.d# nmap
nmap: error while loading shared libraries: libcrypto.so.0: cannot enable
executable stack as shared object requires: Permission denied
root@hera/etc/rc.d# pico
pico: error while loading shared libraries: libncurses.so.5: cannot enable
executable stack as shared object requires: Permission denied
root@hera/etc/rc.d# /etc/rc.d/rc.httpd start
Syntax error on line 6 of /etc/apache/mod_php.conf:
Cannot load /usr/libexec/apache/libphp4.so into server: libcrypto.so.0:
cannot enable executable stack as shared object requires: Permission denied
/usr/sbin/apachectl start: httpd could not be started
root@hera/etc/rc.d# host
host: error while loading shared libraries: libcrypto.so.0: cannot enable
executable stack as shared object requires: Permission denied
after that I recompiled the vanilla kernel without grsec and everything worked fine.
I also recompiled 2.4.29 kernel with grsec on a snapshot of slackware-current before glibc 2.3.4 was merged into slack, and worked fine there too.