Philippe Lecler wrote:
>
> Hello,
> I installed tomcat 3.2.1 on solaris 2.5.1, it's OK.
> I compiled mod_jk with gcc-2.8.1, but when I trie to restart
> apache 1.3.19 I have the following message :
>
> Cannot load /soft/apache/libexec/mod_jk.so into server: ld.so.1:
> /soft/apache/bin/httpd: fatal: relocation error: file
> /soft/apache/libexec/mod_jk.so: symbol snprintf: referenced symbol not
> found
>
> snprintf is referenced in jk_util.c and is defined in libc.
>
> Thanx in advance for any response.
> --
> Philippe
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
I tried to add -lresolv without success. Finally, I patched jk_util.c to
use ap_snprintf and ap_vsnprintf :
diff ../jk/jk_util.c.ORG ../jk/jk_util.c
212a213,214
> #elif defined(IRISA) //Pb edition de liens
> used = ap_snprintf(buf, HUGE_BUFFER_SIZE, "[%s (%d)]: ", f, line);
224a227,228
> #elif defined(IRISA) //Pb edition de liens
> used = ap_vsnprintf(buf + used, fmt, args);
Command line to compile :
apxs -o mod_jk.so -DSOLARIS -DEAPI -DIRISA -I../jk -I/soft/jdk/include
-I/soft/jdk/include/solaris -c *.c ../jk/*.c
It's ok now.
--
Philippe