Hello,
I just compiled jabberd2 on a system running Solaris 10/x86
compiled 32 bits and wanted to share some info:
jabbeerd : 2.1.17
expat : 2.0.1
gsasl : 0.2.21
libgsasl : 0.2.21
libidn : 1.2
mysql : 5.0.45
BerkeleyDB : 4.1.25
Compiler : Sun Studio 12
Compiles fine but c2s core dmp and made the below change (see below
diff) it errored during the log_write due to realm being NULL? and also
I added the exit if memory allocation for 'host' failed.
I'm using the base config files that got installed with 'make install'
and change only the driver part from mysql to db. So it could be that
one *must* setup the value 'realm' and 'host' in the cs2.xml and sm.xml
files, but I having hard time to find more documents/info how to
configure the xml files..
I created a Solaris SMF and will be testing Monday with 4-5 users
Will create a pkg once everything is working and can make it available if
someone wants it..
thanks
=================================================================================================
--- c2s/main.c Fri Sep 21 05:42:44 2007
+++ c2s/main.c.change Sat Oct 13 15:57:41 2007
@@ -219,7 +219,10 @@
elem = config_get(c2s->config, "local.id");
for(i = 0; i < elem->nvalues; i++) {
host_t host = (host_t) pmalloco(xhash_pool(c2s->hosts), sizeof(struct
host_st));
-
+ if(!host) {
+ log_write(c2s->log, LOG_ERR, "cannot allocate memory for %s,
aborting", "host");
+ exit(1);
+ }
realm = j_attr((const char **) elem->attrs[i], "realm");
/* stringprep ids (domain names) so that they are in canonical form */
@@ -278,7 +281,7 @@
}
log_write(c2s->log, LOG_NOTICE, "[%s] configured; realm=%s,
registration %s",
- id, realm, (host->ar_register_enable ? "enabled" :
"disabled"));
+ id, (host->realm ? host->realm : "no realm set"),
(host->ar_register_enable ? "enabled" : "disabled"));
}
}
=================================================================================================
--
ls
_______________________________________________
Jabberd2 mailing list
[email protected]
http://lists.xiaoka.com/listinfo.cgi/jabberd2-xiaoka.com