hybrid-dev ========== To compile a module for ircd-hybrid, make sure this hybrid-dev is the same version as the ircd-hybrid you're compiling for. Then use: gcc -I/usr/include/ircd-hybrid-8 -fPIC -DPIC -shared -g m_foo.c -o m_foo.so to compile the module. Or you can use the quick shell script `mbuild-hybrid' that is in this package which essentially does the same thing. See mbuild-hybrid(1) for further information. Remember that you may need to link shared libraries to it. Since 8.2.45, ircd-hybrid only loads modules through a libtool .la file (m_foo.la next to m_foo.so), and only those listed in /etc/ircd-hybrid/modules.conf. mbuild-hybrid writes the .la file for you; then add loadmodule "m_foo.la"; to modules.conf and rehash the server (/rehash conf). I have not tried loading modules built with a different version of gcc than the one the ircd was built with. I believe it should be okay, though. -- Joshua Kwan Sun, 30 Mar 2003 00:29:48 -0800