Ingo Schwarze [2007-04-24, 01:29:52]: > >> jabber server, original implementation in C/C++ > > > > it looks like configure does not test for snprintf, and it decides to > > compile its own version. can you avoid that and use the function in libc? > > Yes, that seems possible. Thanks for the suggestion! > > The updated tarball contains two additional patches: > patch-jabberd_lib_Makefile_in (to leave snprintf.o out of libjabberd) > patch-jabberd_lib_jabberdlib_h (to not alias snprintf to ap_snprintf)
that works, but it's probably more interesting to fix configure.ac to check for snprintf/vsnprintf, since snprintf.c and jabberdlib.h already have the necessary #if !defined(HAVE_SNPRINTF) etc. such a fix will be easier to get included upstream, and the port will be easier for you to maintain. Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm