Page 1 of 1

MacOS X - Module is lacking Mod_Version

Posted: Sat Jul 29, 2006 12:37 am
by samiam
I'm trying to compile Unreal 3.2.5 on an old MacOSX server (internal utility use) that's on MacOS 10.1 (can't be upgraded past there, unfortunately).

It appears to compile fine, but then when I go to start the server, I get "* unrealircd.conf:34: loadmodule src/modules/commands.so: failed to load: Module is lacking Mod_Version. Perhaps a very old one you forgot to recompile?"

Now, it's definitely not an old one, I think there's a problem in the linking when the modules are compiled.

I've been getting the error "cc: -flat_namespace: linker input file unused since linking not done" while modules are compiling, then a bunch of warnings:

Code: Select all

cc -I/usr/local/irc/Unreal3.2/include -I/usr/local/irc/Unreal3.2/extras/regexp/include -I/usr/local/irc/Unreal3.2/extras/c-ares/include -L/usr/local/irc/Unreal3.2/extras/c-ares/lib -pipe -g -O2 -funsigned-char -fno-strict-aliasing   -dynamic -flat_namespace -bundle -undefined warning  -c m_time.c
cc: -flat_namespace: linker input file unused since linking not done

Code: Select all

cc -I/usr/local/irc/Unreal3.2/include -I/usr/local/irc/Unreal3.2/extras/regexp/include -I/usr/local/irc/Unreal3.2/extras/c-ares/include -L/usr/local/irc/Unreal3.2/extras/c-ares/lib -pipe -g -O2 -funsigned-char -fno-strict-aliasing   -dynamic -flat_namespace -bundle -undefined warning -DDYNAMIC_LINKING \
        -o m_akill.so m_akill.c
/usr/bin/ld: warning undefined symbols:
_ModuleSetOptions
_TSoffset
_UMODE_OPER
_add_Command
_del_Command
_getreply
_ircsprintf
_loop
_m_tkl
_me
_sendto_one
_sendto_realops
_timeofday
I've gotten rid of the flat_namespace no linking message, but still get the undefined symbols issue..

Code: Select all

cc -I/usr/local/irc/Unreal3.2/include -I/usr/local/irc/Unreal3.2/extras/regexp/include -I/usr/local/irc/Unreal3.2/extras/c-ares/include -L/usr/local/irc/Unreal3.2/extras/c-ares/lib -pipe -g -O2 -funsigned-char -fno-strict-aliasing   -dynamic -bundle -undefined error  -c m_quit.c

Another change, and then I got "* unrealircd.conf:34: loadmodule src/modules/commands.so: failed to load: not a Mach-O MH_BUNDLE file type" when I tried to start the server..

Code: Select all

cc -I/usr/local/irc/Unreal3.2/include -I/usr/local/irc/Unreal3.2/extras/regexp/include -I/usr/local/irc/Unreal3.2/extras/c-ares/include -L/usr/local/irc/Unreal3.2/extras/c-ares/lib -pipe -g -O2 -funsigned-char -fno-strict-aliasing   -nostdlib -r -shared  -flat_namespace -undefined warning -DDYNAMIC_LINKING \
       -o m_part.so m_part.c
Anyone have any thoughts that might help with this? Or am I crazy for even trying do this?

Thanks for any advice, and thanks for a great ircd.