Subject: [IRCOPS-ESNET] Patching error Resent-Date: Thu, 8 Jan 1998 13:31:27 +0100 Resent-From: ircops@esnet.org Date: Thu, 08 Jan 1998 13:29:02 -0100 From: "Jesús Cea Avión" Organization: Argo Redes y Servicios Telematicos, S.A. To: coder-com , "ircops@esnet.org" I've just updated my IRCu 2.10.01 using all the patches at http://www.xs4all.nl/~carlo17/ircd-dev/patches/ircu2.10.01+/pending/index.html When I compile the final code, the linker complain about two missing functions: count_channels (called from querycmds.c and deleted in fixup.patch) and find_restrict (called from ircd.c and never defined). Find_restrict is used only if you compile the code to not use "R:" lines. If you configure the server to use "R:" lines (although you haven´t defined any R: in your ircd.conf), the server runs fine. Find_restrict is never defined, as far as I can tell. count_channels is erased in fixup.patch, but there is a call in querycmds.c. Am I missing anything?. Patch to "regenerate" count_channel, built by hand: *** ../ircu2.10.01/ircd/channel.c 1997/11/22 20:07:56 1.59 --- ../ircu2.10.01+/ircd/channel.c 1997/11/22 20:22:46 1.60 *************** *** 3566,3571 **** me.name, parv[0], parv[2], parv[1]); return 0; } /* --- 3566,3581 ---- me.name, parv[0], parv[2], parv[1]); return 0; + } + + int count_channels(aClient *sptr) + { + Reg1 aChannel *chptr; + Reg2 int count = 0; + + for (chptr = channel; chptr; chptr = chptr->nextch) + count++; + return (count); } /* -- Jesus Cea Avion _/_/ _/_/_/ _/_/_/ jcea@argo.es http://www.argo.es/~jcea/ _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ _/_/_/_/_/ PGP Key Available at KeyServ _/_/ _/_/ _/_/ _/_/ _/_/ "Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ "My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/ "El amor es poner tu felicidad en la felicidad de otro" - Leibnitz