Dnia 06-05-2007, N o godzinie 01:23 -0700, Michael Collette napisaĆ(a): > At present the FreeBSD ports tree still has the 2.0.11 up there. That > version > is pretty unstable so I set about trying to upgrade to 2.1.4.
I'm glad to see that there is a move to the 2.1 series. > My first problem was with compiling 2.1.4. The mod_announce.c file tried > doing a calculation with timezone. I took that out, back to what the 2.0.11 > version had, and I was able to compile properly. Well... Removing features to fix compilation problems is not really a way to go. What exact problem with timezone did you have? We could work on a solution for it. > > The bulk of my problems after I compiled had to do with the strndup() > function. After a bit of research I found that this is a rather Linux > specific function not supported on FreeBSD. Yes. My manual for strdup() family functions says it's a GNU extension. > I took these down to strdup() > functions and things appear to continue to work nicely. I honestly don't > know > what further ramifications there are from doing this. These strndup()s are there for a reason: They protect from buffer overruns. The way to fix it is to put strndup() implementation in subst/ directory and check wether it is needed during ./configure. > I haven't yet sent my port change upstream to the FreeBSD tree just yet. I > was rather hoping fixes might get put into place with the actual source code, > thus removing the need to track patches to keep FreeBSD up to date with > jabberd. I'm always for fixing things in mainline. Even distribution specific things may be integrated into mainline if they do not introduce incompatibilities. -- Tomasz Sterna Xiaoka Grp. http://www.xiaoka.com/ _______________________________________________ jabberd2 mailing list [email protected] http://lists.xiaoka.com/listinfo.cgi/jabberd2-xiaoka.com
