I tried a static compile of mod_jk 1.2.26 and apache 2.2.9 on solaris 8,9 and 10 (sparc) and solaris 10 (intel). Compilation worked perfect, mod_jk worked in all cases when tomcat (or other servlet container) was on the same host. It did not work, when tomcat was on an other host on the same network on all sparc versions of solaris, but it worked for the intel version. Some investigation showed, that nb_connect() in jk_connect.c fails when statically compiled into apache. Modular compilation works fine. Compiler was gcc version 3.2.4, tried with sun "ld" and gnu "ld", no difference.
Could you please provide the exact configure options for httpd and mod_jk you were using for the static build on Solaris 10 Sparc? This will help us minimalize efforts to reproduce. Could there be any relation to IPV6 in your environment?
Hi, configure option where as follows: for mod_jk: --with-apache=<dir of apache source> for apache: --with-mpm=worker --disable-so --disable-authn-file --disable-authn-default --disable-authz-groupfile --disable-authz-user --disable-authz-default --disable-auth-basic --disable-include --disable-filter --disable-charset-lite --disable-autoindex --disable-asis --disable-cgid --disable-cgi --disable-negotiation --disable-dir --disable-actions --disable-userdir --enable-vhost-alias --enable-rewrite --with-mod_jk I also tried different apache configure options (enabled all modules, even those, I don't intend to use) but that didn't work. What seems to work is using the Sun Studio C compiler.
Looks to be a compiler issue on Solaris.