[jadmin] Tips for jcr and mu-conference on amd64

James Strandboge jamie at tpptraining.com
Tue May 23 22:23:53 CDT 2006


Just spent quite a while figuring out why mu-conference kept dying on my
OpenBSD 3.8 amd64 machine.  Turns out both jcr and mu-conference need to
be patched in order to not segfault on a 64 bit machine.

First, get jcr-0.2.4.tar.gz and mu-conference-0.6.0.tar.gz, then get all
the patches for both from (applying them in order):
http://www.marquard.net/jabber/

I followed the directions of the jcr-4 thread in the above page (thanks
Matthias!) and came up with the attached patch to make it easier for
others.  It removes the files mentioned, but also does the following:

adjusts jabberd/Makefile to include in CFLAGS
'-I/usr/local/include' (which is where my expat.h is) and removes
various object files from JCOMP_LIB_OBJECTS (because we removed the
files).

adjusts jcomp/Makfile to include in CFLAGS '-I/usr/local/include'

adjusts lib/lib.h to use '#include <expat.h>' instead of '#include
"xmlparse.h"' 

adjusts src/jcomp.mk to include in CFLAGS '-I/usr/local/include',
include in LIBS '-lexpat' and include in LDFLAGS '-L/usr/local/lib'.

Obviously, you'll need to adjust CFLAGS and LDFLAGS in the above
Makefiles if expat is not installed under /usr/local.

After patching, follow the instructions here:
http://jabberd.jabberstudio.org/2/docs/section05.html#5_9

Jamie Strandboge

PS-- I have also attached some experimental patches that fix various
compiler warnings related to unsafe functions (like sprintf) and the
fact that pointers and int are different sizes on amd64.  These should
be portable, but have only been lightly tested on amd64.  These patches
should be applied after all the above patches.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4_patch-jcr-0.2.4_external_expat.diff.gz
Type: application/x-gzip
Size: 40756 bytes
Desc: not available
Url : http://mail.jabber.org/pipermail/jadmin/attachments/20060523/1233117c/4_patch-jcr-0.2.4_external_expat.diff-0004.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4_patch-muc-compile_warnings.gz
Type: application/x-gzip
Size: 1032 bytes
Desc: not available
Url : http://mail.jabber.org/pipermail/jadmin/attachments/20060523/1233117c/4_patch-muc-compile_warnings-0004.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5_patch-jcr024_compile_warnings.gz
Type: application/x-gzip
Size: 1768 bytes
Desc: not available
Url : http://mail.jabber.org/pipermail/jadmin/attachments/20060523/1233117c/5_patch-jcr024_compile_warnings-0004.bin


More information about the JAdmin mailing list