[JDEV] fail to compile jabber server on AIX

David Clissold cliss at austin.ibm.com
Thu Jun 28 11:51:45 CDT 2001


You don't actually need to change any of the source code to build it
on AIX with gcc.  I did make a change to the configure file as follows:

35c35,37
< JHOME=`pwd`
---
> # Set JHOME to `pwd` only if not already set
> [ ! -n "$JHOME" ] && JHOME=`pwd`
> 
136,137c138
< CFLAGS="$CFLAGS -DMAXDNAME=1025"
< MCFLAGS="$MCFLAGS -Wl,-G"
---
> MCFLAGS="$MCFLAGS -Wl,-G,-bexpall"

The JHOME change was for convenience/configurability -- you don't need it.
The CFLAGS entry adding -DMAXNAME was needed before 1.4.1, but the
right header file is included in the right place that makes it
unnecessary, so I removed it.
The only change you really need is the MCFLAGS.  Then you should be
able to build Jabber fully for AIX.

NOW--- having said that, there is still a problem running the jabberd
daemon on AIX.  It will frequently die while making pth calls, though
the incidence is not always the same.  I have tried, and failed, to
resolve the problem.  You can run it for a while (it actually seems
to work better in '-D' mode), and someone else told me that they had
much better luck running it without the DNS module, which they said
they didn't need.  Sometimes it seems to run for a while, sometimes it
dies almost immediately.

The download site mentioned below contains many freeware and open-source
packages, simply rebuilt and provided as-is, for users' convenience.
(None of these are AIX or even IBM products; they include things like
Gnome and KDE, many GNU utilities, tcl/tk, python, Apache, Samba,...)
Jabber is just one of many -- but it has the aforementioned problem.
(In fact, an extra 'README' was added noting as such).
It is also the only tool on that site that uses pth; it could be a pth
problem.

Please go ahead and compile it yourself.  If you don't see the runtime
problem, I'd definitely like to know about it!  Or if you do see the
problem and have any ideas on it, let me know too.  It's been a few
weeks since I've tried debugging it, but I'll try out new ideas.

David Clissold
cliss at austin.ibm.com

>From: =3D?gb2312?B?Uml2aWVyZSBTdKimcGhhbmU=3D?=3D
>	 <Stephane.SR.Riviere at atosorigin.com>
>To: "'jdev at jabber.org'" <jdev at jabber.org>
>Subject: RE: [JDEV] fail to compile jabber server on AIX
>Date: Thu, 28 Jun 2001 09:22:49 +0200
>Reply-To: jdev at jabber.org
>
>Hi,
>
>apparently IBM says they have ported Jabber to AIX, so I don't think you =
>can
>compile Jabber without any change to the code.
>
>You can find more information about Jabber on AIX at :
>
>http://www-1.ibm.com/servers/aix/os/linux/jabber/
>
>and you can download the IBM AIX port of Jabber (binary or source) at :
>
>http://www-1.ibm.com/servers/aix/products/aixos/linux/download.html
>
>
>I hope this will help.
>
>St=A8=A6phane RIVIERE
>
>-----Message d'origine-----
>De?: SCH263 [mailto:beta_stn at 263.net]
>Envoy=A8=A6?: jeudi 28 juin 2001 02:44
>=A8=A4?: jdev at jabber.org
>Objet?: [JDEV] fail to compile jabber server on AIX
>
>hi,all
>I am new to jabber.I am trying to compile jabber server on AIX, with gcc =
>and
>gnu make. After I run the "configure", during the make I got the result;
>
>$ make
>Making all in pthsock
>make[1]: Entering directory `/jabber/jabber-1.4.1/pthsock'
>gcc -g -Wall -fPIC -I. -I.. -I/jabber/jabber-1.4.1/jabberd/pth-1.3.7 -
>DMAXDNAME=3D1025 -I../jabberd/   -c -o client.o client.c
>gcc -g -Wall -fPIC -I. -I.. -I/jabber/jabber-1.4.1/jabberd/pth-1.3.7 -
>DMAXDNAME=3D1025 -I../jabberd/ -shared -Wl,-G -o pthsock_client.so client=
>.o
>collect2: ld returned 8 exit status
>ld: 0711-244 ERROR: No csects or exported symbols have been saved.
>make[1]: *** [pthsock_client] Error 1
>make[1]: Leaving directory `/jabber/jabber-1.4.1/pthsock'
>make: *** [all-recursive] Error 1
>
>Would anyone here tell me did I miss sth at configure or make step?
>Thanks.



More information about the JDev mailing list